{
  "id": "python/flask-werkzeug-proxy-fix",
  "signature": "werkzeug.routing.exceptions.RequestRedirect: 308 Permanent Redirect",
  "signature_zh": "werkzeug.routing.exceptions.RequestRedirect: 308 永久重定向",
  "regex": "werkzeug\\.routing\\.exceptions\\.RequestRedirect:\\ 308\\ Permanent\\ Redirect",
  "domain": "python",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "A request hits a route without the trailing slash while the route is defined with one; Werkzeug redirects and the client does not follow.",
  "root_cause_type": "generic",
  "root_cause_zh": "请求访问的路由缺少尾部斜杠，而路由定义带斜杠；Werkzeug 重定向但客户端未跟随。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Solves only one form; canonical URL ambiguity remains.",
      "fail_rate": 0.75,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The redirect is a Werkzeug routing exception, not an app error.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "requests.get(url, allow_redirects=True)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.92,
      "how": "url_for('items')  # emits trailing slash if route defines it",
      "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": "2024-08-30",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}