Auth SignUp auto send another request and throw Error: No credentials, applicationId or region
See original GitHub issue** Which Category is your question related to? **
Auth
** What AWS Services are you utilizing? **
Cognito
** Provide additional details e.g. code snippets **
I have 2 projects which are using the same code like this:
Auth.signUp({ username, password, attributes }).then(data => console.log(data)).catch(error => console.log(error)).finally(() => console.log('done'));
Just like this: https://aws-amplify.github.io/docs/js/authentication#sign-up
Here is the problem show out:
- In my old project, everything is ok, just 1 request is sign up send to AWS and got some data from it: https://cognito-idp.ap-southeast-2.amazonaws.com/
- In my new project, I have another request go to AWS after the sign up request. There are: https://cognito-idp.ap-southeast-2.amazonaws.com/ And : https://cognito-identity.ap-southeast-2.amazonaws.com/ which is after the first one and its response is :
message: “Unauthenticated access is not supported for this identity pool.” __type: “NotAuthorizedException”
After that, I got the error in console: Error: No credentials, applicationId or region.
Not sure why is the old project is working fine but with this one, this error show up. Is it because the different in amplify ?
Thanks.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:21
- Comments:30 (2 by maintainers)
Top GitHub Comments
Disabling as per the docs fixed this for me.
This is still an issue, disabling the analytics is not the right solution. Are there any status updates on this? Did anyone figure out what’s causing it