Skip to content

Commit 2ce0057

Browse files
birdayzishymko
andauthored
Update src/client/transports/json_rpc_transport.ts
Co-authored-by: Ivan Shymko <vana.shimko@gmail.com>
1 parent df5845d commit 2ce0057

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/client/transports/json_rpc_transport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ export class JsonRpcTransport implements Transport {
330330
const err = a2aStreamResponse.error;
331331
throw new Error(
332332
`SSE event contained an error: ${err.message} (Code: ${err.code}) Data: ${JSON.stringify(err.data || {})}`,
333-
{ cause: JsonRpcTransport.mapToError(a2aStreamResponse as JSONRPCErrorResponse) }
333+
{ cause: JsonRpcTransport.mapToError(a2aStreamResponse) }
334334
);
335335
}
336336

0 commit comments

Comments
 (0)