{
  "id": "python/asyncio-queue-empty",
  "signature": "asyncio.queues.QueueEmpty: Queue is empty",
  "signature_zh": "asyncio队列异常：队列为空",
  "regex": "asyncio\\.queues\\.QueueEmpty:\\ Queue\\ is\\ empty",
  "domain": "python",
  "category": "runtime_error",
  "subcategory": null,
  "root_cause": "Calling queue.get_nowait() on an empty asyncio.Queue.",
  "root_cause_type": "generic",
  "root_cause_zh": "在空的asyncio.Queue上调用queue.get_nowait()。",
  "versions": [
    {
      "version": "3.7",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "3.8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "get() is a coroutine and must be awaited; otherwise it raises a different error.",
      "fail_rate": 0.9,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "May lead to null pointer issues if not handled properly.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "",
      "success_rate": 0.95,
      "how": "if not q.empty(): item = q.get_nowait()",
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "success_rate": 1.0,
      "how": "item = await q.get()",
      "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.88,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-04-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}