{
  "id": "python/httpx-httperror-500-internal-server-error",
  "signature": "httpx.HTTPStatusError: Server error '500 Internal Server Error' for url 'https://api.example.com/v1/process'",
  "signature_zh": "httpx.HTTPStatusError: 对URL 'https://api.example.com/v1/process' 的服务器错误 '500 内部服务器错误'",
  "regex": "httpx\\.HTTPStatusError:\\ Server\\ error\\ '500\\ Internal\\ Server\\ Error'\\ for\\ url\\ 'https://api\\.example\\.com/v1/process'",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The server encountered an unexpected condition that prevented it from fulfilling the request.",
  "root_cause_type": "generic",
  "root_cause_zh": "服务器遇到意外情况，无法完成请求。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Retrying the same request immediately",
      "why_fails": "Server-side errors often persist; retrying without delay may not help.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "Modifying client-side headers arbitrarily",
      "why_fails": "The error is server-side; client headers rarely fix it.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Implement exponential backoff retry with a maximum number of attempts",
      "success_rate": 0.7,
      "how": "import time\nfor i in range(3):\n    try:\n        response = httpx.get('https://api.example.com/v1/process')\n        response.raise_for_status()\n        break\n    except httpx.HTTPStatusError as e:\n        if e.response.status_code == 500:\n            time.sleep(2 ** i)\n        else:\n            raise",
      "condition": "",
      "sources": []
    },
    {
      "action": "Contact the server administrator to investigate the issue",
      "success_rate": 0.9,
      "how": "Review server logs for details on the 500 error.",
      "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.85,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2025-06-22",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}