MCPcopy Create free account
hub / github.com/dwgx/WindsurfAPI / isProxyError

Function isProxyError

src/windsurf-api.js:63–66  ·  view source on GitHub ↗

Detect errors caused by the proxy itself (not the upstream API).

(err)

Source from the content-addressed store, hash-verified

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

Callers 4

getUserStatusFunction · 0.85
getCascadeModelConfigsFunction · 0.85
getWebSearchResultsFunction · 0.85
checkMessageRateLimitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected