{"record":{"id":"c707e8578c4c37b9","repo":"earendil-works/pi","slug":"unsupported-proxy-protocol-socks-and-pac-proxy-ur","errorCode":null,"errorMessage":"Unsupported proxy protocol. SOCKS and PAC proxy URLs are not supported; use an HTTP or HTTPS proxy URL. Got ${proxyUrl.protocol}","messagePattern":"Unsupported proxy protocol\\. SOCKS and PAC proxy URLs are not supported; use an HTTP or HTTPS proxy URL\\. Got (.+?)","errorType":"validation","errorClass":"Error","httpStatus":null,"severity":"error","filePath":"packages/ai/src/utils/node-http-proxy.ts","lineNumber":108,"sourceCode":"\t\"Unsupported proxy protocol. SOCKS and PAC proxy URLs are not supported; use an HTTP or HTTPS proxy URL.\";\n\nexport function resolveHttpProxyUrlForTarget(targetUrl: string | URL, env?: ProviderEnv): URL | undefined {\n\tconst proxy = getProxyForUrl(targetUrl, env);\n\tif (!proxy) {\n\t\treturn undefined;\n\t}\n\n\tlet proxyUrl: URL;\n\ttry {\n\t\tproxyUrl = new URL(proxy);\n\t} catch (error) {\n\t\tthrow new Error(\n\t\t\t`Invalid proxy URL ${JSON.stringify(proxy)}: ${error instanceof Error ? error.message : String(error)}`,\n\t\t);\n\t}\n\n\tif (proxyUrl.protocol !== \"http:\" && proxyUrl.protocol !== \"https:\") {\n\t\tthrow new Error(`${UNSUPPORTED_PROXY_PROTOCOL_MESSAGE} Got ${proxyUrl.protocol}`);\n\t}\n\n\treturn proxyUrl;\n}\n","sourceCodeStart":90,"sourceCodeEnd":113,"githubUrl":"https://github.com/earendil-works/pi/blob/4af9d21d3b4d664e4a29fcabfec85171077248e3/packages/ai/src/utils/node-http-proxy.ts#L90-L113","documentation":"Error \"Unsupported proxy protocol. SOCKS and PAC proxy URLs are not supported; use an HTTP or HTTPS proxy URL. Got ${proxyUrl.protocol}\" thrown in earendil-works/pi.","triggerScenarios":"Thrown at packages/ai/src/utils/node-http-proxy.ts:108 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use an HTTP or HTTPS proxy URL; SOCKS and PAC URLs are not supported."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"4af9d21d3b4d664e4a29fcabfec85171077248e3","analyzedAt":"2026-08-24T13:07:14.692Z","schemaVersion":2},"datasetVersion":"2026-08-24T17:17:21.512Z"}