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

Sunandini @ukiyo

About: I am a curious person who wants to dive deep into the tech world .

Joined:
May 21, 2023

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

Publish Date: Aug 10 '23
0 0

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.

Comments 0 total

    Add comment