GoogleCloudPlatform / cloud-code-vscode

Cloud Code for Visual Studio Code: Issues, Documentation and more
Other
415 stars 111 forks source link

Cannot login to Duet AI from vscode in WSL #875

Closed avila-m-6 closed 8 months ago

avila-m-6 commented 8 months ago

Environment:

Version information

Cloud Code Extension version: v2.2.2

VSCode version: 1.82.2 (user)

OS: Windows - WSL Ubuntu 22.04

Cloud SDK:

[1/18/2024, 11:21:45 AM] Cloud Code version 2.2.1 [1/18/2024, 11:21:45 AM] Version detail: 591077733 built on 2023-12-15T00:31:31.883Z

Skaffold: -

Kubectl: -

Description: Cannot login to Duet AI with VS Code Remote WSL connection. I do have access because it works on windows vs code.

image

Repro step:

  1. Open Remote VS Code
  2. Sign in to Duet AI
  3. Get error screen
sripasg commented 8 months ago

That is unexpected. We should investigte. Can you please send logs from the "Cloud Code" output channel to help us debug?

avila-m-6 commented 8 months ago

Sorry I'm not familiar with the process. Where can I get those?

sripasg commented 8 months ago

Sure, no worries.

Can you please repro this on your end and then file a bug with the following flow: image

This will enable us to get a bit more diagnostic info around what's happening here. Please ensure the following settings are checked prior to submission:

image

Thank you.

avila-m-6 commented 8 months ago

I'm getting this error:

image

I do use a proxy sometimes, but it's not that host nor port. I also enable/disable it when required, so no default proxy is setup in any shell. That looks like some default config from vscode?

avila-m-6 commented 8 months ago

Also I just sent the bug report using the feedback feature:

image

maxrandolph commented 8 months ago

Hi @avila-m-6, can you try with the VS Code setting "Proxy Support" both on/off and see if there is any change? It may also be overridden in your remote/WSL settings:

image

avila-m-6 commented 8 months ago

It worked. Previous value was on override by default

image

Thank you!