DEV Community

Sunandini
Sunandini

Posted on

Inconsistent "ResourceNotFoundException" Error When Updating User Attributes in AWS Cognito

I'm encountering an issue while updating user attributes in AWS Cognito. The problem is specific to the production environment and results in a "ResourceNotFoundException" error. I'm seeking insights from the community to help troubleshoot this inconsistency.

Problem:

When attempting to update user attributes in the production environment, I consistently receive the following error message:

"msg": {
  "message": "User pool us-east-2_******* does not exist.",
  "code": "ResourceNotFoundException",
  "time": "2023-08-09T11:32:50.538Z",
  "statusCode": 400
}
Enter fullscreen mode Exit fullscreen mode

Observations:

  • The code works flawlessly in both development and staging environments without any errors during attribute updates.

  • Surprisingly, I connected my backend to the production database locally and tested the same code, resulting in successful attribute updates.

  • However, using the same API request via Postman or in the production environment still triggers the "ResourceNotFoundException" error.

If you have encountered a similar issue or have insights into possible causes, your input would be greatly appreciated.

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay