{
  "id": "python/starlette-routing-path-param-missing",
  "signature": "starlette.routing.NoMatchFound: No route matches for path \"/items/\"",
  "signature_zh": "Starlette 路由错误：没有路由匹配路径 \"/items/\"",
  "regex": "starlette\\.routing\\.NoMatchFound:\\ No\\ route\\ matches\\ for\\ path\\ \"/items/\"",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "The requested URL path doesn't match any defined route, possibly due to trailing slash mismatch.",
  "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": "",
      "why_fails": "If the client doesn't send the slash, it still won't match; you need redirect_slashes=True (default).",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "May hide actual errors; better to define specific routes.",
      "fail_rate": 0.4,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.9,
      "how": "Define the route with optional trailing slash: @app.route('/items/{path:path}') or use redirect_slashes=True",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.8,
      "how": "Ensure the client sends the correct path: /items (without trailing slash) if your route is '/items'",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-08-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}