Skip to content

resty/v3 NewEventSource SSE Client Fails to Provide Full Response Body for Non-Retryable Errors #1041

@ihipop

Description

@ihipop

When encountering a non-retryable error, the resty/v3 SSE client only returns an error without providing the full response content, which significantly impacts our ability to diagnose the error. For example, when an SSE request requires a ted parameter to return a correct response, the client cannot retrieve the server's specific error response, making it impossible to determine the exact nature of the error. The client should provide the ability to access the error response content instead of relying on a coarse error message.
code:

resty/sse.go

Line 488 in 66256ef

err = wrapErrors(fmt.Errorf("resty:sse: %v", rRes.Status()), doErr)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions