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

Correctly handle error parsing for 502/503/504s and batched errors #32

Closed

Conversation

jeremylightsmith
Copy link

This PR handles:

  • 502/503/504s for which the expo server returns html, not json.
  • when a batch of push notifications are sent, and an item which is not the first has an error

We could submit multiple requests, and receive multiple responses. If the 2nd one failed, it was not correctly identifying the type of error that occurred.
expo's servers will return non-json errors for things like the service being down. let's handle them and not throw a JSON::ParserError
@lsmolic
Copy link
Contributor

lsmolic commented Apr 6, 2020

@jeremylightsmith checkout #29 and see if that addresses this. I'm pretty sure by getting back all error messages, this is no longer a problem, but then again, I didn't specifically solve for those 500 level errors.

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.

3 participants