-
Notifications
You must be signed in to change notification settings - Fork 819
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
fetchUserAttributes() throws an error ResourceNotFoundException: IdentityPool 'us-west-1:xxx-xxx-xxx' not found. #13603
Comments
hello @mark-carlson , can you try upgrading amplify to the latest version and see if you still experience this issue ? Also just in case, you will get an exception if you are passing an invalid |
Hi @israx . I can confirm I am on the latest version of amplify and have no identityPoolId in my config. After updating to v6.0.13, I still have this issue. |
By the way, I would also be happy if |
I'm able to reproduce this issue when I have an invalid identity pool in the config, once I remove it, it works as expected. Can you share your amplify configuration without showing any sensitive information ? Yeah returning standard attributes from |
Thank you, @israx. I can confirm that I did indeed have an identity-pool-id in my config. One of them was in an auto-generated file |
did you try running amplify auth remove ? |
I did not. Was afraid of throwing out the baby with the bathwater. But that would be a valid way to start fresh, I guess. Thank you again for pointing out the cause and solution! |
I have the same problem. I tried removing and recreating the auth, rebuilding the lambda trigger, resetting permissions, and still have the same problem. It seems to get better if I manually delete the aws_cognito_identity_pool_id from my local amplifyconfiguration.json, but how did it get there? This file gets generated from something, doesn't it? |
@jkellyinsf, this problem has happened repeatedly for me since I closed the issue. Everytime it happens, I go through searching for identity pool ids to remove from my configs. |
Hi @mark-carlson due to this consistently happening, I'll re-open this issue and mark it as a bug and discuss it with the team. I will follow up with updates asap. |
Hey @mark-carlson, had a quick question, was the identity pool created by Amplify CLI removed on the AWS Cognito console? we can just create a user pool without an identity pool, by utilizing the following on update/add auth on the following option.
On each push/pull amplify regenerates the |
I ran into this as well and can confirm that removing the |
Closing the issue due to inactivity. Do reach out to us if you are still experiencing this issue |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Before opening, please confirm:
JavaScript Framework
React
Amplify APIs
Authentication, GraphQL API
Amplify Version
v6
Amplify Categories
auth
Backend
Amplify CLI
Environment information
Describe the bug
I've added name as a standard attribute in Cognito sign up user pool and have set read/write permissions properly.
When a user registers, the name value (when selected) appears in the Cognito console.
However, when I call getCurrentUser(), the only properties in the object are userId, username, and signInDetails. signInDetails contains a loginId and an authFlowType.
I would like the front end React app to have access to the standard name attribute. Documentation here seems to indicate that using fetchUserAttributes() will provide this data.
However, I get this error in my console:
I do not use identity pools. I am trying to get a standard attribute from a user pool.
Expected behavior
When calling fetchUserAttributes(), the method should return an object containing any standard or custom attributes in my Cognito user pool.
Reproduction steps
Code Snippet
Log output
aws-exports.js
No response
Manual configuration
No response
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
No response
The text was updated successfully, but these errors were encountered: