vscode-pull-request-github: Error signing in to GitHub Enterprise (cloud-hosted)
- Extension version:
- VSCode Version:
1.65.2 - OS:
macOS Monterey 12.3
Steps to Reproduce:
-
Cloned repository from our company github enterprise account (cloud-hosted) and opened in vscode
-
Clicked “Sign in with GitHub Enterprise to use GitHub PullRequests and Issues (1)”

-
Created and authorized PAT (SSO)
-
Pasted PAT into prompt

-
Received error:
Sign in failed: Error: network error
Notes:
Following this wiki entry I tried setting
"github-enterprise.uri": "https://github.com/<organization>",.
Without this setting I receive a different error:
Sign in failed: Error: [UriError]: Scheme is missing: {scheme: "", authority: "", path: "", query: "", fragment: ""}

Do I need to configure something differently when working with a GitHub Enterprise repo but cloud-hosted?
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 4
- Comments: 29 (11 by maintainers)
Commits related to this issue
- Fix the remote for PR queries Part of #3429 — committed to microsoft/vscode-pull-request-github by alexr00 2 years ago
- Fix the remote for PR queries (#4158) Part of #3429 — committed to microsoft/vscode-pull-request-github by alexr00 2 years ago
- Clarify that pull request queries are against the current repos Part of #3429 — committed to microsoft/vscode-pull-request-github by alexr00 2 years ago
- Clarify that pull request queries are against the current repos (#4227) Part of #3429 — committed to microsoft/vscode-pull-request-github by alexr00 2 years ago
- Clarify that pull request queries are against the current repos (#4227) Part of #3429 — committed to eslamashour1/vscode-pull-request-github by alexr00 2 years ago
I have a similar issue but no reference to “network error”. I get this
I have installed the prerelease version (v0.43.2022050511) but still the same result.
+1 Confirming this issue is reproducible.
I’m updating the queries setting to indicate that the queries are run against only your open repos, and I’ve opened this feature request to track allowing queries to do more than that: https://github.com/microsoft/vscode-pull-request-github/issues/4228
I don’t think anyone else in this thread is having GitHub Enterprise auth troubles, so I’m closing it. If this is incorrect please do comment or open a new issue so I can continue to investigate! The GitHub Enterprise auth path is still new and imperfect since Enterprise servers can be configured differently and it’s very difficult for us to know all the cases to test. Having issues from the community is the only way we have to find out about them.
Great! Then the fix for https://github.com/microsoft/vscode-pull-request-github/issues/4056 will fix it for others who unknowingly end up in the same state.
Sorry for taking so long to respond here.
@jordanenglish and @jacob-vincent-gmi thank you for trying again and for all the details. Since you sign in with your personal GitHub username we shouldn’t be taking you through the GitHub Enterprise Authentication path at all. It should still use plain old GitHub Authentication for this. I’m wondering if this is a duplicate of the root cause of https://github.com/microsoft/vscode-pull-request-github/issues/4056, where it’s obviously github.com but the check is missing. Do you have the setting
github-enterprise.uri? That can cause this bug. There is a fix going in this week that will fix it if that’s the case.Hi @alexr00
I am using GitHub Pull Requests and Issues extension
v0.53.2022101809yes:
github.com/<company>My personal GitHub username that has access to the enterprise organization.
I get thrown into a number of prompts and just keep going in a loop.
Here is a log dump of my GitHub Enterprise Authentication from these attempts:
+1 I confirm having the same issue with both VS Code and VS code Insider and also in both the Pre-Release and Release versions of GitHub PR extension.