cloudant / nodejs-cloudant

Cloudant Node.js client library
Apache License 2.0
255 stars 90 forks source link

Retry bad IAM token requests. #386

Closed smithsz closed 5 years ago

smithsz commented 5 years ago

Checklist

Description

Retry bad IAM token requests.

Fixes #385.

Approach

Catch 5xx & 429 status codes and invoke retry mechanism (by not setting shouldApplyIAMAuth to false).

Schema & API Changes

No change.

Security and Privacy

No change.

Testing

Updated unit tests.

Monitoring and Logging

No change.