Investigate intermittent "Failed to scan response body" errors in streamable-http transport
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 2.2k
- Forks
- 300
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 184
Description
In the streamable-http transport, MCP servers occasionally log errors such as:
These errors do not currently appear to cause functional issues, but they recur intermittently and may indicate underlying problems in how response bodies are streamed or how connections are closed.
Although they do not look dangerous, it is still worth debugging to determine whether these represent:
- Expected behavior (e.g., client-initiated cancellations),
- Benign but noisy logging, or
- Actual transport-layer bugs such as premature connection closure or race conditions.
Why this matters
- These logs appear across multiple MCP servers, not tied to any specific implementation.
- Cleaning this up will improve observability and ensure reliability of the streamable-http transport.
Next steps
- Reproduce and investigate the conditions under which these errors occur.
- Determine whether logging should be adjusted or if fixes are needed in the transport lifecycle.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the streamable-http transport and reproduce the intermittent “Failed to scan response body” error. Trace response-body streaming and connection closure to determine whether the messages are expected cancellations, noisy logging, or a transport bug; done means the cause is established and the needed logging or lifecycle change is identified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go
- Domain
- api, networking
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100