vscode-azure-account icon indicating copy to clipboard operation
vscode-azure-account copied to clipboard

"No response from the server" logging in to Azure with v 0.10.0

Open anthonywhite opened this issue 2 years ago • 9 comments

  • VS Code Version: 1.64.2
  • Azure Account Extension Version: 0.10.0
  • OS Version: Windows 10 Enterprise 19042.1526

Steps to Reproduce:

  1. VS Code with 0.9.11 extension
  2. Sign out of Azure Account
  3. Upgrade extension to 0.10.0
  4. Sign in to Azure command
  5. Authenticate in browser
  6. Get this alert in VS Code "no response from the server"
  7. In VS Code Output window for Azure Account extension:
OAuth2Client: ERROR: No response from the server
Stack:
Error: No response from the server
	at Logger.createError (c:\Users\******\.vscode\extensions\ms-vscode.azure-account-0.10.0\dist\extension.bundle.js:2:788524)
	at c:\Users\******\.vscode\extensions\ms-vscode.azure-account-0.10.0\dist\extension.bundle.js:2:801557
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
Error: No response from the server
Error: No response from the server

anthonywhite avatar Feb 16 '22 14:02 anthonywhite

Thanks for filing, @anthonywhite. Does this issue persist when you revert to version 0.9.11 using the method demonstrated here? And does this problem repeatably happen on version 0.10.0?

Please also try signing in with the Azure: Sign In with Device Code command and let us know if you run into the same issue.

wwlorey avatar Feb 16 '22 20:02 wwlorey

I have a similar issue with version 0.10.0, but the error I get is:

Error: Could Not Connect Description: Could not connect to the server "login.microsoftonline.com".

Reverting to 0.9.11 works. Going back to 0.10.0 and attempting Azure: Sign In with Device Code returns:

**Error: Could Not Connect Description: Could not connect to the server "login.microsoftonline.com".

Error: Get Device Code request returned http error: 502 and server response: "<HTML>\n<HEAD>\n<TITLE>Could Not Connect</TITLE>\n</HEAD>\n\n<BODY BGCOLOR="white" FGCOLOR="black">\n<H1>Could Not Connect</H1>\n<HR>\n\n<FONT FACE="Helvetica,Arial"><B>\nDescription: Could not connect to the server "<EM>login.microsoftonline.com</EM>".\n</B></FONT>\n<HR>\n</BODY>\n" Error: Acquiring user code failed**

mwilsonray avatar Feb 16 '22 20:02 mwilsonray

@mwilsonray the issue you mentioned is similar but I'm not convinced it's the same issue that @anthonywhite ran into. I filed a new issue to track it: https://github.com/microsoft/vscode-azure-account/issues/450

wwlorey avatar Feb 16 '22 21:02 wwlorey

Thanks for filing, @anthonywhite. Does this issue persist when you revert to version 0.9.11 using the method demonstrated here? And does this problem repeatably happen on version 0.10.0?

Please also try signing in with the Azure: Sign In with Device Code command and let us know if you run into the same issue.

@wwlorey Reverting to 0.9.11 all problems disappear. On 0.10.0:

  1. Sign In behaviour I described above
  2. Sign In with Device Code does not even open a browser window and gives this error output:
OAuth2Client: ERROR: No response from the server
Stack:
Error: No response from the server
	at Logger.createError (c:\Users\*****\.vscode\extensions\ms-vscode.azure-account-0.10.0\dist\extension.bundle.js:2:788524)
	at c:\Users\*****\.vscode\extensions\ms-vscode.azure-account-0.10.0\dist\extension.bundle.js:2:803059
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
Error: No response from the server
Error: No response from the server
Error: Acquiring user code failed
  1. All 0.10.0 errors reliably repeatable

anthonywhite avatar Feb 17 '22 09:02 anthonywhite

@anthonywhite please upgrade to version 0.10.1 and let us know if you're still running into this problem.

Screen Shot 2022-03-23 at 10 08 54 AM

wwlorey avatar Mar 23 '22 17:03 wwlorey

@anthonywhite please upgrade to version 0.10.1 and let us know if you're still running into this problem.

Hi @wwlorey still getting same errors...🙁

