{
  "id": "python/aiohttp-client-connector-proxy-error",
  "signature": "aiohttp.client_exceptions.ClientProxyConnectionError: Cannot connect to proxy",
  "signature_zh": "aiohttp 客户端代理连接错误：无法连接到代理",
  "regex": "aiohttp\\.client_exceptions\\.ClientProxyConnectionError:\\ Cannot\\ connect\\ to\\ proxy",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The HTTP/HTTPS proxy server is unreachable or refusing connections.",
  "root_cause_type": "generic",
  "root_cause_zh": "HTTP/HTTPS 代理服务器不可达或拒绝连接。",
  "versions": [
    {
      "version": "3.10",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.11",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Disabling proxy usage entirely",
      "why_fails": "This may bypass corporate network policies or cause direct access failures.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using a different proxy without authentication",
      "why_fails": "The new proxy may also be unreachable or require authentication.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Verify proxy settings and use proxy authentication if needed",
      "success_rate": 0.85,
      "how": "proxy_auth = aiohttp.BasicAuth('user', 'pass')\nasync with aiohttp.ClientSession() as session:\n    async with session.get(url, proxy='http://proxy.example.com:8080', proxy_auth=proxy_auth) as resp:",
      "condition": "",
      "sources": []
    },
    {
      "action": "Use environment variables for proxy configuration",
      "success_rate": 0.8,
      "how": "import os\nos.environ['HTTP_PROXY'] = 'http://proxy.example.com:8080'\nos.environ['HTTPS_PROXY'] = 'http://proxy.example.com:8080'",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": null,
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-05-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}