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 error if server responds with non-OK HTTP status #82

Merged
merged 1 commit into from
Jan 14, 2024
Merged

Conversation

fregante
Copy link
Owner

@fregante fregante commented Jan 14, 2024

This matches got's behavior, which was removed in #74

It doesn't actually catch all the API errors though, like on upload, because they return a 200 OK HTTP response.

Followup in:

@fregante fregante added the bug label Jan 14, 2024
@fregante fregante merged commit d8d7365 into main Jan 14, 2024
4 checks passed
@fregante fregante deleted the throw branch January 14, 2024 08:52
@fregante fregante changed the title Throw if server responds not ok Throw error if server responds with non-OK HTTP status (#82) Jan 14, 2024
@fregante fregante changed the title Throw error if server responds with non-OK HTTP status (#82) Throw error if server responds with non-OK HTTP status Jan 14, 2024
robertknight added a commit to hypothesis/browser-extension that referenced this pull request Apr 15, 2024
robertknight added a commit to hypothesis/browser-extension that referenced this pull request Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
1 participant