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

Fix http client error handling #13

Merged
merged 4 commits into from
Jun 20, 2024
Merged

Fix http client error handling #13

merged 4 commits into from
Jun 20, 2024

Conversation

ggreer
Copy link
Contributor

@ggreer ggreer commented Jun 20, 2024

The old code used go's http client directly, which doesn't return errors if the status code is 4xx. The http wrapper stuff in baton-sdk fixes this behavior and makes certain things more convenient (like json body decoding, retries, rate limiting, etc).

@ggreer ggreer merged commit 9366150 into main Jun 20, 2024
2 checks passed
@ggreer ggreer deleted the ggreer/fix-client branch June 20, 2024 22:33
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.

1 participant