bbc / sqs-consumer

Build Amazon Simple Queue Service (SQS) based applications without the boilerplate
https://bbc.github.io/sqs-consumer/
Other
1.74k stars 333 forks source link

fix: handle CredentialsProviderError from AWS SDK JS v3 #474

Closed jamesmbourne closed 6 months ago

jamesmbourne commented 6 months ago

Resolves #473

Description:

AWS surfaces a CredentialsProviderError when credentials could not be loaded from any providers, SQS Consumer doesn't currently handle this.

Type of change:

Why is this change required?: Handle error thrown by AWS SDK for JavaScript v3 which should be treated as an authentication failure.

Code changes:


Checklist:

github-actions[bot] commented 6 months ago

CLA Assistant Lite bot CLA CHECK All Contributors have signed the CLA

jamesmbourne commented 6 months ago

I have read the CLA Document and I hereby sign the CLA

codeclimate[bot] commented 6 months ago

Code Climate has analyzed commit 5b4cfea3 and detected 0 issues on this pull request.

The test coverage on the diff in this pull request is 100.0% (80% is the threshold).

This pull request will bring the total coverage in the repository to 98.3% (0.0% change).

View more on Code Climate.