Skip to content
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]: SQS receive message failed: Could not load credentials from any providers #428

Closed
KozielGPC opened this issue Oct 13, 2023 · 2 comments

Comments

@KozielGPC
Copy link

KozielGPC commented Oct 13, 2023

Describe the bug

I'm trying to setup a sqs consumer in nestjs using the package @ssut/nestjs-sqs but I'm having some troubles. When I start my application I get the error below:

image

My setup:

"dependencies": {
    "@apollo/server": "^4.9.3",
    "@graphql-tools/utils": "^10.0.6",
    "@nestjs/apollo": "^12.0.9",
    "@nestjs/common": "^10.2.6",
    "@nestjs/config": "^3.1.1",
    "@nestjs/core": "^10.2.6",
    "@nestjs/graphql": "^12.0.9",
    "@nestjs/platform-express": "^8.0.0",
    "@prisma/client": "^5.3.1",
    "@ssut/nestjs-sqs": "^2.2.0",
    "aws-sdk": "^2.1473.0",
    "class-transformer": "^0.5.1",
    "class-validator": "^0.14.0",
    "graphql": "^16.8.1",
    "graphql-tools": "^9.0.0",
    "prisma": "^5.3.1",
    "reflect-metadata": "^0.1.13",
    "rimraf": "^3.0.2",
    "rxjs": "^7.2.0"
  },

Your minimal, reproducible example

https://github.com/KozielGPC/rls-prisma-postgres-example/tree/add-aws-sqs

Steps to reproduce

  1. Set your .env file following the .env.example
  2. Install dependencies
  3. Run the application

Expected behavior

It is expected to connect to the SQS queue and receive messages without any problems

How often does this bug happen?

Every time

Screenshots or Videos

No response

Platform

  • OS: Linux
  • Node version: 18.0.0

Package version

^2.2.0

AWS SDK version

^2.1473.0

Additional context

No response

@nicholasgriffintn
Copy link
Member

nicholasgriffintn commented Oct 13, 2023

Hey, sorry, these type of errors are hard to identify, but generally, they are either issues with configuration or the credentials provided.

This error is also coming from the AWS SDK directly and just forwarded on by SQS Consumer, it isn't actually an error from this library. We'd need more details on it and where the issue is with this library to be able to support with an issue, otherwise, this is probably better placed as a discussion.

We can't support issues with the AWS services.

Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants