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:
|
err = wrapErrors(fmt.Errorf("resty:sse: %v", rRes.Status()), doErr) |