{
  "id": "python/werkzeug-build-error-endpoint",
  "signature": "werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'user_detail' with values ['id']. Did you mean 'user_detial' instead?",
  "signature_zh": "werkzeug.routing.exceptions.BuildError: 无法为端点 'user_detail' 构建 URL，是否想用 'user_detial'？",
  "regex": "werkzeug\\.routing\\.exceptions\\.BuildError:\\ Could\\ not\\ build\\ url\\ for\\ endpoint\\ 'user_detail'\\ with\\ values\\ \\['id'\\]\\.\\ Did\\ you\\ mean\\ 'user_detial'\\ instead\\?",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "url_for() references an endpoint name that is not registered, or required URL parameters are missing/misnamed.",
  "root_cause_type": "generic",
  "root_cause_zh": "url_for() 引用了未注册的端点名称，或缺少/命名错误的必需 URL 参数。",
  "versions": [
    {
      "version": "3.0.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Breaks when routes change; loses blueprint prefixes and URL-encoding.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Does not fix unknown endpoint; still raises BuildError.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Verify endpoint name: `print(app.url_map)` and use the exact function name or `blueprint.function_name`.",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Pass all required params: `url_for('user_detail', user_id=user.id)` matching the route `<int:user_id>`.",
      "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.89,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-09-03",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}