microsoft / microsoft/vscode-remote-release

Port Forwarding Fails Due to 'PortsPerTunnel' Limit Despite No Active Forwards

Open
#10,370 18 comments 12 reactions 1 assignee View on GitHub

@connor4312 is already working on this.

Since Oct 8, 2024.

bug tunnels
Dominant language
Dockerfile
Stars
4.2k
Forks
469
Avg merge
1d 1h
Merged PRs (30d)
1

Description

When I try to forward a port, I receive an error stating, "The request was denied because it would exceed the limit for 'PortsPerTunnel' (10)." However, I have not forwarded any ports, as shown in the image below:

image

  • VSCode Version: 1.94.1 (Darwin arm64 24.0.0)

  • Local OS Version: macOS 15.0.1

  • Remote OS Version: Docker 20.10.15 on an Ubuntu 20.04.4 LTS

  • Remote Extension/Connection Type: Tunnel

  • Logs:
    Unable to forward localhost:6006. Could not forward port: Error: WrappedError(WrappedError { message: "error adding port to relay", original: "failed to add port to tunnel: response error: HTTP status 429 Too Many Requests from https://usw2.rel.tunnels.api.visualstudio.com/tunnels/[...]/ports/6006?api-version=2023-09-27-preview (request ID [...]-[...]-[...]-[...]-[...]): {"title":"Resource limit exceeded.","status":429,"detail":"The request was denied because it would exceed the limit for 'PortsPerTunnel' (10).","traceId":"00-[...]-[...]-00"}" })

Steps to Reproduce:

  1. Set up a VSCode tunnel in Docker on a remote server.
  2. Access the tunnel on a local machine and attempt to forward a port.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.