{"record":{"id":"53da47949896104a","repo":"siyuan-note/siyuan","slug":"automatic-proxy-detection-is-not-supported","errorCode":null,"errorMessage":"automatic proxy detection is not supported","messagePattern":"automatic proxy detection is not supported","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"kernel/util/system_proxy_windows.go","lineNumber":43,"sourceCode":")\n\nfunc readSystemNetworkProxy() (*systemNetworkProxyConfig, error) {\n\tkey, err := registry.OpenKey(registry.CURRENT_USER, `Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings`, registry.QUERY_VALUE)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tdefer key.Close()\n\n\tautoConfigURL, _, err := key.GetStringValue(\"AutoConfigURL\")\n\tif nil == err && \"\" != autoConfigURL {\n\t\treturn nil, errors.New(\"automatic proxy configuration is not supported\")\n\t}\n\tif nil != err && registry.ErrNotExist != err {\n\t\treturn nil, err\n\t}\n\tautoDetect, _, err := key.GetIntegerValue(\"AutoDetect\")\n\tif nil == err && 0 != autoDetect {\n\t\treturn nil, errors.New(\"automatic proxy detection is not supported\")\n\t}\n\tif nil != err && registry.ErrNotExist != err {\n\t\treturn nil, err\n\t}\n\n\tenabled, _, err := key.GetIntegerValue(\"ProxyEnable\")\n\tif registry.ErrNotExist == err {\n\t\treturn nil, nil\n\t}\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif 0 == enabled {\n\t\treturn nil, nil\n\t}\n\n\tproxyServer, _, err := key.GetStringValue(\"ProxyServer\")\n\tif err != nil {","sourceCodeStart":25,"sourceCodeEnd":61,"githubUrl":"https://github.com/siyuan-note/siyuan/blob/9f775e8a12daef8255556097396f9b2739078892/kernel/util/system_proxy_windows.go#L25-L61","documentation":"Windows proxy settings include an AutoDetect flag (WPAD). readSystemNetworkProxy rejects configurations with AutoDetect enabled because automatic proxy detection is unsupported; it only handles explicitly configured manual proxies.","triggerScenarios":"HKCU ...\\Internet Settings has AutoDetect != 0 ('Automatically detect settings' checked in Windows proxy options).","commonSituations":"Default Windows installs with 'Automatically detect settings' enabled; network administrators relying on WPAD; freshly imaged corporate machines.","solutions":["Uncheck 'Automatically detect settings' in Windows Settings - Network - Proxy","Set AutoDetect=0 in the Internet Settings registry key","Configure a manual proxy (ProxyEnable=1, ProxyServer=...) which takes precedence in usage"],"exampleFix":"// before (registry)\nAutoDetect=1\n// after\nAutoDetect=0; ProxyEnable=1; ProxyServer=\"proxy.corp.local:8080\"","handlingStrategy":"try-catch","validationCode":"k, _ := registry.OpenKey(registry.CURRENT_USER, `Software\\Microsoft\\Windows\\CurrentVersion\\Internet Settings`, registry.QUERY_VALUE); v, _, err := k.GetIntegerValue(\"AutoDetect\"); if err == nil && v != 0 { /* WPAD enabled - not supported */ }","typeGuard":null,"tryCatchPattern":"proxy, err := readSystemNetworkProxy(); if err != nil { if strings.Contains(err.Error(), \"automatic proxy detection\") { /* fall back to direct connection */ } }","preventionTips":["Turn off 'Automatically detect settings' on target machines","Set AutoDetect=0 via imaging/GPO","Supply manual proxy values so detection is unnecessary"],"tags":["proxy","windows","wpad","unsupported-feature"],"backgroundTag":"unsupported-platform","analyzedSha":"9f775e8a12daef8255556097396f9b2739078892","analyzedAt":"2026-09-19T03:17:15.984Z","contentChangedAt":"2026-09-19T03:17:15.984Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}