Skip to content

code tunnel meets "invalid port value" when used with proxy #201417

@DerZc

Description

@DerZc

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.84.2 1a5daa3 x64
  • OS Version: ubuntu 22.04

Steps to Reproduce:

I use the vscode tunnel with proxy, but got the error proxy connection failed: invalid port value.
This is the whole log:

code tunnel --verbose
*
* Visual Studio Code Server
*
* By using the software, you agree to
* the Visual Studio Code Server License Terms (https://aka.ms/vscode-server-license) and
* the Microsoft Privacy Statement (https://privacy.microsoft.com/en-US/privacystatement).
*
[2023-12-23 10:00:18] debug Starting tunnel with `code /usr/share/code/bin/code-tunnel tunnel --verbose`
[2023-12-23 10:00:18] debug starting as new singleton
[2023-12-23 10:00:18] debug Using file keychain storage due to: user prefers file storage:
[2023-12-23 10:00:18] trace Found token in keyring
[2023-12-23 10:00:18] debug [reqwest::connect] starting new connection: https://api.github.com/
[2023-12-23 10:00:18] debug [reqwest::connect] proxy(http://127.0.0.1:4411) intercepts 'https://api.github.com/'
[2023-12-23 10:00:20] debug [reqwest::connect] starting new connection: https://asse.rel.tunnels.api.visualstudio.com/
[2023-12-23 10:00:20] debug [reqwest::connect] proxy(http://127.0.0.1:4411) intercepts 'https://asse.rel.tunnels.api.visualstudio.com/'
[2023-12-23 10:00:22] debug Starting tunnel to server...
[2023-12-23 10:00:22] trace Found token in keyring
[2023-12-23 10:00:23] debug [tunnels::connections::relay_tunnel_host] connecting via http_proxy on http://114.212.82.225:4411/
[2023-12-23 10:00:23] warn Error connecting to relay, will retry: error connecting to tunnel: proxy connection failed: invalid port value
[2023-12-23 10:00:23] error Error connecting to tunnel endpoint: error connecting to tunnel: proxy connection failed: invalid port value
[2023-12-23 10:00:23] trace Found token in keyring
[2023-12-23 10:00:28] debug Starting tunnel to server...
[2023-12-23 10:00:28] trace Found token in keyring
[2023-12-23 10:00:30] trace Successfully refreshed access token
[2023-12-23 10:00:30] trace Found token in keyring
[2023-12-23 10:00:30] debug [reqwest::connect] starting new connection: https://api.github.com/
[2023-12-23 10:00:30] debug [reqwest::connect] proxy(http://127.0.0.1:4411) intercepts 'https://api.github.com/'

Could you please help me solve this?

Metadata

Metadata

Assignees

Labels

insiders-releasedPatch has been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions