earendil-works/pi · error · Error
Unsupported proxy protocol. SOCKS and PAC proxy URLs are not
Error message
Unsupported proxy protocol. SOCKS and PAC proxy URLs are not supported; use an HTTP or HTTPS proxy URL. Got ${proxyUrl.protocol} What it means
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.
Source
Thrown at packages/ai/src/utils/node-http-proxy.ts:108
"Unsupported proxy protocol. SOCKS and PAC proxy URLs are not supported; use an HTTP or HTTPS proxy URL.";
export function resolveHttpProxyUrlForTarget(targetUrl: string | URL, env?: ProviderEnv): URL | undefined {
const proxy = getProxyForUrl(targetUrl, env);
if (!proxy) {
return undefined;
}
let proxyUrl: URL;
try {
proxyUrl = new URL(proxy);
} catch (error) {
throw new Error(
`Invalid proxy URL ${JSON.stringify(proxy)}: ${error instanceof Error ? error.message : String(error)}`,
);
}
if (proxyUrl.protocol !== "http:" && proxyUrl.protocol !== "https:") {
throw new Error(`${UNSUPPORTED_PROXY_PROTOCOL_MESSAGE} Got ${proxyUrl.protocol}`);
}
return proxyUrl;
}
View on GitHub (pinned to 4af9d21d3b)
Solutions
- Use an HTTP or HTTPS proxy URL; SOCKS and PAC URLs are not supported.
When it happens
Trigger: Thrown at packages/ai/src/utils/node-http-proxy.ts:108 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of earendil-works/pi@4af9d21d3b (2026-08-24).
Data as JSON: /api/errors/c707e8578c4c37b9.
Report an issue: GitHub.