{
  "id": "python/flask-url-for-endpoint",
  "signature": "werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'user_profile'",
  "signature_zh": "Werkzeug路由异常：无法为端点'user_profile'构建URL。",
  "regex": "werkzeug\\.routing\\.exceptions\\.BuildError:\\ Could\\ not\\ build\\ url\\ for\\ endpoint\\ 'user_profile'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "尝试使用url_for构建URL，但端点不存在或缺少必要的参数。",
  "root_cause_type": "generic",
  "root_cause_zh": "尝试使用url_for构建URL，但端点不存在或缺少必要的参数。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "拼写错误端点名称。",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "忘记传递路由参数，如user_id。",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "确保端点存在并传递参数：\nurl_for('user_profile', user_id=123)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "检查路由定义：\n@app.route('/user/<int:user_id>')\ndef user_profile(user_id):\n    pass",
      "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": "true",
  "first_seen": "2025-01-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}