Commit 1593929
committed
Fix streamable HTTP to handle error responses
Handle both success (JSONRPCResultResponse) and error (JSONRPCErrorResponse)
responses for:
- Setting receivedResponse flag to prevent unnecessary reconnection
- ID remapping during stream resumption
Previously only success responses were handled, which could cause:
1. Unnecessary reconnection attempts after receiving an error response
2. Incorrect request/response correlation during stream resumption
This aligns with the Python SDK and Swift SDK implementations.1 parent 5ce4b5e commit 1593929
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
7 | 8 | | |
8 | 9 | | |
9 | 10 | | |
| |||
361 | 362 | | |
362 | 363 | | |
363 | 364 | | |
364 | | - | |
| 365 | + | |
| 366 | + | |
365 | 367 | | |
366 | 368 | | |
367 | 369 | | |
| |||
0 commit comments