Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: The security token included in the request is invalid #367

Closed
BrachyKnight opened this issue Feb 24, 2023 · 0 comments
Closed

[Bug]: The security token included in the request is invalid #367

BrachyKnight opened this issue Feb 24, 2023 · 0 comments
Milestone

Comments

@BrachyKnight
Copy link

Describe the bug

Hi,
sorry to bother you but I've been indirectly using your package by using nestjs-sqs.
Since that package was using a version of sqs-consumer working with the AWS SDK v2, I have decided to write my implementation by using only your most recent package.
Before I was using alpine-sqs image as a mock sqs server with invalid credentials. However since switching to v3 of the AWS SDK the consumer returns SQSError: SQS receive message failed: The security token included in the request is invalid. I have also tried to use valid credentials, but this time it seems like it doesn't look for the queue_url that i pass in Consumer.create() and returns SQSError: SQS receive message failed: The address https://sqs.eu-south-1.amazonaws.com/ is not valid for this endpoint.
Is your package running a credential check under the hood? Or is it the sdk v3? I have not found informations regarding that anywhere.

Your minimal, reproducible example

I have provided the necessary files

Steps to reproduce

  1. Try passing invalid credentials to Consumer.create()
  2. Try passing valid credentials but a totally different queuUrl in Consumer.create() (like 'http://localhost:9324/queue/queue-name')
  3. Create a basic node app that uses the environment variables included in the .env I provided. I have also added a docker-compose that relies on that dockerfile to create a network with the mock SQS sever
    issue.zip

Expected behavior

I expected the credentials to work even if not valid as in the SDK v2.
If that didn't work I expected the app to use the queue_url I provided

How often does this bug happen?

None

Screenshots or Videos

No response

Platform

  • Dockerized Environment using latest node image and alpine-sqs

Package version

7.0.1

AWS SDK version

3.276

Additional context

No response

@bbc bbc locked and limited conversation to collaborators Feb 24, 2023
@nicholasgriffintn nicholasgriffintn converted this issue into discussion #368 Feb 24, 2023
@nicholasgriffintn nicholasgriffintn added this to the None milestone May 6, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

2 participants