{
  "id": "flutter/formatexception-invalid-json-utf8",
  "signature": "FormatException: Invalid UTF-8 byte sequence in JSON",
  "signature_zh": "FormatException: JSON 中包含无效的 UTF-8 字节序列",
  "regex": "FormatException: Invalid UTF-8 byte sequence",
  "domain": "flutter",
  "category": "data_error",
  "subcategory": null,
  "root_cause": "A JSON response or file contains malformed UTF-8 bytes that Dart's utf8 decoder cannot parse, often due to corrupted data or encoding mismatch.",
  "root_cause_type": "generic",
  "root_cause_zh": "JSON 响应或文件包含 Dart 的 utf8 解码器无法解析的损坏 UTF-8 字节，通常是由于数据损坏或编码不匹配。",
  "versions": [
    {
      "version": "Dart 3.0",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Dart 3.2",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "Flutter 3.16",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "",
      "why_fails": "Silently drops data; the app continues with incomplete information, potentially causing downstream null errors or logic bugs.",
      "fail_rate": 0.7,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "utf8.encode expects valid strings; if the input is already corrupted, it will throw the same error or produce garbage.",
      "fail_rate": 0.85,
      "condition": "",
      "sources": []
    },
    {
      "action": "",
      "why_fails": "Does not fix the underlying encoding issue; if the data is fundamentally corrupted, retrying will produce the same error.",
      "fail_rate": 0.65,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Use a forgiving UTF-8 decoder that replaces invalid sequences, such as utf8.decode with allowMalformed: true, then parse the cleaned string as JSON.",
      "success_rate": 0.8,
      "how": "Use a forgiving UTF-8 decoder that replaces invalid sequences, such as utf8.decode with allowMalformed: true, then parse the cleaned string as JSON.",
      "condition": "",
      "sources": []
    },
    {
      "action": "Validate and sanitize the input at the network layer: log the raw bytes, then request the server to fix the encoding or use a fallback endpoint.",
      "success_rate": 0.7,
      "how": "Validate and sanitize the input at the network layer: log the raw bytes, then request the server to fix the encoding or use a fallback endpoint.",
      "condition": "",
      "sources": []
    }
  ],
  "workarounds_zh": [
    "Use a forgiving UTF-8 decoder that replaces invalid sequences, such as utf8.decode with allowMalformed: true, then parse the cleaned string as JSON.",
    "Validate and sanitize the input at the network layer: log the raw bytes, then request the server to fix the encoding or use a fallback endpoint."
  ],
  "transition_graph": {
    "leads_to": [],
    "preceded_by": [],
    "frequently_confused_with": []
  },
  "official_doc_url": "https://api.dart.dev/stable/dart-convert/utf8-decode.html",
  "official_doc_section": null,
  "error_code": null,
  "verification_tier": "ai_generated",
  "confidence": 0.82,
  "fix_success_rate": 0.75,
  "resolvable": "partial",
  "first_seen": "2024-01-10",
  "last_confirmed": "2024-06-01",
  "last_updated": "2024-06-01",
  "evidence_count": 1,
  "tags": [],
  "locale": "en",
  "aliases": []
}