node-sparkpost icon indicating copy to clipboard operation
node-sparkpost copied to clipboard

Automatic retry on 5xx

Open ewandennis opened this issue 8 years ago • 1 comments

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

ewandennis avatar Jul 04 '17 15:07 ewandennis

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.

crobinson42 avatar Oct 11 '19 03:10 crobinson42