microsoft / vscode-azure-account

Common Azure Login extension for VS Code
https://marketplace.visualstudio.com/items?itemName=ms-vscode.azure-account
Other
138 stars 129 forks source link

Cannot Sign in to Azure #740

Open chiyoi opened 1 year ago

chiyoi commented 1 year ago

Does this occur consistently? Always Repro steps:

  1. Run 'Azure: Sign In'
  2. (The default browser Safari opened)
  3. Click on my account logged in
  4. (Web page shows sign in succeed)
  5. Back to vscode, there's no account logged in, with 'output' logs "No response from the server

Action: azure-account.loginToCloud Error type: Error Error Message: No response from the server

Version: 0.11.3 OS: darwin OS Release: 22.2.0 Product: Visual Studio Code Product Version: 1.76.1 Language: en

Call Stack ``` Logger.createError extension.bundle.js:2:865070 extension.bundle.js:2:878103 ```
alexweininger commented 1 year ago

Are you behind a proxy of any kind? Proxies often cause issues with sign-in. See the Unable to Sign In While Using a Proxy section of our wiki for possible fixes.

chiyoi commented 1 year ago

Are you behind a proxy of any kind? Proxies often cause issues with sign-in. See the Unable to Sign In While Using a Proxy section of our wiki for possible fixes.

I've tried all the solutions while searching online, but neither worked. I do using a proxy server, but I've tried to disable it in both system settings and shell rc file (by adding NO_PROXY or simply not to set the HTTP_PROXY... environments)

Finally I make a remote-SSH connection to my server in vscode, installed azure tools and succeeded to sign in. But at local environment it still doesn't work.

Is that a bug of azure toolkits? I've also got similar issue when using Azure Data Studio, but it didn't occurred in Microsoft Azure Storage Explorer.

log output ``` Attempting to reach URL "https://login.microsoftonline.com/"... Attempting to reach URL "https://vscode.dev/redirect"... Attempting to reach URL "https://login.microsoftonline.com/***/oauth2/authorize?response_type=code&client_id=***&redirect_uri=https%3A%2F%2Fvscode.dev%2Fredirect&state=http%3A%2F%2F127.0.0.1%3A59098%2Fcallback?nonce=AOM%2FMUg48taOwb2MCgsepg%3D%3D&prompt=select_account"... Mon, 20 Mar 2023 13:25:12 GMT:fefb61de-e90b-4fa9-9db4-a23ec435ff48 - OAuth2Client: ERROR: No response from the server Stack: Error: No response from the server at Logger.createError (/Users/chiyoi/.vscode/extensions/ms-vscode.azure-account-0.11.3/dist/extension.bundle.js:2:865070) at /Users/chiyoi/.vscode/extensions/ms-vscode.azure-account-0.11.3/dist/extension.bundle.js:2:878103 at process.processTicksAndRejections (node:internal/process/task_queues:96:5) Error: No response from the server No response from the server ```