Closed anyfactor closed 1 year ago
Try clicking on the "AWS" icon in the vscode sidebar. If there is still an issue, try Sign Out
in the context menu and then login again.
Duplicate: https://github.com/aws/aws-toolkit-vscode/issues/3403
I have VS Code installed on a Mac, but my code and therefore the extension is running in a Linux Docker container. I have a Builder ID, but I get this error message:
2023-05-01 10:53:07 [ERROR]: log level: info
2023-05-01 10:53:07 [INFO]: endpoints: retrieving AWS endpoints data
2023-05-01 10:53:07 [INFO]: OS: Linux x64 5.15.49-linuxkit
2023-05-01 10:53:07 [INFO]: Visual Studio Code extension host: 1.77.3
2023-05-01 10:53:07 [INFO]: AWS Toolkit: 1.71.0
2023-05-01 10:53:07 [INFO]: node: 16.14.2
2023-05-01 10:53:07 [WARN]: AwsContext: no default region in credentials profile, falling back to us-east-1:
2023-05-01 10:53:26 [ERROR]: aws.codeWhisperer.reconnect: Error: Unable to authenticate connection
-> TypeError: Cannot destructure property 'id' of 'undefined' as it is undefined.
And these are the only files under my ~/.aws/sso/cache
directory. There are no other files under ~/.aws
.
.rw-r--r-- 2.6k chyld 1 May 10:52 1c25b91499ed34507774bd1856f666a5cb2682ec.json
.rw-r--r-- 1.9k chyld 1 May 10:50 aws-toolkit-vscode-client-id-us-east-1-c6cd4d7a1af2d3b1a3ecd56308062b11f46a5be47a1cc51bb1615505222fde13.json
Any ideas on a fix? Is it because I'm using it in a Docker container?
@anyfactor @chyld
See this comment. The status bar item is causing some confusion with getting started.
@JadenSimon Yes, that was it. I was initially clicking on the status bar to login. Once I logged in via the side bar explorer it worked perfectly. Thanks!
Looks like for some reason, the browser authentication isn't being communicated to the extension.
So the issue was that I was not opening the https://device.sso.us-east-1.amazonaws.com/
through VSCode prompt. Rather I was copying the link and opening the site manually separately on the browser. For some reason, the authentication process required VSCode to connect to the site directly through the browser.
Problem
I can not authenticate the connection to AWS' endpoints. Followed the steps described here: https://aws.amazon.com/codewhisperer/resources/#Getting_started/
Steps to reproduce the issue
Error:
Expected behavior
The expected behavior is to have a successful and operational connection to the CodeWhisperer.
System details (run the
AWS: About Toolkit
command)