usebruno/bruno · warning · Error
No Windows proxy configuration found
Error message
No Windows proxy configuration found
What it means
WindowsProxyResolver iterates detection methods (registry Internet Settings, WinHTTP, etc.) and throws when all return null, indicating no proxy is configured at the OS level. This is a 'no config' condition rather than a malfunction.
Source
Thrown at packages/bruno-requests/src/network/system-proxy/utils/windows.ts:35
() => this.getInternetOptions(execOpts),
() => this.getWinHttpProxy(execOpts),
() => this.getSystemProxyEnvironment(execOpts),
() => this.getUserEnvironmentProxy(execOpts)
];
for (const method of detectionMethods) {
try {
const proxy = await method();
if (proxy) {
return proxy;
}
} catch (error) {
// Continue to next method if this one fails
continue;
}
}
throw new Error('No Windows proxy configuration found');
} catch (error) {
throw new Error(`Windows proxy detection failed: ${error instanceof Error ? error.message : String(error)}`);
}
}
private async getInternetOptions(execOpts: ExecFileOptions): Promise<ProxyConfiguration | null> {
const stdout = await safeExec('reg', ['query', 'HKCU\\Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings'], execOpts);
if (!stdout) return null;
const lines = stdout.split('\n');
let proxyEnabled = false;
let proxyServer: string | null = null;
let proxyOverride: string | null = null;
let autoConfigURL: string | null = null;
for (const line of lines) {
const trimmedLine = line.trim();
View on GitHub (pinned to 9bdd81c7bd)
Solutions
- Treat as 'no proxy' / direct connection; switch proxyMode to 'off'.
- Enable a proxy in Windows Settings > Network > Proxy so the registry reflects ProxyEnable=1.
- Configure netsh winhttp set proxy if you want WinHTTP-level detection to succeed.
Example fix
// before
const cfg = await resolver.getSystemProxy(); // throws on Windows with no proxy
// after
catch (e) { if (/No Windows proxy configuration found/.test(e.message)) return DIRECT_CONFIG; throw e; } Defensive patterns
Strategy: fallback
Try / catch
try { return await winResolver.detect(); } catch (e) { if (/No Windows proxy configuration found/.test(e.message)) return DIRECT_CONFIG; throw e; } Prevention
- Treat no-config as direct connection.
- Enable ProxyEnable=1 in the registry if you need detection to return a value.
When it happens
Trigger: On Windows with proxyMode='system', neither HKCU\...\Internet Settings nor WinHTTP default proxy yields an enabled proxy, so every detection method returns null.
Common situations: Direct-connection Windows machine with 'Use a proxy server' off and no PAC URL; corporate machine where proxy is set per-app rather than system-wide; AutoConfigURL present but blank.
Related errors
- No Linux proxy configuration found
- Windows proxy detection failed: ${error instanceof Error ? e
- Unsupported platform: ${this.osPlatform}
- Linux proxy detection failed: ${error instanceof Error ? err
- macOS proxy detection failed: ${error instanceof Error ? err
AI-assisted analysis of usebruno/bruno@9bdd81c7bd (2026-08-13).
Data as JSON: /api/errors/ea5662e00ee3faca.
Report an issue: GitHub.