claude-code - 💡(How to fix) Fix [Bug] 1M context model blocked by monthly extra usage limit despite hourly/weekly limits available [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#46967Fetched 2026-04-13 05:45:03
View on GitHub
Comments
1
Participants
2
Timeline
4
Reactions
0
Author
Timeline (top)
labeled ×3commented ×1

Error Message

[{"error":"Error: Error normalizing tool input: ZodError: [\n {\n "expected": "string",\n "code": "invalid_type",\n "path": [\n "new_string"\n ],\n "message": "Invalid input: expected string, received undefined"\n },\n {\n "code": "unrecognized_keys",\n "keys": [\n "content"\n ],\n "path": [],\n "message": "Unrecognized key: \"content\""\n }\n]\n at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:4821:1005)\n at map (native:1:11)\n at V78 (B:/~BUN/root/src/entrypoints/cli.js:4821:556)\n at Um_ (B:/~BUN/root/src/entrypoints/cli.js:7969:7513)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T09:03:09.707Z"},{"error":"Error: 429 {"type":"error","error":{"type":"rate_limit_error","message":"Extra usage is required for long context requests."},"request_id":"req_011CZycGkxBm91ZYJDsVTWsd"}\n at generate (B:/~BUN/root/src/entrypoints/cli.js:11:53407)\n at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T09:04:26.867Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: ECONNREFUSED\n at Jg4 (B:/~BUN/root/src/entrypoints/cli.js:2890:15162)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:25:54.791Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: ECONNREFUSED\n at Jg4 (B:/~BUN/root/src/entrypoints/cli.js:2890:15162)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:25:54.791Z"},{"error":"Error: 1P event logging: 3 events failed to export (code=FailedToOpenSocket, Was there a typo in the url or port?)\n at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:26:04.792Z"},{"error":"Error: 1P event logging: 4 events failed to export (code=FailedToOpenSocket, Was there a typo in the url or port?)\n at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:27:13.459Z"},{"error":"Error: 1P event logging: 8 events failed to export (code=ECONNREFUSED, ECONNREFUSED)\n at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:27:28.478Z"}]

Code Example

[{"error":"Error: Error normalizing tool input: ZodError: [\n  {\n    \"expected\": \"string\",\n    \"code\": \"invalid_type\",\n    \"path\": [\n      \"new_string\"\n    ],\n    \"message\": \"Invalid input: expected string, received undefined\"\n  },\n  {\n    \"code\": \"unrecognized_keys\",\n    \"keys\": [\n      \"content\"\n    ],\n    \"path\": [],\n    \"message\": \"Unrecognized key: \\\"content\\\"\"\n  }\n]\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:4821:1005)\n    at map (native:1:11)\n    at V78 (B:/~BUN/root/src/entrypoints/cli.js:4821:556)\n    at Um_ (B:/~BUN/root/src/entrypoints/cli.js:7969:7513)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T09:03:09.707Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011CZycGkxBm91ZYJDsVTWsd\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:53407)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T09:04:26.867Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: ECONNREFUSED\n    at Jg4 (B:/~BUN/root/src/entrypoints/cli.js:2890:15162)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:25:54.791Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: ECONNREFUSED\n    at Jg4 (B:/~BUN/root/src/entrypoints/cli.js:2890:15162)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:25:54.791Z"},{"error":"Error: 1P event logging: 3 events failed to export (code=FailedToOpenSocket, Was there a typo in the url or port?)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:26:04.792Z"},{"error":"Error: 1P event logging: 4 events failed to export (code=FailedToOpenSocket, Was there a typo in the url or port?)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:27:13.459Z"},{"error":"Error: 1P event logging: 8 events failed to export (code=ECONNREFUSED, ECONNREFUSED)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:27:28.478Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description Using a 1m model responded with "API Error: Extra usage is required for 1M context · run /extra-usage to enable, or /model to switch to standard context" however I already had extra usage enabled. Seems like the monthly extra usage limit was met, and I had to increase the limit to use 1M models again. I believe as long as my hourly/weekly limit still permits me to use a model, I should use it regardless if my extra usage limit was hit or not.

Environment Info

  • Platform: win32
  • Terminal: WezTerm
  • Version: 2.1.104
  • Feedback ID: ffdd7c14-35f3-402b-a2c9-a4f0266c97c0

Errors

[{"error":"Error: Error normalizing tool input: ZodError: [\n  {\n    \"expected\": \"string\",\n    \"code\": \"invalid_type\",\n    \"path\": [\n      \"new_string\"\n    ],\n    \"message\": \"Invalid input: expected string, received undefined\"\n  },\n  {\n    \"code\": \"unrecognized_keys\",\n    \"keys\": [\n      \"content\"\n    ],\n    \"path\": [],\n    \"message\": \"Unrecognized key: \\\"content\\\"\"\n  }\n]\n    at <anonymous> (B:/~BUN/root/src/entrypoints/cli.js:4821:1005)\n    at map (native:1:11)\n    at V78 (B:/~BUN/root/src/entrypoints/cli.js:4821:556)\n    at Um_ (B:/~BUN/root/src/entrypoints/cli.js:7969:7513)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T09:03:09.707Z"},{"error":"Error: 429 {\"type\":\"error\",\"error\":{\"type\":\"rate_limit_error\",\"message\":\"Extra usage is required for long context requests.\"},\"request_id\":\"req_011CZycGkxBm91ZYJDsVTWsd\"}\n    at generate (B:/~BUN/root/src/entrypoints/cli.js:11:53407)\n    at makeRequest (B:/~BUN/root/src/entrypoints/cli.js:50:4943)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T09:04:26.867Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: ECONNREFUSED\n    at Jg4 (B:/~BUN/root/src/entrypoints/cli.js:2890:15162)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:25:54.791Z"},{"error":"Error: Failed to fetch version from https://storage.googleapis.com/claude-code-dist-86c565f3-f756-42ad-8dfa-d59b1c096819/claude-code-releases/latest: ECONNREFUSED\n    at Jg4 (B:/~BUN/root/src/entrypoints/cli.js:2890:15162)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:25:54.791Z"},{"error":"Error: 1P event logging: 3 events failed to export (code=FailedToOpenSocket, Was there a typo in the url or port?)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:26:04.792Z"},{"error":"Error: 1P event logging: 4 events failed to export (code=FailedToOpenSocket, Was there a typo in the url or port?)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:27:13.459Z"},{"error":"Error: 1P event logging: 8 events failed to export (code=ECONNREFUSED, ECONNREFUSED)\n    at queueFailedEvents (B:/~BUN/root/src/entrypoints/cli.js:442:2574)\n    at async doExport (B:/~BUN/root/src/entrypoints/cli.js:442:1516)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-12T10:27:28.478Z"}]

extent analysis

TL;DR

Increase the monthly extra usage limit to use 1M models again, as the current limit has been met.

Guidance

  • Verify that the hourly/weekly limit still permits model usage, as the issue seems to be related to the extra usage limit being met.
  • Check the current extra usage limit and increase it if necessary to continue using 1M models.
  • Consider monitoring usage to avoid hitting the limit in the future.
  • Review error messages for any other potential issues, such as the "ECONNREFUSED" errors, which may indicate a separate problem.

Example

No code snippet is provided, as the issue seems to be related to usage limits rather than code.

Notes

The provided errors include a mix of issues, such as "Extra usage is required for long context requests" and "ECONNREFUSED" errors. However, the primary issue appears to be related to the extra usage limit being met.

Recommendation

Apply a workaround by increasing the monthly extra usage limit, as this seems to be the primary cause of the issue. This should allow for continued use of 1M models.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING