Skip to content
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

Cannot sign in while using proxy #846

Open
kl5429 opened this issue Aug 15, 2023 · 2 comments
Open

Cannot sign in while using proxy #846

kl5429 opened this issue Aug 15, 2023 · 2 comments

Comments

@kl5429
Copy link

kl5429 commented Aug 15, 2023

  • VS Code Version: 1.80.0
  • Azure Account Extension Version: v 0.11.1
  • OS Version: Windows 11 (10,0,22000 Build 22000)

Are you connected to a proxy server? Yes/No
yes

Steps to Reproduce:

  1. Azure sign in
    2.You appera to be offline. Please check your connection error. Only happens in office
@alexweininger
Copy link
Member

See the Enable and View Logs section of the wiki for how to capture and share Azure Account extension logs.

Please collect logs in DEBUG or TRACE mode and remove any personal information before sharing.

@agi1clj
Copy link

agi1clj commented Aug 24, 2023

Hi @alexweininger

Same issue here.

2023-08-24 09:47:49.850 [info] MSAL: [Thu, 24 Aug 2023 06:47:49 GMT] : @azure/[email protected] : Info - getTokenCache called
2023-08-24 09:47:49.850 [trace] MSAL: [Thu, 24 Aug 2023 06:47:49 GMT] : @azure/[email protected] : Trace - getAllAccounts called
2023-08-24 09:47:49.854 [trace] MSAL: [Thu, 24 Aug 2023 06:47:49 GMT] : @azure/[email protected] : Trace - Retrieving all cache keys
2023-08-24 09:47:49.854 [trace] MSAL: [Thu, 24 Aug 2023 06:47:49 GMT] : @azure/[email protected] : Trace - Getting cache key-value store
2023-08-24 09:47:49.857 [info] Attempting to reach URL "https://login.microsoftonline.com/"...
2023-08-24 09:47:51.249 [info] Attempting to reach URL "https://vscode.dev/redirect"...
2023-08-24 09:47:51.249 [info] Attempting to reach URL "https://login.microsoftonline.com/common/oauth2/authorize?response_type=code&client_id=xxx&redirect_uri=https%3A%2F%2Fvscode.dev%2Fredirect&state=http%3A%2F%2F127.0.0.1%3A49174%2Fcallback?nonce=5Dpgo3cQaSYJVGd9R3n%2F2Q%3D%3D&prompt=select_account"...
2023-08-24 09:47:54.136 [trace] ADAL: Authority: VERBOSE: Performing instance discovery
2023-08-24 09:47:54.136 [trace] ADAL: Authority: VERBOSE: Performing static instance discovery
2023-08-24 09:47:54.136 [trace] ADAL: Authority: VERBOSE: Authority validated via static instance discovery.
2023-08-24 09:47:54.136 [debug] ADAL: TokenRequest: INFO: Getting token with auth code.
2023-08-24 09:47:54.136 [info] 
┌────── Axios Request POST https://login.microsoftonline.com/common/oauth2/token?api-version=1.0
	Headers (8):
	└ Accept-Charset: "utf-8"
	└ Content-Type: "application/x-www-form-urlencoded"
	└ client-request-id: "hidden"
	└ return-client-request-id: "true"
	└ x-client-CPU: "x64"
	└ x-client-OS: "win32"
	└ x-client-SKU: "Node"
	└ x-client-Ver: "0.2.3"
	Query parameters (6):
	└ client_id: "hidden"
	└ client_secret: ""
	└ code: "0....."
	└ grant_type: "authorization_code"
	└ redirect_uri: "https://vscode.dev/redirect"
	└ resource: "https://management.core.windows.net/"
	Proxy configuration: None
└───────────────────────────────────────────────────
2023-08-24 09:47:59.240 [error] \n
Error response
\n

Error code: 503

\n

Message: 28; .

\n

Error code explanation: 503 - The server cannot process the request due to a high load.

\n

In settings, I have set the proxy:

"http.proxy": "http://localhost:3128",
    "http.proxySupport": "override",
    "http.proxyStrictSSL": false,

However, I managed to login with the extension v.0.9.9
As I can see, it's not setting the proxy agent for Axios http request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants