{
  "id": "python/starlette-route-param-converter",
  "signature": "ValueError: Unknown path converter 'int'",
  "signature_zh": "值错误：未知的路径转换器 'int'",
  "regex": "ValueError:\\ Unknown\\ path\\ converter\\ 'int'",
  "domain": "python",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "Using a path converter that Starlette doesn't support, such as int without proper syntax.",
  "root_cause_type": "generic",
  "root_cause_zh": "使用了 Starlette 不支持的路径转换器，如 int 但语法不正确。",
  "versions": [
    {
      "version": "3.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Starlette uses {item_id:int} syntax, but it must be exactly that; if you use {item_id} with a type annotation, it's different.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The converter is built-in; no import needed.",
      "fail_rate": 0.3,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 1.0,
      "how": "Use the correct syntax: @app.route('/items/{item_id:int}')",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.95,
      "how": "In FastAPI, use type annotation: @app.get('/items/{item_id}') with item_id: int",
      "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": "2026-05-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}