-
Notifications
You must be signed in to change notification settings - Fork 825
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
upgrade to 10.8.1 returning failed to get profile credentials #12174
Comments
Seems to be an issue with pushing. I was able to pull, but it still kicked me to authorization 3 times |
Hey @adcanis 👋 thanks for raising this! Can you confirm your Amplify CLI version? The issue description mentions 10.8.2 though the |
sorry yes your right. 10.8.1 and was working on 10.8.0 |
Ah no worries just wanted to clarify 🙂 do you only experience this issue in this one project or are you able to execute commands outside the project? |
This is the only project using SSO credentials. Config
Credentials
|
Thanks for clarifying @adcanis , I'm going to take a further look at this one 🙂 |
Hey @adcanis while we investigate this further can you run the same command with |
|
@josefaidt when I run
|
Hey @adcanis can you paste the output of |
|
@josefaidt if it helps. The issue seems to be related to my API. I've re-pulled the backend, making a small change to my Lambda and
|
Hey @adcanis thanks for posting that! Can you try running the command with the
|
@josefaidt same thing |
Captured stack trace output for debugging
|
@josefaidt any luck on this? |
Hey @adcanis the team is actively investigating this issue for a fix |
@josefaidt if it helps any, the issue only happens when the account exceeds the 8hr expiration. running |
|
I'm still seeing error "the provided token has expired"
|
Hey @adcanis this was closed from automation but has not quite been released. I've added |
@josefaidt thanks, I've added a new issue if you'd like to remove it #7789 it may outline the issue a little better |
Just a follow up. The issue seems to be with aws sso. When What i've been doing now is logging in, then pasting the new credentials found in |
I've tried to use amplify first time and immediately ended up on this issue. Dear maintainers, this is the first thing customer sees when interacting with the library. I'm sorry to say this, but it's pretty terrible experience. Every other web library I've used had flawless initial auth flow (usually oauth2 with GitHub). |
Hi @OperationalFallacy, sorry for late response. I am not able to reproduce the issue using latest Amplify CLI, can you provide more details about the issue you're having?
Thank you |
Closing, as we cannot reproduce any longer using latest CLI, if you're still experiencing the issue please create a new issue. |
|
Here's a full output on a freshly installed amplify package, new project.
There is nothing special about profile, standard SSO
and its logged in and working properly, I've tried some simple operations like aws s3 ls |
Same issue as @OperationalFallacy. SSO profile is working for the SDK and CDK.
|
Amplify team, can you at least fix this error message? Explain users what config it is, what credentials, and how to fix it. It's even more annoying to see this "helpful" message then the broken auth itself. The auth workflow for local development remains an absolutely terrible experience on the platform. |
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
19.6.0
Amplify CLI Version
10.8.2
What operating system are you using?
mac
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
Describe the bug
upgrade to 10.8.2 fails to get profile credentials when performing amplify task. Sends Authorization request multiple times despite currently being logged in before failing with error:
"Failed to get profile credentials. Unexpected token A in JSON at position 0"
Expected behavior
should allow amplify commands the same as v10.8.0
Reproduction steps
Project Identifier
9004eca0-6404-4a91-9fae-e5a8474cb213
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: