{
  "id": "python/flask-url-for-external",
  "signature": "werkzeug.routing.exceptions.BuildError: Could not build url for endpoint 'index' with values ['page']. Did you mean 'static' instead?",
  "signature_zh": "Werkzeug 路由异常：无法为端点 'index' 构建 URL，参数为 ['page']。您是否指的是 'static'？",
  "regex": "werkzeug\\.routing\\.exceptions\\.BuildError:\\ Could\\ not\\ build\\ url\\ for\\ endpoint\\ 'index'\\ with\\ values\\ \\['page'\\]\\.\\ Did\\ you\\ mean\\ 'static'\\ instead\\?",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "在 url_for 中传递了不存在的参数或端点名称错误。",
  "root_cause_type": "generic",
  "root_cause_zh": "在 url_for 中传递了不存在的参数或端点名称错误。",
  "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.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "会导致维护困难。",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "url_for('index', page=1) 确保 index 函数已定义且接受 page 参数",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-02-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}