claude-code - 💡(How to fix) Fix [Bug] Subagent spawning consumes excessive token budget (30% of 5h limit) [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#51992Fetched 2026-04-23 07:39:27
View on GitHub
Comments
1
Participants
2
Timeline
6
Reactions
0
Timeline (top)
labeled ×5commented ×1

Error Message

[{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {"jsonrpc":"2.0","id":23,"error":{"code":-32600,"message":"Anthropic Proxy: Invalid content from server","data":null}}\r\n\r\n\n at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:43:40.058Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {"jsonrpc":"2.0","id":21,"error":{"code":-32600,"message":"Anthropic Proxy: Invalid content from server","data":null}}\r\n\r\n\n at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:43:40.095Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {"jsonrpc":"2.0","id":26,"error":{"code":-32600,"message":"Anthropic Proxy: Invalid content from server","data":null}}\r\n\r\n\n at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:44:10.324Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {"jsonrpc":"2.0","id":36,"error":{"code":-32600,"message":"Anthropic Proxy: Invalid content from server","data":null}}\r\n\r\n\n at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:44:58.157Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {"jsonrpc":"2.0","id":60,"error":{"code":-32600,"message":"Anthropic Proxy: Invalid content from server","data":null}}\r\n\r\n\n at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:49:43.558Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {"jsonrpc":"2.0","id":68,"error":{"code":-32600,"message":"Anthropic Proxy: Invalid content from server","data":null}}\r\n\r\n\n at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:54:26.295Z"}]

Code Example

[{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {\"jsonrpc\":\"2.0\",\"id\":23,\"error\":{\"code\":-32600,\"message\":\"Anthropic Proxy: Invalid content from server\",\"data\":null}}\r\n\r\n\n    at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:43:40.058Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {\"jsonrpc\":\"2.0\",\"id\":21,\"error\":{\"code\":-32600,\"message\":\"Anthropic Proxy: Invalid content from server\",\"data\":null}}\r\n\r\n\n    at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:43:40.095Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {\"jsonrpc\":\"2.0\",\"id\":26,\"error\":{\"code\":-32600,\"message\":\"Anthropic Proxy: Invalid content from server\",\"data\":null}}\r\n\r\n\n    at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:44:10.324Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {\"jsonrpc\":\"2.0\",\"id\":36,\"error\":{\"code\":-32600,\"message\":\"Anthropic Proxy: Invalid content from server\",\"data\":null}}\r\n\r\n\n    at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:44:58.157Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {\"jsonrpc\":\"2.0\",\"id\":60,\"error\":{\"code\":-32600,\"message\":\"Anthropic Proxy: Invalid content from server\",\"data\":null}}\r\n\r\n\n    at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:49:43.558Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {\"jsonrpc\":\"2.0\",\"id\":68,\"error\":{\"code\":-32600,\"message\":\"Anthropic Proxy: Invalid content from server\",\"data\":null}}\r\n\r\n\n    at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:54:26.295Z"}]
RAW_BUFFERClick to expand / collapse

Bug Description spawn of 2 subagents eat around 30% of 5 h limits

Environment Info

  • Platform: darwin
  • Terminal: webstorm
  • Version: 2.1.117
  • Feedback ID: b87d4d19-32ea-4de1-adc9-5e8f7c29bbb8

Errors

[{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {\"jsonrpc\":\"2.0\",\"id\":23,\"error\":{\"code\":-32600,\"message\":\"Anthropic Proxy: Invalid content from server\",\"data\":null}}\r\n\r\n\n    at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:43:40.058Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {\"jsonrpc\":\"2.0\",\"id\":21,\"error\":{\"code\":-32600,\"message\":\"Anthropic Proxy: Invalid content from server\",\"data\":null}}\r\n\r\n\n    at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:43:40.095Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {\"jsonrpc\":\"2.0\",\"id\":26,\"error\":{\"code\":-32600,\"message\":\"Anthropic Proxy: Invalid content from server\",\"data\":null}}\r\n\r\n\n    at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:44:10.324Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {\"jsonrpc\":\"2.0\",\"id\":36,\"error\":{\"code\":-32600,\"message\":\"Anthropic Proxy: Invalid content from server\",\"data\":null}}\r\n\r\n\n    at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:44:58.157Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {\"jsonrpc\":\"2.0\",\"id\":60,\"error\":{\"code\":-32600,\"message\":\"Anthropic Proxy: Invalid content from server\",\"data\":null}}\r\n\r\n\n    at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:49:43.558Z"},{"error":"Error: Streamable HTTP error: Error POSTing to endpoint: event: message\r\ndata: {\"jsonrpc\":\"2.0\",\"id\":68,\"error\":{\"code\":-32600,\"message\":\"Anthropic Proxy: Invalid content from server\",\"data\":null}}\r\n\r\n\n    at send (/$bunfs/root/src/entrypoints/cli.js:834:36427)\n    at processTicksAndRejections (native:7:39)","timestamp":"2026-04-22T13:54:26.295Z"}]

extent analysis

TL;DR

The issue may be related to the Anthropic Proxy returning invalid content, causing Streamable HTTP errors.

Guidance

  • Investigate the Anthropic Proxy configuration and logs to determine why it's returning invalid content.
  • Verify that the request payload being sent to the endpoint is correctly formatted and valid.
  • Check the cli.js file at line 834 to see how the send function is handling errors and if there's a way to improve error handling.
  • Consider adding retry logic or exponential backoff to handle temporary errors.

Example

No code example is provided as the issue is more related to configuration and error handling.

Notes

The issue seems to be related to the Anthropic Proxy, but without more information about the proxy configuration and the request being sent, it's difficult to provide a more specific solution.

Recommendation

Apply a workaround by adding retry logic or exponential backoff to handle temporary errors, as the root cause of the issue is unclear.

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

claude-code - 💡(How to fix) Fix [Bug] Subagent spawning consumes excessive token budget (30% of 5h limit) [1 comments, 2 participants]