Fresh install of amplify with versions
"aws-amplify": "^2.2.2",
"aws-amplify-react": "^3.1.3",
Auth.signIn succeeds but throws console error
Uncaught (in promise) Error: No credentials, applicationId or region
at AWSPinpointProvider.<anonymous> (AWSPinpointProvider.js:349)
at step (AWSPinpointProvider.js:137)
at Object.next (AWSPinpointProvider.js:67)
at fulfilled (AWSPinpointProvider.js:19)
@WinstonN : Could you provide us with steps to reproduce this? How are you adding auth and analytics?
I'm having a similar problem in a Vue project with the following packages
"@aws-amplify/analytics": "^2.2.4",
"@aws-amplify/auth": "^2.1.5",
@ashika01
Steps to reproduce
// amplify
import AmplifyAuth from '@aws-amplify/auth';
Console error will be produced
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
@WinstonN : could you check if your policy is properly linked to your auth accounts in console? we will work on reproducing this.
I am also facing the same issue. But I am using aws-amplify-react-native
"aws-amplify": "^2.2.5",
"aws-amplify-react-native": "^3.2.2",
@nihp I am also using aws-amplify-react-native and experiencing this issue
@gmfinear what versions are you using?
Could anyone try with the latest versions? and let me know if it still an issue?
"aws-amplify": "3.0.9",
"aws-amplify-react-native": "4.1.0",
@ashika01
"aws-amplify": "^3.0.8",
"aws-amplify-react-native": "^4.0.4",
@gmfinear : Would it possible to share some code? Also, what are using analytics category for?
@ashika01 My code is superrr simple right now... I basically just ran expo init, and then followed instructions from https://aws-amplify.github.io/docs/js/tutorials/building-react-native-apps/ all the way up through Add Auth / User Sign-in.
@gmfinear Let me just reproduce this.
Are you configuring with default configuration in amplify add auth
?
@gmfinear : I just followed the same steps. In my case its just a warning. Nevertheless, it shouldn't be happening. Will do some investigation
@ashika01 it's just a warning for me too, but really annoying :( thank you for investigating!!
@nihp @gmfinear This seems to be a bug in react-native. I have opened up the PR #5629
@WinstonN - we have moved into new UI components. Please open a new issue if you are facing this issue with the new component. Docs - https://docs.amplify.aws/ui/auth/authenticator/q/framework/vue
https://github.com/aws-amplify/amplify-js/issues/3484#issuecomment-625790964 worked for me
Most helpful comment
I am also facing the same issue. But I am using aws-amplify-react-native
"aws-amplify": "^2.2.5",
"aws-amplify-react-native": "^3.2.2",