{
  "id": "go/net-http-client-does-not-follow-redirects",
  "signature": "error: net/http: stopped after 10 redirects",
  "signature_zh": "错误：net/http：在10次重定向后停止",
  "regex": "error:\\ net/http:\\ stopped\\ after\\ 10\\ redirects",
  "domain": "go",
  "category": "config_error",
  "subcategory": null,
  "root_cause": "The HTTP client stopped following redirects after reaching the default maximum of 10 redirects, often due to a redirect loop.",
  "root_cause_type": "generic",
  "root_cause_zh": "HTTP客户端在达到默认的最大10次重定向后停止跟随，通常由于重定向循环。",
  "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": "Increasing CheckRedirect limit without fixing loop",
      "why_fails": "May cause infinite loop; fix the redirect logic.",
      "fail_rate": 0.6,
      "condition": "",
      "sources": []
    }
  ],
  "workarounds": [
    {
      "action": "Set a custom CheckRedirect function to limit and log redirects",
      "success_rate": 0.9,
      "how": "client := &http.Client{\n    CheckRedirect: func(req *http.Request, via []*http.Request) error {\n        if len(via) >= 5 { return http.ErrUseLastResponse }\n        return nil\n    },\n}",
      "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.84,
  "fix_success_rate": 0.8,
  "resolvable": "true",
  "first_seen": "2025-09-10",
  "last_confirmed": "2025-01-01",
  "last_updated": "2025-01-01",
  "evidence_count": 0,
  "tags": [],
  "locale": "en",
  "aliases": []
}