Skip to content
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

Throw client errors correctly. #293

Merged
merged 1 commit into from
Mar 13, 2023
Merged

Throw client errors correctly. #293

merged 1 commit into from
Mar 13, 2023

Conversation

philnash
Copy link
Collaborator

If the HTTP client catches an error but it doesn't have a response, then it is not an HTTP error, so we'll throw the original error instead. This will surface what is causing an error that isn't because of an HTTP response in the client.

Should fix #229, or at least help diagnose it.

If the HTTP client catches an error but it doesn't have a response, then it is not an HTTP error, so we'll throw the original error instead. This will surface what is causing an error that isn't because of an HTTP response in the client.

Should fix #229, or at least help diagnose it.
@philnash
Copy link
Collaborator Author

This should also show up what is happening in #226.

@bubenshchykov bubenshchykov merged commit c95c089 into master Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error catch causes error that hides the real error.
2 participants