Exception: MCPClient::Errors::ResponseStreamClosedError
- Inherits:
-
TransportError
- Object
- StandardError
- MCPError
- TransportError
- MCPClient::Errors::ResponseStreamClosedError
- Defined in:
- lib/mcp_client/errors.rb
Overview
Raised on the modern (2026-07-28) Streamable HTTP transport when an SSE response stream ends before delivering the JSON-RPC response. There is no resumption: "a broken response stream loses the in-flight request; clients MUST re-issue it as a new request with a new request ID". The transport makes that one replacement request itself — for every method, tools/call included, since the broken stream is also the cancellation signal the server MUST act on — and raises this when it too is lost.
Instance Method Summary collapse
-
#era_inconclusive? ⇒ Boolean
The response was lost in transit, so the exchange revealed nothing about the server's protocol era.
Methods inherited from TransportError
#modern_protocol_error_for_probe?
Instance Method Details
#era_inconclusive? ⇒ Boolean
Returns the response was lost in transit, so the exchange revealed nothing about the server's protocol era.
529 530 531 |
# File 'lib/mcp_client/errors.rb', line 529 def era_inconclusive? true end |