{
  "id": "python/fastapi-missing-query-parameter",
  "signature": "fastapi.exceptions.RequestValidationError: field required (type=value_error.missing) for query parameter 'page'",
  "signature_zh": "FastAPI请求验证错误：查询参数 'page' 缺失 (类型=值错误.缺失)",
  "regex": "fastapi\\.exceptions\\.RequestValidationError:\\ field\\ required\\ \\(type=value_error\\.missing\\)\\ for\\ query\\ parameter\\ 'page'",
  "domain": "python",
  "category": "type_error",
  "subcategory": null,
  "root_cause": "A required query parameter is missing from the request URL.",
  "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": "Adding the parameter to the path instead of query.",
      "why_fails": "Path parameters and query parameters are different; mixing them causes 404.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "Setting a default value but not making it optional in the function signature.",
      "why_fails": "If the parameter is required in the function, a default may not be used.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Include the query parameter in the request URL.",
      "success_rate": 0.95,
      "how": "GET /items?page=1",
      "condition": "",
      "sources": []
    },
    {
      "action": "Make the query parameter optional with a default value.",
      "success_rate": 0.9,
      "how": "async def read_items(page: int = 1):",
      "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": "2025-11-15",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}