{
  "id": "python/aiohttp-client-connector-http-error",
  "signature": "aiohttp.client_exceptions.ClientHttpProxyError: 407 Proxy Authentication Required",
  "signature_zh": "aiohttp 客户端 HTTP 代理错误：需要代理认证",
  "regex": "aiohttp\\.client_exceptions\\.ClientHttpProxyError:\\ 407\\ Proxy\\ Authentication\\ Required",
  "domain": "python",
  "category": "auth_error",
  "subcategory": null,
  "root_cause": "The proxy server requires authentication, but none was provided or the credentials are invalid.",
  "root_cause_type": "generic",
  "root_cause_zh": "代理服务器需要认证，但未提供认证信息或凭据无效。",
  "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": "Providing empty username and password",
      "why_fails": "Most proxies reject empty credentials, causing the same error.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using HTTP Basic Auth headers manually without proper encoding",
      "why_fails": "Incorrect encoding or missing headers may still result in 407.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use aiohttp.BasicAuth for proxy authentication",
      "success_rate": 0.9,
      "how": "proxy_auth = aiohttp.BasicAuth('username', 'password')\nasync with session.get(url, proxy='http://proxy.example.com:8080', proxy_auth=proxy_auth) as resp:",
      "condition": "",
      "sources": []
    },
    {
      "action": "Set proxy credentials in the URL",
      "success_rate": 0.85,
      "how": "async with session.get(url, proxy='http://user:pass@proxy.example.com:8080') as resp:",
      "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.83,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-07-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}