{
  "id": "python/starlette-route-error",
  "signature": "ValueError: Route path must start with '/'",
  "signature_zh": "ValueError: 路由路径必须以 '/' 开头",
  "regex": "ValueError:\\ Route\\ path\\ must\\ start\\ with\\ '/'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "在 Starlette 中定义路由时，路径字符串未以斜杠开头。",
  "root_cause_type": "generic",
  "root_cause_zh": "在 Starlette 中定义路由时，路径字符串未以斜杠开头。",
  "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": "尝试在路径前加空格。",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "使用反斜杠而不是正斜杠。",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "确保所有路由路径以 '/' 开头，如 '/home'。",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.9,
      "how": "使用 f-string 或拼接时注意开头。",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "添加自动检查函数验证路径格式。",
      "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": "2024-03-05",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}