{
  "id": "python/aiohttp-client-connector-ssl-handshake-error",
  "signature": "aiohttp.client_exceptions.ClientConnectorSSLError: [SSL: WRONG_VERSION_NUMBER] wrong version number",
  "signature_zh": "aiohttp 客户端连接器 SSL 错误：版本号错误",
  "regex": "aiohttp\\.client_exceptions\\.ClientConnectorSSLError:\\ \\[SSL:\\ WRONG_VERSION_NUMBER\\]\\ wrong\\ version\\ number",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The server is using an incompatible SSL/TLS version, or the client is trying to connect with HTTPS to an HTTP server.",
  "root_cause_type": "generic",
  "root_cause_zh": "服务器使用不兼容的 SSL/TLS 版本，或者客户端尝试使用 HTTPS 连接到 HTTP 服务器。",
  "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 SSL verification with ssl=False",
      "why_fails": "This does not fix the version mismatch; it only bypasses certificate verification.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "Using a very old SSL context that forces TLS 1.0",
      "why_fails": "Many servers now reject outdated TLS versions due to security policies.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use the correct URL scheme (http:// instead of https://)",
      "success_rate": 0.9,
      "how": "async with session.get('http://example.com') as resp:",
      "condition": "",
      "sources": []
    },
    {
      "action": "Update the SSL context to use modern TLS versions",
      "success_rate": 0.85,
      "how": "import ssl\nssl_context = ssl.create_default_context()\nssl_context.minimum_version = ssl.TLSVersion.TLSv1_2\nconnector = aiohttp.TCPConnector(ssl=ssl_context)\nasync with aiohttp.ClientSession(connector=connector) as session:",
      "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-11-18",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}