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

Automatic retry on 5xx #213

Open
ewandennis opened this issue Jul 4, 2017 · 1 comment
Open

Automatic retry on 5xx #213

ewandennis opened this issue Jul 4, 2017 · 1 comment
Assignees
Labels

Comments

@ewandennis
Copy link
Contributor

We recommend users retry API calls that return HTTP status 5xx. It might be nice if our clients handled this out of the box.

@crobinson42
Copy link

I receive errors occasionally:

sparkPostClient.transmissions.send() 
error { SparkPostError: Service Temporarily Unavailable
  name: 'SparkPostError',
  errors: [ { message: 'Unable to contact authorization service.' } ],
  statusCode: 503 }

I'm in favor of an automatic retry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants