-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider Typing Errors for Requests with Nil Responses #172
Comments
Yeah I would be very supportive of this. The errors coming out of the standard library are almost all well-typed, so this conversion should be relatively straightforward (and can grow over time if we don't hit 100% coverage in the first version). |
Definitely agree that this would be a valuable addition! Similarly, @bmoylan just added a way to identify Timeout errors and tag them in the metrics middleware. I would be fully supportive of adding a way to wire these errors back through so clients could use something like errors.Is with well defined types. |
also interested in whether these error types should affect our existing retry behavior here |
There are some error cases for requests where the response is nil; these cases fall outside the scope of the existing error decoder middleware implementation. Examples of errors like this are:
Ideally, CGR provides some methods that enable us to identify these errors (similar to typing conjure errors / attaching status codes to errors)
The text was updated successfully, but these errors were encountered: