{
  "id": "python/werkzeug-builderror-could-not-build-url",
  "signature": "werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'login'",
  "signature_zh": "Werkzeug路由错误：无法为端点'login'构建URL",
  "regex": "werkzeug\\.routing\\.exceptions\\.BuildError:\\ Could\\ not\\ build\\ url\\ for\\ endpoint\\ 'login'",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "Endpoint name does not exist or required URL parameters are missing.",
  "root_cause_type": "generic",
  "root_cause_zh": "端点名称不存在或缺少必需的URL参数。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Assuming endpoint name is the function name without decorator",
      "why_fails": "Flask endpoint defaults to function name, but can be overridden.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "Missing required parameter in url_for",
      "why_fails": "If route has path parameters, they must be provided.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Check endpoint name and provide all parameters",
      "success_rate": 0.9,
      "how": "url_for('login', next='/dashboard')",
      "condition": "",
      "sources": []
    },
    {
      "action": "List all endpoints with app.url_map",
      "success_rate": 0.85,
      "how": "print(app.url_map)",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-05-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}