Detect errors caused by the proxy itself (not the upstream API).
(err)
| 61 | |
| 62 | /** Detect errors caused by the proxy itself (not the upstream API). */ |
| 63 | function isProxyError(err) { |
| 64 | const m = err?.message || ''; |
| 65 | return /Proxy CONNECT failed|Proxy tunnel|Proxy connection/i.test(m); |
| 66 | } |
| 67 | |
| 68 | let postJsonOverride = null; |
| 69 |
no outgoing calls
no test coverage detected