{"record":{"id":"ea5662e00ee3faca","repo":"usebruno/bruno","slug":"no-windows-proxy-configuration-found","errorCode":null,"errorMessage":"No Windows proxy configuration found","messagePattern":"No Windows proxy configuration found","errorType":"exception","errorClass":"Error","httpStatus":null,"severity":"warning","filePath":"packages/bruno-requests/src/network/system-proxy/utils/windows.ts","lineNumber":35,"sourceCode":"        () => this.getInternetOptions(execOpts),\n        () => this.getWinHttpProxy(execOpts),\n        () => this.getSystemProxyEnvironment(execOpts),\n        () => this.getUserEnvironmentProxy(execOpts)\n      ];\n\n      for (const method of detectionMethods) {\n        try {\n          const proxy = await method();\n          if (proxy) {\n            return proxy;\n          }\n        } catch (error) {\n          // Continue to next method if this one fails\n          continue;\n        }\n      }\n\n      throw new Error('No Windows proxy configuration found');\n    } catch (error) {\n      throw new Error(`Windows proxy detection failed: ${error instanceof Error ? error.message : String(error)}`);\n    }\n  }\n\n  private async getInternetOptions(execOpts: ExecFileOptions): Promise<ProxyConfiguration | null> {\n    const stdout = await safeExec('reg', ['query', 'HKCU\\\\Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Internet Settings'], execOpts);\n    if (!stdout) return null;\n\n    const lines = stdout.split('\\n');\n    let proxyEnabled = false;\n    let proxyServer: string | null = null;\n    let proxyOverride: string | null = null;\n    let autoConfigURL: string | null = null;\n\n    for (const line of lines) {\n      const trimmedLine = line.trim();\n","sourceCodeStart":17,"sourceCodeEnd":53,"githubUrl":"https://github.com/usebruno/bruno/blob/9bdd81c7bdc57006e5f5ebffb79321a8d979f712/packages/bruno-requests/src/network/system-proxy/utils/windows.ts#L17-L53","documentation":"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.","triggerScenarios":"On Windows with proxyMode='system', neither HKCU\\...\\Internet Settings nor WinHTTP default proxy yields an enabled proxy, so every detection method returns null.","commonSituations":"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.","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."],"exampleFix":"// before\nconst cfg = await resolver.getSystemProxy(); // throws on Windows with no proxy\n\n// after\ncatch (e) { if (/No Windows proxy configuration found/.test(e.message)) return DIRECT_CONFIG; throw e; }","handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":"try { return await winResolver.detect(); } catch (e) { if (/No Windows proxy configuration found/.test(e.message)) return DIRECT_CONFIG; throw e; }","preventionTips":["Treat no-config as direct connection.","Enable ProxyEnable=1 in the registry if you need detection to return a value."],"tags":["proxy","windows","system-proxy","no-config"],"backgroundTag":null,"analyzedSha":"9bdd81c7bdc57006e5f5ebffb79321a8d979f712","analyzedAt":"2026-08-13T04:09:25.751Z","schemaVersion":2},"datasetVersion":"2026-08-13T04:17:16.726Z"}