{
  "id": "go/net-http-cookie-jar-error",
  "signature": "error: net/http: nil CookieJar",
  "signature_zh": "错误：net/http：空的CookieJar",
  "regex": "error:\\ net/http:\\ nil\\ CookieJar",
  "domain": "go",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The HTTP client's CookieJar is nil, causing panics when cookies are set or retrieved.",
  "root_cause_type": "generic",
  "root_cause_zh": "HTTP客户端的CookieJar为nil，导致设置或获取cookie时恐慌。",
  "versions": [
    {
      "version": "1.20",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    },
    {
      "version": "1.21",
      "introduced": null,
      "deprecated": null,
      "removed": null,
      "behavior_change": null,
      "status": "active"
    }
  ],
  "os_specific": {},
  "dead_ends": [
    {
      "action": "Ignoring cookie jar entirely",
      "why_fails": "May break cookie-based authentication; always initialize.",
      "fail_rate": 0.5,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Initialize a CookieJar for the client",
      "success_rate": 0.95,
      "how": "jar, _ := cookiejar.New(nil)\nclient := &http.Client{Jar: jar}",
      "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.86,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2026-12-20",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}