Commit b678de65 authored by Christian Tzolov's avatar Christian Tzolov Committed by Christian Tzolov
Browse files

fix: improve error handling in HttpClientSseClientTransport and add test



- Include response body in error messages for better debugging
- Change sendHttpPost return type from HttpResponse<Void> to HttpResponse<String>
- Use BodyHandlers.ofString() instead of discarding response body
- Add testErrorOnBogusMessage test to verify error handling for invalid JSON-RPC messages
- Test validates that malformed messages return 400 status with descriptive error message

Replace #361

Signed-off-by: default avatarChristian Tzolov <christian.tzolov@broadcom.com>

Co-authored-by: default avatarjkma <jkma@trip.com>
parent d282d40a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment