Issues with Amazon Amplify. Failed to fetch Admin Credentials

1.2k Views Asked by At

Hello StackOverflow family:

I have been beating my head on this error. I am trying to perform an amplify init from terminal and I get this error.

Failed to fetch Amplify Admin Credentials
init failed
Error: TypeError:  Cannot read property 'idToken" of undefined

I have gone in and removed the aws cli and everything associated with it. Reinstalled it from scratch. Put in a new account with access token and secret key and still get the above error. What could I do to bypass this error. Any assistance would be helpful. When I logon to the admin console. My app of course does not show up. Thanks in advance.

2

There are 2 best solutions below

1
On

I found a similar issue with the latest version of amplify cli, switching back to an old version fixed the problem for me:

yarn global add @aws-amplify/[email protected]

0
On

I've come across the same issue on OSX with safari. Using Chrome resolved the issue for me.

When prompted to login to the amplify admin console, simply copy the link into chrome and login with your user credentials. You will have had to create a user in the Admin UI Console beforehand.