fix: send JSONRPCError instead of bare exceptions in streamable HTTP client (#2005)

This commit is contained in:
Marcelo Trylesinski 2026-02-09 11:38:46 +01:00 • committed by GitHub
commit 7c7c13b648
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,7 +75,7 @@ class JSONRPCError(BaseModel):
"""A response to a request that indicates an error occurred."""
jsonrpc: Literal["2.0"]
id: str | int
id: RequestId
error: ErrorData