{
  "id": "python/pydantic-datetime-timezone-naive",
  "signature": "pydantic.errors.DatetimeError: value is not a valid datetime",
  "signature_zh": "pydantic.errors.DatetimeError: 值不是有效的日期时间",
  "regex": "pydantic\\.errors\\.DatetimeError:\\ value\\ is\\ not\\ a\\ valid\\ datetime",
  "domain": "python",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "A datetime field with timezone-aware requirement receives a naive datetime (no timezone info).",
  "root_cause_type": "generic",
  "root_cause_zh": "带有时区感知要求的日期时间字段接收到没有时区信息的朴素日期时间。",
  "versions": [
    {
      "version": "2.x",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "utcnow returns naive datetime, not timezone-aware.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "This makes it naive, still fails.",
      "fail_rate": 0.8,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "Use timezone-aware datetime: datetime.now(timezone.utc)",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 0.85,
      "how": "Allow naive datetime by removing tz constraint from Field",
      "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.87,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2024-03-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}