anthonywhite avatar Mar 24 '22 12:03 anthonywhite

just an update to confirm latest version 0.11.0 makes no difference...sigh

  • VS Code Version: 1.69.0
  • Azure Account Extension Version: 0.11.0
  • OS Version: Windows 10 Enterprise 19042.1766

Steps to Reproduce:

  1. VS Code with 0.9.11 extension
  2. Sign out of Azure Account
  3. Upgrade extension to 0.11.0
  4. Sign in to Azure with Device Code VS Code command

In VS Code Output window for Azure Account extension: Attempting to reach URL "https://login.microsoftonline.com/"... Attempting to reach URL "https://login.microsoftonline.com/"... Fri, 08 Jul 2022 09:16:53 GMT:883d31f8-d142-418a-9af9-30d869c28638 - OAuth2Client: ERROR: No response from the server Stack: Error: No response from the server at Logger.createError (c:\Users\******\.vscode\extensions\ms-vscode.azure-account-0.11.0\dist\extension.bundle.js:2:820398) at c:\Users\*******\.vscode\extensions\ms-vscode.azure-account-0.11.0\dist\extension.bundle.js:2:834933 at processTicksAndRejections (node:internal/process/task_queues:96:5) Error: No response from the server Error: No response from the server Acquiring user code failed

Revert to trusty 0.9.11 version, Reload window and all is good again...

====================================================================

For a while now even downgrading to 0.9.11 does not work. "token is invalid"

anthonywhite avatar Jul 08 '22 09:07 anthonywhite

I am also receiving this error. We do have a proxy, but I've bypassed the proxy and the behavior was the same. I tried installing v0.9.11, but that didn't solve it for me. If I click the https://login.microsoftonline.com/ link and open it in a browser, I authenticate successfully with SSO.

Not sure if this could be the problem, but my Azure account is part of an organizational tenant and I have no current subscriptions or payment methods on file.

OS version: Windows 10 Enterprise 21H2 (OS Build 19044.1889) Azure Account extension version: v0.11.1 VS Code version: 1.70.2

Steps to reproduce: Using versions listed above, run any of Azure: Sign In, Sign In with Device Code, Sign In to Azure Cloud (specifying our tenant id)

Output from the Azure Account extension:

Attempting to reach URL "https://login.microsoftonline.com/"...
Fri, 26 Aug 2022 16:53:19 GMT:461b0d36-d67d-405e-86e9-b6e8a5b00313 - OAuth2Client: ERROR: No response from the server
Stack:
Error: No response from the server
	at Logger.createError (c:\Users\*****\.vscode\extensions\ms-vscode.azure-account-0.11.1\dist\extension.bundle.js:2:820371)
	at c:\Users\*****\.vscode\extensions\ms-vscode.azure-account-0.11.1\dist\extension.bundle.js:2:834906
	at processTicksAndRejections (node:internal/process/task_queues:96:5)
Error: No response from the server
Error: No response from the server
Acquiring user code failed

seanstedor avatar Aug 26 '22 17:08 seanstedor

I'm facing the same issue (also the some outputs in log) - windows + corporate proxy + the same configuration as @seanstedor. Downgrading the azure extensions to versions before from January-March allowed me to bypass the problem. Microsoft Azure Storage Explorer - connects to Azure account without problems (the same windows machine + corporate proxy). Under linux (the same config but no proxy) - no problems.

jarach avatar Aug 31 '22 11:08 jarach

I'm facing same error, install 0.9.11 problem solved.

touchmii avatar Nov 10 '22 02:11 touchmii

Yep - Same issue here. Since 0.9.11 I can't login. Any news?

scottygarskipton avatar Dec 07 '22 13:12 scottygarskipton

@jarach, @touchmii, @scottygarskipton

Any chance you know what software your proxy server is running? (Forcepoint, Squid, etc.)

alexweininger avatar Dec 07 '22 23:12 alexweininger

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!

AzCode-Bot avatar Feb 11 '23 05:02 AzCode-Bot

I'm facing same error and behind corporate proxy, reverting to 0.9.11 solved problem.

lexusean avatar Jun 23 '23 11:06 lexusean