{
  "id": "api/websocket-close-code-1005-abnormal-close-no-status",
  "signature": "WebSocket close code 1005: Abnormal Closure (no status code received)",
  "signature_zh": "WebSocket 关闭代码 1005：异常关闭（未收到状态码）",
  "regex": "close code 1005",
  "domain": "api",
  "category": "network_error",
  "subcategory": null,
  "root_cause": "The WebSocket connection was terminated without sending a close frame, often due to network interruption, server crash, or proxy timeout.",
  "root_cause_type": "generic",
  "root_cause_zh": "WebSocket 连接在未发送关闭帧的情况下终止，通常由网络中断、服务器崩溃或代理超时引起。",
  "versions": [
    {
      "version": "RFC 6455",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "WebSocket API (W3C)",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Node.js ws v8",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Python websockets v12",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "The issue may be transient network flapping, not server failure.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "The connection is already closed; data will be lost.",
      "fail_rate": 1.0,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Implement automatic reconnection with exponential backoff in the client: `function reconnect() { setTimeout(() => new WebSocket(url), 1000 * Math.pow(2, attempts)); }`",
      "success_rate": 0.85,
      "how": "Implement automatic reconnection with exponential backoff in the client: `function reconnect() { setTimeout(() => new WebSocket(url), 1000 * Math.pow(2, attempts)); }`",
      "condition": "",
      "sources": []
    },
    {
      "action": "Check server and proxy logs for timeout or resource exhaustion; increase WebSocket timeout settings (e.g., `nginx proxy_read_timeout 3600s`).",
      "success_rate": 0.8,
      "how": "Check server and proxy logs for timeout or resource exhaustion; increase WebSocket timeout settings (e.g., `nginx proxy_read_timeout 3600s`).",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Implement automatic reconnection with exponential backoff in the client: `function reconnect() { setTimeout(() => new WebSocket(url), 1000 * Math.pow(2, attempts)); }`",
    "Check server and proxy logs for timeout or resource exhaustion; increase WebSocket timeout settings (e.g., `nginx proxy_read_timeout 3600s`)."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://developer.mozilla.org/en-US/docs/Web/API/CloseEvent",
  "official_doc_section": null,
  "error_code": "1005",
  "verification_tier": "ai_generated",
  "confidence": 0.85,
  "fix_success_rate": 0.8,
  "resolvable": "partial",
  "first_seen": "2024-05-22",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}