[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6F6X4KFAEVPA4CF0MP7XN44":3,"skill-same:01M6F6X4KFAEVPA4CF0MP7XN44":81},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":63,"ownerHtmlUrl":64,"ownerBlogUrl":6,"ownerDescription":65,"updatedAt":66,"install":67,"resources":80},"01M6F6X4KFAEVPA4CF0MP7XN44","anth-common-errors",null,"Diagnose and fix Anthropic Claude API errors by HTTP status code.\nUse when encountering API errors, debugging failed requests,\nor troubleshooting authentication, rate limiting, or input validation issues.\nTrigger with phrases like \"anthropic error\", \"claude api error\",\n\"fix anthropic 429\", \"claude not working\", \"debug claude api\".","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fanth-common-errors\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"common","anth common errors","read","status","http status","Input Validation","error","input","trigger","io","fix","diagnose","claude api","Bash","api","anthropic claude","issues","authentication","code","debugging","2026-11-10 10:12:30",false,"---\nname: anth-common-errors\ndescription: |\n  Diagnose and fix Anthropic Claude API errors by HTTP status code.\n  Use when encountering API errors, debugging failed requests,\n  or troubleshooting authentication, rate limiting, or input validation issues.\n  Trigger with phrases like \"anthropic error\", \"claude api error\",\n  \"fix anthropic 429\", \"claude not working\", \"debug claude api\".\nallowed-tools: Read, Grep, Bash(curl:*)\nversion: 1.0.0\nlicense: MIT\nauthor: Jeremy Longshore \u003Cjeremy@intentsolutions.io>\ntags: [saas, ai, anthropic]\ncompatible-with: claude-code\n---\n\n# Anthropic Common Errors\n\n## Overview\n\nQuick reference for all Claude API error types with exact HTTP codes, error bodies, and fixes. The API returns errors as JSON: `{\"type\": \"error\", \"error\": {\"type\": \"...\", \"message\": \"...\"}}`.\n\n## Error Reference\n\n### 400 — `invalid_request_error`\n\n```json\n{\"type\": \"error\", \"error\": {\"type\": \"invalid_request_error\", \"message\": \"messages: roles must alternate between \\\"user\\\" and \\\"assistant\\\"\"}}\n```\n\n**Common causes and fixes:**\n\n| Message Pattern | Cause | Fix |\n|----------------|-------|-----|\n| `messages: roles must alternate` | Consecutive same-role messages | Merge adjacent user\u002Fassistant messages |\n| `max_tokens: must be >= 1` | Missing or zero `max_tokens` | Always set `max_tokens` (required param) |\n| `model: invalid model id` | Typo in model name | Use exact ID: `claude-sonnet-4-20250514` |\n| `messages.0.content: empty` | Empty message content | Ensure content is non-empty string or array |\n| `tool_result: tool_use_id not found` | Mismatched tool ID | Copy `id` from the `tool_use` block exactly |\n\n### 401 — `authentication_error`\n\n```bash\n# Verify your key is set and valid\necho $ANTHROPIC_API_KEY | head -c 15  # Should show: sk-ant-api03-...\n\n# Test directly with curl\ncurl -s https:\u002F\u002Fapi.anthropic.com\u002Fv1\u002Fmessages \\\n  -H \"x-api-key: $ANTHROPIC_API_KEY\" \\\n  -H \"anthropic-version: 2023-06-01\" \\\n  -H \"content-type: application\u002Fjson\" \\\n  -d '{\"model\":\"claude-sonnet-4-20250514\",\"max_tokens\":16,\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}]}'\n```\n\n### 403 — `permission_error`\n\nAPI key lacks required permissions. Generate a new key at [console.anthropic.com](https:\u002F\u002Fconsole.anthropic.com).\n\n### 404 — `not_found_error`\n\nInvalid endpoint or model. Check you're using `https:\u002F\u002Fapi.anthropic.com\u002Fv1\u002Fmessages` and a valid model ID.\n\n### 429 — `rate_limit_error`\n\n```json\n{\"type\": \"error\", \"error\": {\"type\": \"rate_limit_error\", \"message\": \"Number of request tokens has exceeded your per-minute rate limit\"}}\n```\n\n**Check headers for details:**\n- `retry-after` — seconds to wait\n- `anthropic-ratelimit-requests-limit` — RPM cap\n- `anthropic-ratelimit-tokens-limit` — TPM cap\n- `anthropic-ratelimit-tokens-remaining` — tokens left this window\n\n**Fix:** The SDK handles 429 with automatic retry (configurable via `maxRetries`). For manual handling, see `anth-rate-limits`.\n\n### 529 — `overloaded_error`\n\nAPI is temporarily overloaded. Retry after 30-60 seconds. Not counted against rate limits.\n\n### 500 — `api_error`\n\nInternal server error. Retry with exponential backoff. If persistent, check [status.anthropic.com](https:\u002F\u002Fstatus.anthropic.com).\n\n## Quick Diagnostic Script\n\n```bash\n# 1. Check API status\ncurl -s https:\u002F\u002Fstatus.anthropic.com\u002Fapi\u002Fv2\u002Fstatus.json | python3 -c \"import sys,json; d=json.load(sys.stdin); print(d['status']['description'])\"\n\n# 2. Verify key format\necho $ANTHROPIC_API_KEY | grep -qE '^sk-ant-api03-' && echo \"Key format OK\" || echo \"Key format WRONG\"\n\n# 3. Test minimal request\ncurl -s -w \"\\nHTTP %{http_code}\" https:\u002F\u002Fapi.anthropic.com\u002Fv1\u002Fmessages \\\n  -H \"x-api-key: $ANTHROPIC_API_KEY\" \\\n  -H \"anthropic-version: 2023-06-01\" \\\n  -H \"content-type: application\u002Fjson\" \\\n  -d '{\"model\":\"claude-sonnet-4-20250514\",\"max_tokens\":8,\"messages\":[{\"role\":\"user\",\"content\":\"1+1=\"}]}'\n```\n\n## SDK Error Handling\n\n```python\nimport anthropic\n\ntry:\n    message = client.messages.create(...)\nexcept anthropic.AuthenticationError as e:\n    print(f\"Auth failed: {e.status_code}\")\nexcept anthropic.RateLimitError as e:\n    print(f\"Rate limited. Retry after: {e.response.headers.get('retry-after')}s\")\nexcept anthropic.BadRequestError as e:\n    print(f\"Invalid request: {e.message}\")\nexcept anthropic.APIStatusError as e:\n    print(f\"API error {e.status_code}: {e.message}\")\nexcept anthropic.APIConnectionError:\n    print(\"Network error — check connectivity\")\n```\n\n## Resources\n\n- [Error Types Reference](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fapi\u002Ferrors)\n- [Rate Limits](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fapi\u002Frate-limits)\n- [API Status](https:\u002F\u002Fstatus.anthropic.com)\n\n## Next Steps\n\nFor comprehensive debugging, see `anth-debug-bundle`.\n\n","# Anthropic Common Errors\n\n## Overview\n\nQuick reference for all Claude API error types with exact HTTP codes, error bodies, and fixes. The API returns errors as JSON: `{\"type\": \"error\", \"error\": {\"type\": \"...\", \"message\": \"...\"}}`.\n\n## Error Reference\n\n### 400 — `invalid_request_error`\n\n```json\n{\"type\": \"error\", \"error\": {\"type\": \"invalid_request_error\", \"message\": \"messages: roles must alternate between \\\"user\\\" and \\\"assistant\\\"\"}}\n```\n\n**Common causes and fixes:**\n\n| Message Pattern | Cause | Fix |\n|----------------|-------|-----|\n| `messages: roles must alternate` | Consecutive same-role messages | Merge adjacent user\u002Fassistant messages |\n| `max_tokens: must be >= 1` | Missing or zero `max_tokens` | Always set `max_tokens` (required param) |\n| `model: invalid model id` | Typo in model name | Use exact ID: `claude-sonnet-4-20250514` |\n| `messages.0.content: empty` | Empty message content | Ensure content is non-empty string or array |\n| `tool_result: tool_use_id not found` | Mismatched tool ID | Copy `id` from the `tool_use` block exactly |\n\n### 401 — `authentication_error`\n\n```bash\n# Verify your key is set and valid\necho $ANTHROPIC_API_KEY | head -c 15  # Should show: sk-ant-api03-...\n\n# Test directly with curl\ncurl -s https:\u002F\u002Fapi.anthropic.com\u002Fv1\u002Fmessages \\\n  -H \"x-api-key: $ANTHROPIC_API_KEY\" \\\n  -H \"anthropic-version: 2023-06-01\" \\\n  -H \"content-type: application\u002Fjson\" \\\n  -d '{\"model\":\"claude-sonnet-4-20250514\",\"max_tokens\":16,\"messages\":[{\"role\":\"user\",\"content\":\"hi\"}]}'\n```\n\n### 403 — `permission_error`\n\nAPI key lacks required permissions. Generate a new key at [console.anthropic.com](https:\u002F\u002Fconsole.anthropic.com).\n\n### 404 — `not_found_error`\n\nInvalid endpoint or model. Check you're using `https:\u002F\u002Fapi.anthropic.com\u002Fv1\u002Fmessages` and a valid model ID.\n\n### 429 — `rate_limit_error`\n\n```json\n{\"type\": \"error\", \"error\": {\"type\": \"rate_limit_error\", \"message\": \"Number of request tokens has exceeded your per-minute rate limit\"}}\n```\n\n**Check headers for details:**\n- `retry-after` — seconds to wait\n- `anthropic-ratelimit-requests-limit` — RPM cap\n- `anthropic-ratelimit-tokens-limit` — TPM cap\n- `anthropic-ratelimit-tokens-remaining` — tokens left this window\n\n**Fix:** The SDK handles 429 with automatic retry (configurable via `maxRetries`). For manual handling, see `anth-rate-limits`.\n\n### 529 — `overloaded_error`\n\nAPI is temporarily overloaded. Retry after 30-60 seconds. Not counted against rate limits.\n\n### 500 — `api_error`\n\nInternal server error. Retry with exponential backoff. If persistent, check [status.anthropic.com](https:\u002F\u002Fstatus.anthropic.com).\n\n## Quick Diagnostic Script\n\n```bash\n# 1. Check API status\ncurl -s https:\u002F\u002Fstatus.anthropic.com\u002Fapi\u002Fv2\u002Fstatus.json | python3 -c \"import sys,json; d=json.load(sys.stdin); print(d['status']['description'])\"\n\n# 2. Verify key format\necho $ANTHROPIC_API_KEY | grep -qE '^sk-ant-api03-' && echo \"Key format OK\" || echo \"Key format WRONG\"\n\n# 3. Test minimal request\ncurl -s -w \"\\nHTTP %{http_code}\" https:\u002F\u002Fapi.anthropic.com\u002Fv1\u002Fmessages \\\n  -H \"x-api-key: $ANTHROPIC_API_KEY\" \\\n  -H \"anthropic-version: 2023-06-01\" \\\n  -H \"content-type: application\u002Fjson\" \\\n  -d '{\"model\":\"claude-sonnet-4-20250514\",\"max_tokens\":8,\"messages\":[{\"role\":\"user\",\"content\":\"1+1=\"}]}'\n```\n\n## SDK Error Handling\n\n```python\nimport anthropic\n\ntry:\n    message = client.messages.create(...)\nexcept anthropic.AuthenticationError as e:\n    print(f\"Auth failed: {e.status_code}\")\nexcept anthropic.RateLimitError as e:\n    print(f\"Rate limited. Retry after: {e.response.headers.get('retry-after')}s\")\nexcept anthropic.BadRequestError as e:\n    print(f\"Invalid request: {e.message}\")\nexcept anthropic.APIStatusError as e:\n    print(f\"API error {e.status_code}: {e.message}\")\nexcept anthropic.APIConnectionError:\n    print(\"Network error — check connectivity\")\n```\n\n## Resources\n\n- [Error Types Reference](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fapi\u002Ferrors)\n- [Rate Limits](https:\u002F\u002Fdocs.anthropic.com\u002Fen\u002Fapi\u002Frate-limits)\n- [API Status](https:\u002F\u002Fstatus.anthropic.com)\n\n## Next Steps\n\nFor comprehensive debugging, see `anth-debug-bundle`.\n\n",{"name":5,"tags":49,"author":53,"license":15,"version":54,"description":55,"allowed-tools":56,"compatible-with":57},[50,51,52],"saas","ai","anthropic","Jeremy Longshore \u003Cjeremy@intentsolutions.io>","1.0.0","Diagnose and fix Anthropic Claude API errors by HTTP status code.\nUse when encountering API errors, debugging failed requests,\nor troubleshooting authentication, rate limiting, or input validation issues.\nTrigger with phrases like \"anthropic error\", \"claude api error\",\n\"fix anthropic 429\", \"claude not working\", \"debug claude api\".\n","Read, Grep, Bash(curl:*)","claude-code","main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fanth-common-errors",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":68,"prompt":78,"zipAvailable":79},[69,72,75],{"tool":70,"command":71},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill anth-common-errors",{"tool":73,"command":74},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill anth-common-errors",{"tool":76,"command":77},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill anth-common-errors","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fjeremylongshore\u002Fclaude-code-plugins-plus-skills\u002Fanth-common-errors\u002FSKILL.md",true,[],[82,96,106,115,121,128],{"skillNo":83,"name":84,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":92,"publishedAt":44},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[87],{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[93,94,95],"model","model hierarchy","model hierarchy skill",{"skillNo":97,"name":98,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":102,"publishedAt":44},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[101],{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},[103,104,105],"MCP","zoom","zoom mcp",{"skillNo":107,"name":108,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":44},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[112,113,114,104],"sdk","zoom apps sdk","apps",{"skillNo":116,"name":117,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":44},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[117],{"skillNo":122,"name":123,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":127,"publishedAt":44},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[126],{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},[123],{"skillNo":129,"name":130,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":44},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[130]]