Skip to content
Source
Sign inSign up
pingdotgg/t3code

[Bug]: GitHub Enterprise host behind a proxy: git and gh reach it, T3 Code says "Could not reach GitHub" #48251

Openrtio(GitHub profile, opens in a new tab) opened this issue 0 comments

Before submitting

  • I searched existing issues and did not find a duplicate.
  • I included enough detail to reproduce or investigate the problem.

Area

apps/server

Steps to reproduce

  1. Use a GitHub Enterprise Server host that is only reachable through a proxy. Corporate setups commonly route HTTPS for the host through a local SOCKS5 proxy, e.g. socks5h://localhost:8080.
  2. Make git and gh reach it the usual way: git config --global http.https://github.example.com.proxy socks5h://localhost:8080, and HTTPS_PROXY=socks5://localhost:8080 gh auth login --hostname github.example.com.
  3. Open a project whose remote is on github.example.com in T3 Code and look at the branch's PR status or the Pull Requests list.

Expected behavior

T3 Code reaches the host the same way git does, and loads its PRs, checks, and issues.

Actual behavior

Every PR lookup fails, and the server log repeats this:

WARN PR lookup failed.
  operation: lookupStatusPr
  errorTag: SourceControlProviderError
  provider: github
  providerOperation: listChangeRequests
  errorDetail: Could not reach GitHub at github.example.com.

T3 Code recognizes the host as GitHub and gets a credential for it. But GitHubRest.send dials the host directly and fails with GitHubApiRequestError: Could not reach GitHub at github.example.com. Over the same network, git fetch and gh api both work through the proxy.

Impact

Major degradation or frequent failure

Version or commit

0.1.14-nightly.20261203.5651

Environment

macOS. GitHub Enterprise Server behind a SOCKS5 proxy. github.com is signed in alongside it and works.

Logs or stack traces

See above. The trace shows GitHubPullRequestApi.getViewerLogin → GitHubRest.send failing with GitHubApiRequestError: Could not reach GitHub at <host>.

Workaround

None per host. NODE_USE_ENV_PROXY + HTTPS_PROXY (see #21922 / #35370) would send all of T3 Code's traffic through the proxy, and Node's env proxy doesn't support SOCKS5.

GitHubHttpClient already follows gh's http_unix_socket. Following git's per-URL http.<url>.proxy for the API origin would fix this without affecting other hosts. undici ships ProxyAgent and Socks5ProxyAgent for this.

  1. tanstack-source added labelsbug

Sign in to join this conversation.