-
Couldn't load subscription status.
- Fork 2.7k
Closed
Description
Describe the bug
If the stdio streams close before responding to a request (i.e. the server dies), the pending request waits forever (or for the read timeout) instead of erroring.
To Reproduce
Steps to reproduce the behavior:
await session.initialize()or some other request- in the server request handler, exit instead of responding to the request
- on the client, the
awaitnever resolves so the client hangs indefinitely
Expected behavior
The typescript SDK makes the pending requests return a -32000 "Connection closed" in this case
ggozad and jkawamoto
Metadata
Metadata
Assignees
Labels
No labels