ResourceNotFoundException #14117
Labels
Angular
Related to Angular 2+
Auth
Related to Auth components/category
pending-community-response
Issue is pending a response from the author or community.
question
General question
Before opening, please confirm:
JavaScript Framework
Angular
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
None
Environment information
Describe the bug
I am encountering a ResourceNotFoundException with the message:
IdentityPool 'ap-southeast-1:xxxxxxxxxxxxxxxxxxxx' not found.
Expected behavior
We can get the new tokens
Reproduction steps
am encountering a ResourceNotFoundException with the message:
IdentityPool 'ap-southeast-1:xxxxxxxxxxxxxxxxxxxx' not found.
After the user signed in and tried to get the user session using AWS Cognito with the Amplify configuration provided below.
Amplify.configure({
Auth: {
Cognito: {
userPoolEndpoint: environment.endpoint,
userPoolId: environment.userPoolId,
userPoolClientId: environment.userPoolWebClientId,
identityPoolId: environment.identityPoolId,
loginWith: {
oauth: {
domain: environment.endpoint,
scopes: ['phone', 'email', 'profile', 'openid', 'aws.cognito.signin.user.admin'],
redirectSignIn: ['http://localhost:3000/'],
redirectSignOut: ['http://localhost:3000/'],
responseType: 'token'
}
}
}
}
});
2.) Amplify sign-in
3.) Call the fetchAuthSession function:
const { tokens: session } = await fetchAuthSession();
Observe the error.
ResourceNotFoundException: IdentityPool 'ap-southeast-1:xxxxxxxxxxxxxxxxxxxxxx' not found.
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: