claude-code - 💡(How to fix) Fix [Bug] Anthropic API Error: Out of Extra Usage despite available quota on Claude Max plan [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#45287Fetched 2026-04-09 08:08:53
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
commented ×1cross-referenced ×1labeled ×1

Error Message

[{"error":"SyntaxError: Expected double-quoted property name in JSON at position 159 (line 8 column 7)\n at JSON.parse (<anonymous>)\n at file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:75:715\n at B (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:8:6526)\n at tA7 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2613:26759)\n at async jr2 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2613:29538)","timestamp":"2026-04-08T15:25:57.754Z"},{"error":"Error: 400 {"type":"error","error":{"type":"invalid_request_error","message":"You're out of extra usage. Add more at claude.ai/settings/usage and keep going."},"request_id":"req_011CZrY8WHuw7Vp8yntuoHNT"}\n at F9.generate (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:510:11051)\n at OT.makeStatusError (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:857:2195)\n at OT.makeRequest (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:857:5420)\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n at async SW9.d71.model (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4593:6345)\n at async d71 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1346:19540)\n at async SW9 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4593:6499)\n at async file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4591:3799\n at async d00 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1007:2037)\n at async zHA (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4591:3769)","timestamp":"2026-04-08T15:25:59.834Z"},{"error":"Error: {"stack":"OTLPExporterError: Not Found\n at IncomingMessage.<anonymous> (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1655:267253)\n at IncomingMessage.emit (node:events:520:35)\n at IncomingMessage.emit (node:domain:489:12)\n at endReadableNT (node:internal/streams/readable:1701:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:89:21)","message":"Not Found","code":"404","name":"OTLPExporterError","data":"{\"error\":\"Not found\"}"}\n at rK0.error (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1683:34862)\n at sm1.error (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:33126)\n at file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:64151\n at ty8 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:64697)\n at file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:240:20245\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)","timestamp":"2026-04-08T15:26:04.008Z"},{"error":"Error: {"stack":"Error: PeriodicExportingMetricReader: metrics export failed (error OTLPExporterError: Not Found)\n at kX2._doRun (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1643:45150)\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n at async kX2._runOnce (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1643:44387)","message":"PeriodicExportingMetricReader: metrics export failed (error OTLPExporterError: Not Found)","name":"Error"}\n at rK0.error (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1683:34862)\n at sm1.error (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:33126)\n at file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:64151\n at ty8 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:64697)\n at kX2._runOnce (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1643:44620)\n at process.processTicksAndRejections (node:internal/process/task_queues:103:5)","timestamp":"2026-04-08T15:26:07.187Z"},{"error":"Error: {"stack":"OTLP

Code Example

[{"error":"SyntaxError: Expected double-quoted property name in JSON at position 159 (line 8 column 7)\n    at JSON.parse (<anonymous>)\n    at file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:75:715\n    at B (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:8:6526)\n    at tA7 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2613:26759)\n    at async jr2 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2613:29538)","timestamp":"2026-04-08T15:25:57.754Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"You're out of extra usage. Add more at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrY8WHuw7Vp8yntuoHNT\"}\n    at F9.generate (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:510:11051)\n    at OT.makeStatusError (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:857:2195)\n    at OT.makeRequest (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:857:5420)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n    at async SW9.d71.model (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4593:6345)\n    at async d71 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1346:19540)\n    at async SW9 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4593:6499)\n    at async file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4591:3799\n    at async d00 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1007:2037)\n    at async zHA (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4591:3769)","timestamp":"2026-04-08T15:25:59.834Z"},{"error":"Error: {\"stack\":\"OTLPExporterError: Not Found\\n    at IncomingMessage.<anonymous> (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1655:267253)\\n    at IncomingMessage.emit (node:events:520:35)\\n    at IncomingMessage.emit (node:domain:489:12)\\n    at endReadableNT (node:internal/streams/readable:1701:12)\\n    at process.processTicksAndRejections (node:internal/process/task_queues:89:21)\",\"message\":\"Not Found\",\"code\":\"404\",\"name\":\"OTLPExporterError\",\"data\":\"{\\\"error\\\":\\\"Not found\\\"}\"}\n    at rK0.error (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1683:34862)\n    at sm1.error (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:33126)\n    at file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:64151\n    at ty8 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:64697)\n    at file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:240:20245\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)","timestamp":"2026-04-08T15:26:04.008Z"},{"error":"Error: {\"stack\":\"Error: PeriodicExportingMetricReader: metrics export failed (error OTLPExporterError: Not Found)\\n    at kX2._doRun (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1643:45150)\\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\\n    at async kX2._runOnce (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1643:44387)\",\"message\":\"PeriodicExportingMetricReader: metrics export failed (error OTLPExporterError: Not Found)\",\"name\":\"Error\"}\n    at rK0.error (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1683:34862)\n    at sm1.error (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:33126)\n    at file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:64151\n    at ty8 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:64697)\n    at kX2._runOnce (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1643:44620)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)","timestamp":"2026-04-08T15:26:07.187Z"},{"error":"Error: {\"stack\":\"OTLP
RAW_BUFFERClick to expand / collapse
<img width="796" height="514" alt="Image" src="https://github.com/user-attachments/assets/0081ad61-7cb9-4c21-9aa1-86b1daa716ab" />

Bug Description I am getting a your out of extra usage error when I have not reached my limits on my claude max plan.

Environment Info

  • Platform: darwin
  • Terminal: xterm-256color
  • Version: 2.0.76
  • Feedback ID: de77cfca-320c-455c-bc19-3ebde1b793a1

Errors

[{"error":"SyntaxError: Expected double-quoted property name in JSON at position 159 (line 8 column 7)\n    at JSON.parse (<anonymous>)\n    at file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:75:715\n    at B (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:8:6526)\n    at tA7 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2613:26759)\n    at async jr2 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:2613:29538)","timestamp":"2026-04-08T15:25:57.754Z"},{"error":"Error: 400 {\"type\":\"error\",\"error\":{\"type\":\"invalid_request_error\",\"message\":\"You're out of extra usage. Add more at claude.ai/settings/usage and keep going.\"},\"request_id\":\"req_011CZrY8WHuw7Vp8yntuoHNT\"}\n    at F9.generate (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:510:11051)\n    at OT.makeStatusError (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:857:2195)\n    at OT.makeRequest (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:857:5420)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\n    at async SW9.d71.model (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4593:6345)\n    at async d71 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1346:19540)\n    at async SW9 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4593:6499)\n    at async file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4591:3799\n    at async d00 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1007:2037)\n    at async zHA (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:4591:3769)","timestamp":"2026-04-08T15:25:59.834Z"},{"error":"Error: {\"stack\":\"OTLPExporterError: Not Found\\n    at IncomingMessage.<anonymous> (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1655:267253)\\n    at IncomingMessage.emit (node:events:520:35)\\n    at IncomingMessage.emit (node:domain:489:12)\\n    at endReadableNT (node:internal/streams/readable:1701:12)\\n    at process.processTicksAndRejections (node:internal/process/task_queues:89:21)\",\"message\":\"Not Found\",\"code\":\"404\",\"name\":\"OTLPExporterError\",\"data\":\"{\\\"error\\\":\\\"Not found\\\"}\"}\n    at rK0.error (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1683:34862)\n    at sm1.error (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:33126)\n    at file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:64151\n    at ty8 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:64697)\n    at file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:240:20245\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)","timestamp":"2026-04-08T15:26:04.008Z"},{"error":"Error: {\"stack\":\"Error: PeriodicExportingMetricReader: metrics export failed (error OTLPExporterError: Not Found)\\n    at kX2._doRun (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1643:45150)\\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)\\n    at async kX2._runOnce (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1643:44387)\",\"message\":\"PeriodicExportingMetricReader: metrics export failed (error OTLPExporterError: Not Found)\",\"name\":\"Error\"}\n    at rK0.error (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1683:34862)\n    at sm1.error (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:33126)\n    at file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:64151\n    at ty8 (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:239:64697)\n    at kX2._runOnce (file:///Users/griever/.bun/install/global/node_modules/@anthropic-ai/claude-code/cli.js:1643:44620)\n    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)","timestamp":"2026-04-08T15:26:07.187Z"},{"error":"Error: {\"stack\":\"OTLP

Note: Error logs were truncated.

extent analysis

TL;DR

Check your usage limits and add more at claude.ai/settings/usage to resolve the "You're out of extra usage" error.

Guidance

  • Verify your current usage and limits on the Claude platform to confirm if you have indeed exceeded your limits.
  • Check the error logs for any other potential issues, such as the SyntaxError or OTLPExporterError, which may be contributing to the problem.
  • Ensure that your JSON data is properly formatted, as the SyntaxError suggests an issue with a property name at position 159.
  • Consider reaching out to the Claude support team for further assistance, as the error messages indicate a potential issue with the platform or your account settings.

Example

No specific code example is provided, as the issue appears to be related to account settings and usage limits rather than a code-specific problem.

Notes

The error logs provided are truncated, which may limit the ability to fully diagnose the issue. Additionally, the OTLPExporterError and SyntaxError may be related to separate issues that need to be addressed independently.

Recommendation

Apply the workaround by checking and adjusting your usage limits at claude.ai/settings/usage, as this is the most direct solution to the "You're out of extra usage" error.

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