bbc / sqs-consumer

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

feat: extend authentication error to handle more codes #489

Closed nicholasgriffintn closed 2 months ago

nicholasgriffintn commented 2 months ago

Resolves #484

Description:

SQS Consumer does not currently handle some other connection / authentication errors that SQS sends out. This PR extends the code to handle these as connection errors, which will cause the polling timeout to be extended.

Type of change:

Why is this change required?:

This allows users to better respond to these issues and stops the consumer from pinging SQS too often as these errors are expected to persist for some time.

Code changes:

codeclimate[bot] commented 2 months ago

Code Climate has analyzed commit a495cba1 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.