You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Client transports report a failed send twice #1034
Client transports report a failed send twice
When send() fails, AbstractClientTransport calls onError and then rethrows. Protocol also passes exceptions it catches from send() to onError (for example, when a response to an incoming request can't be sent), so one failure reaches onError twice. On the request() path, the caller gets the exception and onError fires as well.
This affects every transport built on AbstractClientTransport: the Streamable HTTP, SSE and stdio client transports, and ChannelTransport.
ChannelTransportTest currently asserts both the callback and the exception, so it needs updating with the fix.
Activity
Preserve error responses after handler send failures (modelcontextpro…