[Bug]: The security token included in the request is invalid #368
-
Describe the bugHi, Your minimal, reproducible exampleI have provided the necessary files Steps to reproduce
Expected behaviorI expected the credentials to work even if not valid as in the SDK v2. How often does this bug happen?None Screenshots or VideosNo response Platform
Package version7.0.1 AWS SDK version3.276 Additional contextNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey, I've converted this to a discussion as this is not an issue with the sqs-consumer library, we don't do anything with credentials, that is managed by the SQSClient, either the one you provide, or the default client within the codebase. So this is an issue with the queue that you have setup, your credentials or how you are providing those credentials. By default, sqs-consumer expects credentials to be provided like this: https://github.com/bbc/sqs-consumer#credentials Which also details how you can provide a custom SQSClient. For a custom endpoint, where you are not using an SQS queue, you will have to supply a custom endpoint, like we do here: https://github.com/bbc/sqs-consumer/blob/main/test/features/utils/consumer/handleMessage.js, the custom sqs client for that is setup here: https://github.com/bbc/sqs-consumer/blob/main/test/features/utils/sqs.js. |
Beta Was this translation helpful? Give feedback.
Hey, I've converted this to a discussion as this is not an issue with the sqs-consumer library, we don't do anything with credentials, that is managed by the SQSClient, either the one you provide, or the default client within the codebase.
So this is an issue with the queue that you have setup, your credentials or how you are providing those credentials.
By default, sqs-consumer expects credentials to be provided like this:
https://github.com/bbc/sqs-consumer#credentials
Which also details how you can provide a custom SQSClient. For a custom endpoint, where you are not using an SQS queue, you will have to supply a custom endpoint, like we do here: https://github.com/bbc/sqs-consumer/blob/…