-
Notifications
You must be signed in to change notification settings - Fork 26
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
KeyError: 'refreshToken' after updating to 1.2.0 #97
Comments
Hey, could you also check that From this sso cache JSON file
... whether you find Expecting it should have format like this:
|
This debug log message tells me that it is a recent AWS CLI v2 version. So, I am a bit puzzle. It should have used the botocore for the session, if I understood correctly...
Let me try in my local with this version; which is the best I can do to reproduce locally... |
Interesting, the
Even with a refreshed But since it works with version |
Just to eliminate more variables, |
Hmm, strange. I wonder the region matter here. And/or AWS IAM Identity Center API backend version avail in there... Mine (in ap-southeast-2) cache file has the newer
I have added support for this newer sso session cache format with Could check to see the linked discussion aws/aws-cli#8305 whether if applicable any. Or, if you are admin (or point it to your admin) of your AWS Organisation (AWS SSO/IAM Identity Center) setup, perhaps you might need to configure the access portal to work.. https://docs.aws.amazon.com/singlesignon/latest/userguide/configure-user-session.html |
Perhaps, I can offer backward compatibility on parsing this |
I'm not exactly sure what happened, but I upgraded to I no longer see this line in the trace output:
So I assume the Not sure what to make of this though, since I still don't have any |
I downgraded to 1.1.0 and then upgraded again to 1.2.0 and it gave the error again. |
Is that the same key error that you observed?
|
yes, sorry for not being more specific. |
The fact that I couldn't reproduce my end, frustrated me a bit. I'll try my best to investigate; to see whether I can jump onto some EU regions... Meanwhile, I can advice that it is perfectly ok to stick with What comes with |
Just wanted to say I saw this as well when I upgraded dependencies. Pinning the version to 1.1.0 got me back up and running. |
Getting the same error on yawsso 1.2.0. No errors with 1.1.0 |
ran into this as well after it was reported to my team by a developer. I upgraded to 1.2.0 and did not encounter the issue until about a week later. I removed the files in |
Confirming I had the same issue described with @rsi-mrobinson above with |
I have no idea if this is the exact issue described here (although I encountered the same error as above), but when I run it with the -p flag (profiles) issue isn't reproducing for me.
Hope this helps. |
Hi folks, @jimwbaldwin contributed the fix which now handle gracefully in absent of Patch release v1.2.1 is ready as follows. https://github.com/victorskl/yawsso/releases/tag/1.2.1
or
Thanks for all the feedback. I will close this for now. Feel free to reopen, if any still stand. |
After upgrading to yawsso
1.2.0
I'm getting the following:Nothing changed in my environment and downgrading to
1.1.0
fixes it.Let me know if you need any more information.
redacted trace output
The text was updated successfully, but these errors were encountered: