siyuan-note/siyuan · warning
automatic proxy detection is not supported
Error message
automatic proxy detection is not supported
What it means
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.
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
Example fix
// before (registry) AutoDetect=1 // after AutoDetect=0; ProxyEnable=1; ProxyServer="proxy.corp.local:8080"
Defensive patterns
Strategy: try-catch
Validate before calling
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 */ } Try / catch
proxy, err := readSystemNetworkProxy(); if err != nil { if strings.Contains(err.Error(), "automatic proxy detection") { /* fall back to direct connection */ } } Prevention
- Turn off 'Automatically detect settings' on target machines
- Set AutoDetect=0 via imaging/GPO
- Supply manual proxy values so detection is unnecessary
When it happens
Trigger: HKCU ...\Internet Settings has AutoDetect != 0 ('Automatically detect settings' checked in Windows proxy options).
Common situations: Default Windows installs with 'Automatically detect settings' enabled; network administrators relying on WPAD; freshly imaged corporate machines.
Understand the failure class
Background: "unsupported platform" / "not supported on this platform" errors: what they mean and how to fix them — this error's family across 47 libraries.
Related errors
- automatic proxy configuration is not supported
- agent HTTP tools support HTTP, HTTPS and SOCKS5 proxies
- Conf.Language(313) (localized message: bookmark/tag not…
- Conf.Language(387)
- decode [h] failed
AI-assisted analysis of siyuan-note/siyuan@9f775e8a12 (2026-09-19).
Data as JSON: /api/errors/53da47949896104a.
Report an issue: GitHub.
Appendix: source
Thrown at kernel/util/system_proxy_windows.go:43
)
func readSystemNetworkProxy() (*systemNetworkProxyConfig, error) {
key, err := registry.OpenKey(registry.CURRENT_USER, `Software\Microsoft\Windows\CurrentVersion\Internet Settings`, registry.QUERY_VALUE)
if err != nil {
return nil, err
}
defer key.Close()
autoConfigURL, _, err := key.GetStringValue("AutoConfigURL")
if nil == err && "" != autoConfigURL {
return nil, errors.New("automatic proxy configuration is not supported")
}
if nil != err && registry.ErrNotExist != err {
return nil, err
}
autoDetect, _, err := key.GetIntegerValue("AutoDetect")
if nil == err && 0 != autoDetect {
return nil, errors.New("automatic proxy detection is not supported")
}
if nil != err && registry.ErrNotExist != err {
return nil, err
}
enabled, _, err := key.GetIntegerValue("ProxyEnable")
if registry.ErrNotExist == err {
return nil, nil
}
if err != nil {
return nil, err
}
if 0 == enabled {
return nil, nil
}
proxyServer, _, err := key.GetStringValue("ProxyServer")
if err != nil {View on GitHub (pinned to 9f775e8a12)