Repository navigation
Closed
Description
In the past we had problems with downloads and large response bodies. I have also seen large request bodies, and don't know why.
Figure out the conditions in which this happens, and how to communicate this both to the developers, and to users who are experiencing altered behavior.
time=2026-09-30T05:56:31.749-04:00 level=WARN msg="forward-proxy: response body too large" binary=authbridge-proxy host=downloads.claude.ai len=10485761
...
time=2026-10-02T17:53:09.548-04:00 level=WARN msg="forward-proxy: request body exceeds size limit" binary=cortex host=api.anthropic.com method=POST path=/v1/messages error="http: request body too large" read=10485760 limit=10485760 contentLength=10585442
time=2026-09-29T21:19:10.878-04:00 level=WARN msg="forward-proxy: request body exceeds size limit"
On my machine, since the log starts on Sep 28, 150 transfers have been rejected for size: 30 requests and 120 responses.
Requests rejected (30, all returned 413)
- All 30 were POST api.anthropic.com/v1/messages through the forward proxy, so they were Claude Code conversations that had grown past the 10,485,760-byte (10 MiB) limit.
- Largest rejected: 12,284,233 bytes (~11.7 MiB), at 2026-10-05 07:37:55. The client sent a Content-Length header on every one, so these sizes are exact.
- The smallest rejected was 10,489,160 bytes, just 3,400 bytes over the limit.
- They ran from Sep 29 to today, with 7 of them this morning between 07:00 and 08:00.
Responses rejected (120, the client got a 502)
- These were downloads, not LLM traffic: openvsx.eclipsecontent.org (66), downloads.claude.ai (48) and anthropic.gallerycdn.vsassets.io (6). They look like VS Code extension and Claude downloads retrying.
- Their real size is unknown. The log reports len=10485761 for every one, but that is just the limit plus one byte, where the proxy stops reading. It isn't the actual size.
Anthropic's errors page (https://platform.claude.com/docs/en/api/errors#request-size-limits) lists a 32 MB maximum request size for the Messages API:
┌─────────────────────────────┬──────────────────────┐
│ Endpoint │ Maximum request size │
├─────────────────────────────┼──────────────────────┤
│ Messages API (/v1/messages) │ 32 MB │
├─────────────────────────────┼──────────────────────┤
│ Token Counting API │ 32 MB │
├─────────────────────────────┼──────────────────────┤
│ Batch API │ 256 MB │
├─────────────────────────────┼──────────────────────┤
│ Files API │ 500 MB │
└─────────────────────────────┴──────────────────────┘
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
- StatusShow more project fieldsDone
Activity
fix: Raise the forward proxy's request body cap to 32 MiB (#1290)
fix: Record a failure row for a request whose body cannot be buffered (…
esnible commentedon Oct 5, 2026
Closing through the two fixes.