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

feat: Better treatment of errors from the API #389

Conversation

vcapretz
Copy link
Contributor

  • do not throw when fetch itself fails due to being unable to resolve the connection
  • throw better error message when the response is not a valid JSON

also closes #347

- do not throw when `fetch` itself fails due to being unable to resolve the connection
- throw better error message when the response is not a valid JSON
@vcapretz vcapretz self-assigned this Jun 21, 2024
@vcapretz vcapretz requested a review from a team as a code owner June 21, 2024 13:12
@vcapretz vcapretz merged commit b477c48 into canary Jun 25, 2024
8 checks passed
@vcapretz vcapretz deleted the feature/eng-2672-wrap-node-sdk-fetch-method-in-a-trycatch-block-to-return branch June 25, 2024 15:05
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.

client should handle raw html load balancer error responses
2 participants