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

Amplify Admin UI show credential error #311

Open
4 tasks done
Joshua-Zhang-S opened this issue Aug 20, 2021 · 14 comments
Open
4 tasks done

Amplify Admin UI show credential error #311

Joshua-Zhang-S opened this issue Aug 20, 2021 · 14 comments
Labels
bug An issue which has been identified as a bug login issues when logging into studio studio-ui An issue that needs to be tracked by Studio Console team

Comments

@Joshua-Zhang-S
Copy link

Before opening, please confirm:

App Id

d3ja25qdvvobwd

Region

us-west-2

Amplify Console feature

Environment variables

Describe the bug

Tried to open admin ui console from cli/link from amplify console, the error showed: An error occurred while fetching the app backend: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1

Expected behavior

Show admin ui

Reproduction steps

Either from amplify console or click on link in the amplify console

Build Settings

No response

Additional information

No response

@Joshua-Zhang-S
Copy link
Author

Tried many options. Finally it showed me login page so I can use the invited user to get in.

@aws-amplify aws-amplify deleted a comment from github-actions bot Aug 31, 2021
@siegerts
Copy link
Contributor

Hi 👋, thanks for raising. I'm going to transfer to the Admin UI repo to get some more eyes on it.

@siegerts siegerts transferred this issue from aws-amplify/amplify-hosting Aug 31, 2021
@siegerts siegerts added the transferred An issue was transferred from another Amplify Repository label Aug 31, 2021
@yppartyk
Copy link

yppartyk commented Dec 3, 2021

Thank you for reaching out. We are looking at this issue now.

@yppartyk yppartyk self-assigned this Dec 3, 2021
@AechDub AechDub closed this as completed Dec 3, 2021
@indiejoseph
Copy link

Why closed? any solution now?

@indiejoseph
Copy link

Fixed this issue by disable and re-enable Amplify studio

@clintfoster
Copy link

clintfoster commented Mar 16, 2022

I just ran into the same issue. I enabled Amplify Studio for the first time and invited one of my email addresses, granting "Full access".

I received the invitation email, clicked the link and was prompted for email, temporary password and new password. Then it showed an initial screen. I selected the option to manage models (I forget the exact name). Then a blank screen loaded with the following message:

An error occurred while fetching the app backend: Missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1

In case it matters, my web browser is Chrome 99.0.4844.51 and I'm on MacOS 12.2.1.

@swaminator
Copy link
Contributor

@clintfoster are you using Studio with an existing app or a new one?

@yppartyk
Copy link

@clintfoster what is your app ID and region?

@swaminator swaminator reopened this Mar 16, 2022
@clintfoster
Copy link

clintfoster commented Mar 17, 2022

@swaminator It's an existing app that I re-created from scratch recently (via the CLI) while working around another issue. I can create it again in Amplify Studio if it will provide a benefit like avoiding legacy baggage brought over from the CLI (if any). However, my schemas are in separate files, and I don't think AS supports that yet, per my comment in #317 about Setup -> Data not showing my schemas.

@yppartyk The appId is d1o4lgqajf4ob6 in us-west-2.

@johnpc
Copy link

johnpc commented Jul 5, 2022

I've also confirmed a workaround - you can go to you Amplify console, visit the "App Settings: Amplify Studio settings" page, and disable and re-enable the "Enable Amplify Studio" toggle.

See related: #580

@johnpc johnpc closed this as completed Jul 5, 2022
@johnpc
Copy link

johnpc commented Jul 7, 2022

Actually taking another look over this ticket, there may be something different might be going on here. Is this consistently reproducible for you @clintfoster? I haven't been able to reproduce it without manually mucking with my Cognito resources.

@johnpc johnpc reopened this Jul 7, 2022
@clintfoster
Copy link

clintfoster commented Jul 7, 2022

@johnpc I haven't tried Amplify Studio in quite some time. We use the CLI, except for managing connected branches, which we've been doing via the standard Amplify Admin console (since it seems to be the only way to share one backend between multiple frontends since you can't run amplify add hosting as you would with a single BE & FE in one project).

I tried Amplify Studio again just now as a test: From the standard Amplify console there is a "Launch Studio" button that I clicked (which is the scenario in the original reporter's description). It correctly launched Amplify Studio with an account icon in the upper right indicating I was signed in as an admin. As I recall, the account is actually client token-based (using Cognito under the covers) unlike the other consoles that use IAM credentials. Anyway, it apparently worked for the client account I set up some time ago. I did not get a blank screen and I did not have to explicitly login again.

I did not try to repro the scenario that I reported as a comment in this issue, which was during initial client signup when I clicked the email link and entered my temporary & new passwords, at which time I got a blank screen.

I have a recollection that sometimes the CLI will launch Amplify Studio (or some other browser app) for commands that I must not use very often. I think I may have seen the blank screen problem in that scenario too (possibly cleared by refreshing). I guess it is doing some kind of dance to pass a client token to the CLI.

@CoderUni
Copy link

CoderUni commented Oct 4, 2022

@johnpc The workaround of disabling and re-enabling amplify studio doesn't seem to work anymore. I tried it multiple times and even tried creating a new amplify project. One of my project's region is ap-southeast-1 and the appId is d1ns89ylf85fwv. Not sure what's wrong but thank you for your help :)

@ykethan ykethan added bug An issue which has been identified as a bug login issues when logging into studio labels Nov 28, 2022
@ykethan ykethan added studio-backend An issue that needs to be tracked by Studio Backend team and removed transferred An issue was transferred from another Amplify Repository labels Jan 19, 2023
@murali-j-99 murali-j-99 added studio-ui An issue that needs to be tracked by Studio Console team and removed studio-backend An issue that needs to be tracked by Studio Backend team labels Jul 7, 2023
@louielyl
Copy link

Fixed this issue by disable and re-enable Amplify studio

I came to this post because I cleaned up my Cognito's Identity Pools and User Pools, by re-enabling Amplify Studio it is restored, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue which has been identified as a bug login issues when logging into studio studio-ui An issue that needs to be tracked by Studio Console team
Projects
None yet
Development

No branches or pull requests