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

ResourceNotFoundException #14117

Open
3 tasks done
sandy1198 opened this issue Jan 7, 2025 · 2 comments
Open
3 tasks done

ResourceNotFoundException #14117

sandy1198 opened this issue Jan 7, 2025 · 2 comments
Assignees
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

Comments

@sandy1198
Copy link

sandy1198 commented Jan 7, 2025

Before opening, please confirm:

JavaScript Framework

Angular

Amplify APIs

Authentication

Amplify Version

v6

Amplify Categories

auth

Backend

None

Environment information

# Put output below this line
 ResourceNotFoundException with the message:
IdentityPool 'ap-southeast-1:xxxxxxxxxxxxxxxxxxxx' not found.

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.

  1. Configure Amplify with the following settings:

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

// Put your code below this line.
const { tokens: session } = await fetchAuthSession();

ResourceNotFoundException: IdentityPool 'ap-southeast-1:xxxxxxxxxxxxxxxxxxxxxx' not found.

Log output

// Put your logs below this line


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

@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending a response from the Amplify team. labels Jan 7, 2025
@cwomack cwomack self-assigned this Jan 7, 2025
@cwomack cwomack added Auth Related to Auth components/category Angular Related to Angular 2+ labels Jan 7, 2025
@AllanZhengYP
Copy link
Member

Hi @sandy1198

Is the user pool and identity pool configured with Amplify? Can you confirm the identity pool resource is associated to the user pool?

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending a response from the Amplify team. label Jan 7, 2025
@cwomack cwomack added question General question pending-community-response Issue is pending a response from the author or community. and removed pending-triage Issue is pending triage labels Jan 7, 2025
@cwomack
Copy link
Member

cwomack commented Jan 7, 2025

@sandy1198, can you also clarify if these were existing Cognito Auth resources or if you were creating new ones via the documentation?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

3 participants