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

[Bug]: CredentialsProviderError is not treated as a connection error #473

Closed jamesmbourne closed 3 months ago

jamesmbourne commented 3 months ago

Describe the bug

The isConnectionError function does not account for the CredentialsProviderError which can be thrown by the AWS SDK for JavaScript v3.

Failure to handle this error means the default pollingWaitTimeMs of 0ms will be used, instead of the 10,000ms authenticationErrorTimeout, producing a high volume of errors if there is an IAM misconfiguration or failure.

Your minimal, reproducible example

N/A

Steps to reproduce

  1. Pass invalid IAM configuration
  2. Receive messages

Expected behavior

Delay of 10s applies

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

macOS, Linux

Package version

v9.0.0

AWS SDK version

v3

Additional context

No response

github-actions[bot] commented 3 months ago

:tada: This issue has been resolved in version 9.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] commented 2 months ago

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.