vscode-pull-request-github
vscode-pull-request-github copied to clipboard
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?
same problem here!
+1 Confirming this issue is reproducible.
Version: 1.66.1 (system setup)
Commit: 8dfae7a5cd50421d10cd99cb873990460525a898
Date: 2022-04-06T14:50:12.141Z
Electron: 17.2.0
Chromium: 98.0.4758.109
Node.js: 16.13.0
V8: 9.8.177.11-electron.0
OS: Windows_NT x64 10.0.19044
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.
i have the same issue, can anyone solve it..?
Still here in v0.46.0
4-GitHub Enterprise Authentication.log
[Info - 18:05:00.231] Reading sessions from keychain...
[Info - 18:05:01.199] Getting sessions for read:user,repo,user:email,workflow...
[Info - 18:05:01.199] Got 0 sessions for read:user,repo,user:email,workflow...
[Info - 18:05:01.206] Getting sessions for read:user,repo,user:email...
[Info - 18:05:01.206] Got 0 sessions for read:user,repo,user:email...
[Info - 18:05:01.214] Getting sessions for read:user,repo,user:email,workflow...
[Info - 18:05:01.214] Got 0 sessions for read:user,repo,user:email,workflow...
[Info - 18:05:03.639] Logging in for the following scopes: read:user repo user:email workflow
[Info - 18:06:23.410] Getting token scopes...
[Error - 18:06:23.582] Getting scopes failed: Not Found
[Error - 18:06:23.582] Not Found
[Error - 18:06:23.584] Error: network error
+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.
A few questions for folks in this thread:
- Please try out the latest VS Code insiders with the latest pre-release extension. You don't need to use a PAT there. Do you still get the error (or a new error)?
- Is the url of your cloud hosted GitHub Enterprise instance a
github.com
url? - Do you use your
github.com
username to sign in or the account managed by your enterprise organization to sign in?
same here
Folks who see this issue, if you could please answer these questions and share the output of GitHub Pull Request it would help me understand the issue: https://github.com/microsoft/vscode-pull-request-github/issues/3429#issuecomment-1252331078
Hi @alexr00
A few questions for folks in this thread:
- Please try out the latest VS Code insiders with the latest pre-release extension. You don't need to use a PAT there. Do you still get the error (or a new error)?
I am using GitHub Pull Requests and Issues extension v0.53.2022101809
- Is the url of your cloud hosted GitHub Enterprise instance a
github.com
url?
yes: github.com/<company>
- Do you use your
github.com
username to sign in or the account managed by your enterprise organization to sign in?
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:
[2022-10-27 10:52:47.663] [GitHub Enterprise Authentication] [info] Reading sessions from keychain...
[2022-10-27 10:52:48.328] [GitHub Enterprise Authentication] [info] Getting sessions for read:user,repo,user:email,workflow...
[2022-10-27 10:52:48.328] [GitHub Enterprise Authentication] [info] Got 0 sessions for read:user,repo,user:email,workflow...
[2022-10-27 10:52:48.338] [GitHub Enterprise Authentication] [info] Getting sessions for read:user,repo,user:email...
[2022-10-27 10:52:48.338] [GitHub Enterprise Authentication] [info] Got 0 sessions for read:user,repo,user:email...
[2022-10-27 10:52:49.084] [GitHub Enterprise Authentication] [info] Getting sessions for read:user,repo,user:email,workflow...
[2022-10-27 10:52:49.084] [GitHub Enterprise Authentication] [info] Got 0 sessions for read:user,repo,user:email,workflow...
[2022-10-27 10:52:49.092] [GitHub Enterprise Authentication] [info] Getting sessions for read:user,repo,user:email...
[2022-10-27 10:52:49.092] [GitHub Enterprise Authentication] [info] Got 0 sessions for read:user,repo,user:email...
[2022-10-27 10:52:58.288] [GitHub Enterprise Authentication] [info] Getting sessions for read:user,repo,user:email,workflow...
[2022-10-27 10:52:58.289] [GitHub Enterprise Authentication] [info] Got 0 sessions for read:user,repo,user:email,workflow...
[2022-10-27 10:52:58.297] [GitHub Enterprise Authentication] [info] Getting sessions for read:user,repo,user:email...
[2022-10-27 10:52:58.297] [GitHub Enterprise Authentication] [info] Got 0 sessions for read:user,repo,user:email...
[2022-10-27 10:52:58.305] [GitHub Enterprise Authentication] [info] Getting sessions for read:user,repo,user:email,workflow...
[2022-10-27 10:52:58.305] [GitHub Enterprise Authentication] [info] Got 0 sessions for read:user,repo,user:email,workflow...
[2022-10-27 10:53:00.998] [GitHub Enterprise Authentication] [info] Logging in for the following scopes: read:user repo user:email workflow
[2022-10-27 10:53:01.005] [GitHub Enterprise Authentication] [info] Trying without local server... (read:user repo user:email workflow)
[2022-10-27 10:53:08.638] [GitHub Enterprise Authentication] [info] Exchanging code for token...
[2022-10-27 10:53:09.447] [GitHub Enterprise Authentication] [error] GitHubTokenExchangeError: incorrect_client_credentials: The client_id and/or client_secret passed are incorrect. (https://docs.github.com/apps/managing-oauth-apps/troubleshooting-oauth-app-access-token-request-errors/#incorrect-client-credentials)
at v.exchangeCodeForToken (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:716196)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:711778
[2022-10-27 10:53:19.420] [GitHub Enterprise Authentication] [info] Trying with local server... (read:user repo user:email workflow)
[2022-10-27 10:53:26.837] [GitHub Enterprise Authentication] [info] Exchanging code for token...
[2022-10-27 10:53:27.378] [GitHub Enterprise Authentication] [error] GitHubTokenExchangeError: incorrect_client_credentials: The client_id and/or client_secret passed are incorrect. (https://docs.github.com/apps/managing-oauth-apps/troubleshooting-oauth-app-access-token-request-errors/#incorrect-client-credentials)
at v.exchangeCodeForToken (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:716196)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:712939
[2022-10-27 10:53:32.760] [GitHub Enterprise Authentication] [error] Error: Cancelled
at n (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:710187)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async v.login (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:710725)
at async t.GitHubAuthenticationProvider.createSession (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:706286)
[2022-10-27 10:53:37.709] [GitHub Enterprise Authentication] [info] Getting sessions for read:user,repo,user:email,workflow...
[2022-10-27 10:53:37.709] [GitHub Enterprise Authentication] [info] Got 0 sessions for read:user,repo,user:email,workflow...
[2022-10-27 10:53:37.717] [GitHub Enterprise Authentication] [info] Getting sessions for read:user,repo,user:email...
[2022-10-27 10:53:37.717] [GitHub Enterprise Authentication] [info] Got 0 sessions for read:user,repo,user:email...
[2022-10-27 10:53:37.725] [GitHub Enterprise Authentication] [info] Getting sessions for read:user,repo,user:email,workflow...
[2022-10-27 10:53:37.725] [GitHub Enterprise Authentication] [info] Got 0 sessions for read:user,repo,user:email,workflow...
[2022-10-27 10:53:39.731] [GitHub Enterprise Authentication] [info] Logging in for the following scopes: read:user repo user:email workflow
[2022-10-27 10:53:39.733] [GitHub Enterprise Authentication] [info] Trying without local server... (read:user repo user:email workflow)
[2022-10-27 10:53:42.607] [GitHub Enterprise Authentication] [info] Exchanging code for token...
[2022-10-27 10:53:43.302] [GitHub Enterprise Authentication] [error] GitHubTokenExchangeError: incorrect_client_credentials: The client_id and/or client_secret passed are incorrect. (https://docs.github.com/apps/managing-oauth-apps/troubleshooting-oauth-app-access-token-request-errors/#incorrect-client-credentials)
at v.exchangeCodeForToken (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:716196)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:711778
[2022-10-27 10:54:19.221] [GitHub Enterprise Authentication] [info] Getting sessions for all scopes...
[2022-10-27 10:54:19.222] [GitHub Enterprise Authentication] [info] Got 0 sessions for ...
[2022-10-27 10:54:22.452] [GitHub Enterprise Authentication] [info] Logging in for the following scopes: read:user repo user:email
[2022-10-27 10:54:22.454] [GitHub Enterprise Authentication] [info] Trying without local server... (read:user repo user:email)
[2022-10-27 10:54:25.397] [GitHub Enterprise Authentication] [info] Exchanging code for token...
[2022-10-27 10:54:26.147] [GitHub Enterprise Authentication] [error] GitHubTokenExchangeError: incorrect_client_credentials: The client_id and/or client_secret passed are incorrect. (https://docs.github.com/apps/managing-oauth-apps/troubleshooting-oauth-app-access-token-request-errors/#incorrect-client-credentials)
at v.exchangeCodeForToken (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:716196)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:711778
[2022-10-27 10:54:26.151] [GitHub Enterprise Authentication] [error] Error: Cancelled
at n (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:710187)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async v.login (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:710571)
at async t.GitHubAuthenticationProvider.createSession (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:706286)
[2022-10-27 10:54:26.153] [GitHub Enterprise Authentication] [error] Error: Cancelled
at n (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:710187)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async v.login (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:710571)
at async t.GitHubAuthenticationProvider.createSession (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:706286)
[2022-10-27 10:54:26.156] [GitHub Enterprise Authentication] [error] Error: Cancelled
at n (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:710187)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async v.login (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:710725)
at async t.GitHubAuthenticationProvider.createSession (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:706286)
[2022-10-27 10:54:28.007] [GitHub Enterprise Authentication] [info] Trying device code flow... (read:user repo user:email)
[2022-10-27 10:54:41.093] [GitHub Enterprise Authentication] [info] Getting user info...
[2022-10-27 10:54:41.202] [GitHub Enterprise Authentication] [error] Getting account info failed: Not Found
[2022-10-27 10:54:41.203] [GitHub Enterprise Authentication] [error] Error: Not Found
at v.getUserInfo (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:716940)
at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
at async t.GitHubAuthenticationProvider.tokenToSession (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:706957)
at async t.GitHubAuthenticationProvider.createSession (/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/github-authentication/dist/extension.js:1:706322)
I had the same scenario as @jordanenglish with the standard install of VSCode (same error and everything). Even after installing the latest version of VSCode - Insiders and the pre-release version of the extension, the initial authorization step just hung for several minutes. Canceling it prompted the sign-in option with a one-time, 8-character token, and that worked. So the good news is that the sign-in succeeded, but it seems like it could still be optimized a bit.
Me too I had the same as @jordanenglish except for the url which is for me <company>github.com/
instead of github.com/<company>
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.
@alexr00 That was exactly it! I logged out of my user account, remove the GitHub Enterprise URI, and reloaded VSCode. I was prompted to log in by the GitHub Pull Requests extension, and it worked like a charm! I can confirm that loading VSCode with both Release and Pre-Release version of the extension works as expected. Thank you so much for that tip! I don't think I would have ever thought of removing the entry for the GitHub Enterprise URI on my own
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.
@alexr00 I was able to use those instructions to log in however I am still not able to pull information from my organization.
This is what I see:
These are my settings:
"githubPullRequests.queries": [
{
"label": "Waiting For My Review",
"query": "is:open is:pr review-requested:${user}"
},
{
"label": "Assigned To Me",
"query": "is:open assignee:${user}"
},
{
"label": "Created By Me",
"query": "is:open author:${user}"
},
{
"label": "Mentioned Me",
"query": "is:open org:<myorg>"
},
{
"label": "Review Requests",
"query": "is:open is:pr review-requested:jordanenglish draft:true"
},
I am able to query using GitHub web UI and also gh cli
jordan.english@TPQ074XMN9 ~ $ gh search prs org:<myorg> --state open --limit 500 | wc -l
415
@jordanenglish just to confirm: you have deleted the setting github-enterprise.uri
from your user and/or workspace settings?
@jordanenglish just to confirm: you have deleted the setting github-enterprise.uri from your user and/or workspace settings?
@alexr00 - yes I deleted it as mentioned here.
@jordanenglish thanks for confirming. Can you share the output from GitHub Pull Request, GitHub Authentication, and GitHub Enterprise Authentication? The logs from GitHub Pull Request may contain your org and repo name.
@jordanenglish thanks for confirming. Can you share the output from GitHub Pull Request, GitHub Authentication, and GitHub Enterprise Authentication? The logs from GitHub Pull Request may contain your org and repo name.
@alexr00
This is a random one from today:
Fetching pull requests failed: Network error: request to https://api.github.com/graphql failed, reason: getaddrinfo ENOTFOUND api.github.com
GitHub Pull Request
[Debug 1667508248.237s] Activation> Creating API implementation.
[Debug 1667508248.237s] Activation> Initializing state.
[Debug 1667508248.237s] Activation> Creating credential store.
[Debug 1667508248.249s] RateLimit> API call count: 48 (Viewer)
[Debug 1667508248.252s] Activation> Registering built in git provider.
[Debug 1667508248.252s] Activation> Registering live share git provider.
[Debug 1667508248.252s] Activation> Creating tree view.
[Debug 1667508248.252s] Looking for git repository
[Debug 1667508248.252s] Found 0 repositories during activation
[Debug 1667508248.252s] Git repository found, initializing review manager and pr tree view.
[Debug 1667508248.261s] Registering git provider
[Debug 1667508248.261s] Review> Validate state in progress
[Debug 1667508248.261s] Review> Validating state...
[Debug 1667508248.262s] FolderRepositoryManager> Not all remotes found. The following remotes are missing: upstream
[Debug 1667508248.262s] FolderRepositoryManager> Displaying configured remotes: origin, upstream
[Debug 1667508248.266s] Found GitHub remote
[Debug 1667508248.268s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.268s] RateLimit> API call count: 49 (/repos/{owner}/{repo})
[Debug 1667508248.313s] GitPostCommitCommands> Trying to register post commit commands.
[Debug 1667508248.313s] GitPostCommitCommands> GitHub remote(s) found, registering post commit commands.
[Debug 1667508248.314s] GitPostCommitCommands> Looking for remote. Comparing 1 local repo remotes with 1 GitHub repositories.
[Debug 1667508248.314s] GitPostCommitCommands> Found a repo when getting post commit commands.
[Debug 1667508248.314s] GitPostCommitCommands> Looking for remote. Comparing 1 local repo remotes with 1 GitHub repositories.
[Debug 1667508248.314s] GitPostCommitCommands> Found a repo when getting post commit commands.
[Debug 1667508248.505s] RateLimit> Rate limit remaining: 4939
[Debug 1667508248.58s] RateLimit> Rate limit remaining: 4994
[Debug 1667508248.58s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.58s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.58s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.58s] GitHubRepository> Fetch assignable users - enter
[Debug 1667508248.581s] GitHubRepository> Fetch all issues - enter
[Debug 1667508248.581s] GitHubRepository> Fetch all issues - enter
[Debug 1667508248.581s] RateLimit> API call count: 50 (GetAssignableUsers)
[Debug 1667508248.582s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.582s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.582s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.582s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.582s] RateLimit> API call count: 51 (GetMilestonesWithIssues)
[Debug 1667508248.583s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.583s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.583s] RateLimit> API call count: 52 (GetMilestonesWithIssues)
[Debug 1667508248.583s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.583s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.586s] GitHubRepository> Fetch default branch - enter
[Debug 1667508248.586s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.586s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.586s] GitHubRepository> Fetch default branch - enter
[Debug 1667508248.586s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.586s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.586s] GitHubRepository> Fetch default branch - done
[Debug 1667508248.586s] GitHubRepository> Fetch default branch - enter
[Debug 1667508248.586s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.586s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.586s] GitHubRepository> Fetch max issue - enter
[Debug 1667508248.586s] GitHubRepository> Fetch default branch - done
[Debug 1667508248.586s] GitHubRepository> Fetch default branch - enter
[Debug 1667508248.586s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.586s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.586s] GitHubRepository> Fetch max issue - enter
[Debug 1667508248.588s] GitHubRepository> Fetch default branch - done
[Debug 1667508248.588s] RateLimit> API call count: 53 (MaxIssue)
[Debug 1667508248.589s] GitHubRepository> Fetch default branch - done
[Debug 1667508248.589s] RateLimit> API call count: 54 (MaxIssue)
[Debug 1667508248.59s] GitHubRepository> Fetch issues with query - enter
[Debug 1667508248.59s] GitHubRepository> Fetch issues with query - enter
[Debug 1667508248.59s] RateLimit> API call count: 55 (Issues)
[Debug 1667508248.591s] GitHubRepository> Fetch issues with query - enter
[Debug 1667508248.591s] RateLimit> API call count: 56 (Issues)
[Debug 1667508248.591s] GitHubRepository> Fetch issues with query - enter
[Debug 1667508248.591s] RateLimit> API call count: 57 (Issues)
[Debug 1667508248.592s] RateLimit> API call count: 58 (Issues)
[Debug 1667508248.616s] Repo state for file:///Users/jordan.english/git/terraform-aws-consul-kv changed.
[Debug 1667508248.616s] Repo file:///Users/jordan.english/git/terraform-aws-consul-kv has already been setup.
[Debug 1667508248.616s] GitHubRepository> Fetch all issues - enter
[Debug 1667508248.616s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.616s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.616s] RateLimit> API call count: 59 (GetMilestonesWithIssues)
[Debug 1667508248.617s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.617s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.617s] Review> current branch PLT-1687 is associated with pull request #28
[Debug 1667508248.617s] Review> Resolving pull request
[Debug 1667508248.617s] GitHubRepository> Fetch pull request 28 - enter
[Debug 1667508248.617s] GitHubRepository> Fetch default branch - enter
[Debug 1667508248.617s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.617s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.617s] RateLimit> API call count: 60 (PullRequest)
[Debug 1667508248.618s] GitHubRepository> Fetch default branch - done
[Debug 1667508248.618s] GitHubRepository> Fetch default branch - enter
[Debug 1667508248.618s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.618s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.618s] GitHubRepository> Fetch max issue - enter
[Debug 1667508248.618s] GitHubRepository> Fetch default branch - done
[Debug 1667508248.618s] RateLimit> API call count: 61 (MaxIssue)
[Debug 1667508248.618s] GitHubRepository> Fetch issues with query - enter
[Debug 1667508248.618s] RateLimit> API call count: 62 (Issues)
[Debug 1667508248.619s] GitHubRepository> Fetch issues with query - enter
[Debug 1667508248.619s] RateLimit> API call count: 63 (Issues)
[Debug 1667508248.854s] RateLimit> Rate limit remaining: 4936
[Debug 1667508248.854s] RateLimit> Rate limit remaining: 4936
[Debug 1667508248.854s] RateLimit> Rate limit remaining: 4936
[Debug 1667508248.854s] GitHubRepository> Fetch issues with query - done
[Debug 1667508248.854s] GitHubRepository> Fetch issues with query - done
[Debug 1667508248.854s] GitHubRepository> Fetch issues with query - done
[Debug 1667508248.856s] RateLimit> Rate limit remaining: 4938
[Debug 1667508248.856s] RateLimit> Rate limit remaining: 4938
[Debug 1667508248.856s] RateLimit> Rate limit remaining: 4938
[Debug 1667508248.856s] GitHubRepository> Fetch max issue - done
[Debug 1667508248.856s] GitHubRepository> Fetch max issue - done
[Debug 1667508248.856s] GitHubRepository> Fetch max issue - done
[Debug 1667508248.856s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.856s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.856s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.856s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.856s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.856s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.856s] GitHubRepository> Fetch metadata - enter
[Debug 1667508248.856s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508248.864s] RateLimit> Rate limit remaining: 4912
[Debug 1667508248.864s] RateLimit> Rate limit remaining: 4912
[Debug 1667508248.864s] RateLimit> Rate limit remaining: 4912
[Debug 1667508248.864s] GitHubRepository> Fetch all issues - done
[Debug 1667508248.864s] GitHubRepository> Fetch all issues - done
[Debug 1667508248.864s] GitHubRepository> Fetch all issues - done
[Debug 1667508248.864s] GitHubRepository> Fetch issues without milestone- enter
[Debug 1667508248.864s] GitHubRepository> Fetch issues without milestone- enter
[Debug 1667508248.864s] GitHubRepository> Fetch issues without milestone- enter
[Debug 1667508248.864s] RateLimit> API call count: 64 (IssuesWithoutMilestone)
[Debug 1667508248.865s] RateLimit> API call count: 65 (IssuesWithoutMilestone)
[Debug 1667508248.865s] RateLimit> API call count: 66 (IssuesWithoutMilestone)
[Debug 1667508248.87s] RateLimit> Rate limit remaining: 4911
[Debug 1667508248.87s] RateLimit> Rate limit remaining: 4911
[Debug 1667508248.87s] RateLimit> Rate limit remaining: 4911
[Debug 1667508248.87s] GitHubRepository> Fetch issues with query - done
[Debug 1667508248.87s] GitHubRepository> Fetch issues with query - done
[Debug 1667508248.87s] GitHubRepository> Fetch issues with query - done
[Debug 1667508249.04s] RateLimit> Rate limit remaining: 4910
[Debug 1667508249.04s] GitHubRepository> Fetch pull request 28 - done
[Debug 1667508249.044s] Review> Fetching pull request data
[Debug 1667508249.044s] PullRequestModel> Fetch file changes, base, head and merge base of PR #28 - enter
[Debug 1667508249.044s] PullRequestTree> Adding PR #28 to tree
[Debug 1667508249.044s] GitHubRepository> Fetch metadata - enter
[Debug 1667508249.044s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508249.045s] IssueModel> Fetch viewers latest review commit
[Debug 1667508249.045s] GitHubRepository> Fetch metadata - enter
[Debug 1667508249.045s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508249.045s] RateLimit> API call count: 67 (LatestReviewCommit)
[Debug 1667508249.063s] Review> register comments provider
[Debug 1667508249.064s] Review> display pull request status bar indicator and refresh pull request tree view.
[Debug 1667508249.064s] Review> using focus mode = true.
[Debug 1667508249.064s] Review> state validation silent = true.
[Debug 1667508249.064s] Review> PR show should show = false.
[Debug 1667508249.088s] RateLimit> Rate limit remaining: 4908
[Debug 1667508249.088s] RateLimit> Rate limit remaining: 4908
[Debug 1667508249.088s] RateLimit> Rate limit remaining: 4908
[Debug 1667508249.088s] GitHubRepository> Fetch issues without milestone - done
[Debug 1667508249.088s] GitHubRepository> Fetch issues without milestone - done
[Debug 1667508249.088s] GitHubRepository> Fetch issues without milestone - done
[Debug 1667508249.272s] RateLimit> Rate limit remaining: 4907
[Debug 1667508249.315s] RateLimit> Rate limit remaining: 4937
[Debug 1667508249.523s] RateLimit> API call count: 68 (PullRequestComments)
[Debug 1667508249.523s] RateLimit> API call count: 69 (PullRequestComments)
[Debug 1667508249.523s] RateLimit> API call count: 70 (PullRequestFiles)
[Debug 1667508249.524s] RateLimit> API call count: 71 (GetPendingReviewId)
[Debug 1667508249.774s] RateLimit> Rate limit remaining: 4904
[Debug 1667508249.785s] RateLimit> Rate limit remaining: 4906
[Debug 1667508249.788s] RateLimit> Rate limit remaining: 4905
[Debug 1667508249.788s] RateLimit> Rate limit remaining: 4905
[Debug 1667508254.223s] GitHubRepository> Fetch repo permissions and available merge methods - enter
[Debug 1667508254.223s] GitHubRepository> Fetch metadata - enter
[Debug 1667508254.223s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508254.223s] PullRequestModel> Fetch timeline events of PR #28 - enter
[Debug 1667508254.223s] GitHubRepository> Fetch default branch - enter
[Debug 1667508254.223s] GitHubRepository> Fetch metadata - enter
[Debug 1667508254.223s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508254.224s] GitHubRepository> Fetch pull request 28 - enter
[Debug 1667508254.224s] GitHubRepository> Fetch repo permissions and available merge methods - done
[Debug 1667508254.224s] RateLimit> API call count: 72 (TimelineEvents)
[Debug 1667508254.224s] IssueModel> Fetch viewers latest review commit
[Debug 1667508254.224s] RateLimit> API call count: 73 (/repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers)
[Debug 1667508254.224s] GitHubRepository> Fetch default branch - done
[Debug 1667508254.225s] RateLimit> API call count: 74 (PullRequest)
[Debug 1667508254.225s] RateLimit> API call count: 75 (LatestReviewCommit)
[Debug 1667508254.225s] RateLimit> API call count: 76 (PullRequestComments)
[Debug 1667508254.237s] PullRequestTree> Creating file and commit nodes for PR #28
[Debug 1667508254.244s] PullRequestTree> Getting children for Files node
[Debug 1667508254.244s] PullRequestTree> Got all children for Files node
[Debug 1667508254.434s] RateLimit> Rate limit remaining: 4991
[Debug 1667508254.487s] RateLimit> Rate limit remaining: 4902
[Debug 1667508254.487s] PullRequestTree> Review threads have changed, refreshing Files node
[Debug 1667508254.487s] PullRequestTree> Review threads have changed, refreshing Commits node
[Debug 1667508254.491s] PullRequestTree> Getting children for Files node
[Debug 1667508254.491s] PullRequestTree> Got all children for Files node
[Debug 1667508254.495s] RateLimit> Rate limit remaining: 4903
[Debug 1667508254.59s] RateLimit> Rate limit remaining: 4900
[Debug 1667508254.59s] GitHubRepository> Fetch pull request 28 - done
[Debug 1667508254.704s] RateLimit> Rate limit remaining: 4901
[Debug 1667508255.069s] GitHubRepository> Fetch all pull requests - enter
[Debug 1667508255.069s] RateLimit> API call count: 77 (/repos/{owner}/{repo}/pulls)
[Debug 1667508255.296s] RateLimit> Rate limit remaining: 4990
[Debug 1667508255.297s] GitHubRepository> Fetch all pull requests - done
[Debug 1667508256.521s] GitHubRepository> Fetch default branch - enter
[Debug 1667508256.521s] GitHubRepository> Fetch metadata - enter
[Debug 1667508256.521s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508256.521s] GitHubRepository> Fetch default branch - done
[Debug 1667508256.521s] GitHubRepository> Fetch pull request category is:open org:<company> - enter
[Debug 1667508256.521s] GitHubRepository> Fetch metadata - enter
[Debug 1667508256.521s] GitHubRepository> Fetch metadata <company>/terraform-aws-consul-kv - done
[Debug 1667508256.521s] RateLimit> API call count: 78 (/search/issues)
[Debug 1667508257.343s] RateLimit> Unexpectedly low rate limit: 30
[Debug 1667508257.343s] RateLimit> Rate limit remaining: 29
[Debug 1667508257.343s] RateLimit> API call count: 79 (PullRequest)
[Debug 1667508257.344s] RateLimit> API call count: 80 (PullRequest)
[Debug 1667508257.344s] RateLimit> API call count: 81 (PullRequest)
[Debug 1667508257.344s] RateLimit> API call count: 82 (PullRequest)
[Debug 1667508257.344s] RateLimit> API call count: 83 (PullRequest)
[Debug 1667508257.344s] RateLimit> API call count: 84 (PullRequest)
[Debug 1667508257.344s] RateLimit> API call count: 85 (PullRequest)
[Debug 1667508257.344s] RateLimit> API call count: 86 (PullRequest)
[Debug 1667508257.344s] RateLimit> API call count: 87 (PullRequest)
[Debug 1667508257.344s] RateLimit> API call count: 88 (PullRequest)
[Debug 1667508257.344s] RateLimit> API call count: 89 (PullRequest)
[Debug 1667508257.345s] RateLimit> API call count: 90 (PullRequest)
[Debug 1667508257.345s] RateLimit> API call count: 91 (PullRequest)
[Debug 1667508257.345s] RateLimit> API call count: 92 (PullRequest)
[Debug 1667508257.345s] RateLimit> API call count: 93 (PullRequest)
[Debug 1667508257.345s] RateLimit> API call count: 94 (PullRequest)
[Debug 1667508257.345s] RateLimit> API call count: 95 (PullRequest)
[Debug 1667508257.345s] RateLimit> API call count: 96 (PullRequest)
[Debug 1667508257.345s] RateLimit> API call count: 97 (PullRequest)
[Debug 1667508257.346s] RateLimit> API call count: 98 (PullRequest)
[Debug 1667508257.626s] GitHubRepository> Fetching all pull requests failed: Error: GraphQL error: Could not resolve to a PullRequest with the number of 39.
GitHub Authentication
2022-11-03 14:17:55.404 [info] Reading sessions from keychain...
2022-11-03 14:17:55.405 [info] Getting sessions for user:email...
2022-11-03 14:17:55.405 [info] Getting sessions for all scopes...
2022-11-03 14:17:55.405 [info] Got stored sessions!
2022-11-03 14:17:55.405 [info] Got 2 verified sessions.
2022-11-03 14:17:55.405 [info] Got 1 sessions for user:email...
2022-11-03 14:17:55.405 [info] Got 2 sessions for ...
2022-11-03 14:17:55.578 [info] Getting sessions for read:user,repo,user:email,workflow...
2022-11-03 14:17:55.579 [info] Got 1 sessions for read:user,repo,user:email,workflow...
2022-11-03 14:17:56.646 [info] Getting sessions for read:user,repo,user:email,workflow...
2022-11-03 14:17:56.646 [info] Got 1 sessions for read:user,repo,user:email,workflow...
2022-11-03 14:18:00.127 [info] Reading sessions from keychain...
2022-11-03 14:18:00.127 [info] Getting sessions for user:email...
2022-11-03 14:18:00.127 [info] Getting sessions for all scopes...
2022-11-03 14:18:00.127 [info] Got stored sessions!
2022-11-03 14:18:00.127 [info] Got 2 verified sessions.
2022-11-03 14:18:00.127 [info] Got 1 sessions for user:email...
2022-11-03 14:18:00.127 [info] Got 2 sessions for ...
2022-11-03 14:18:00.229 [info] Getting sessions for read:user,repo,user:email,workflow...
2022-11-03 14:18:00.229 [info] Got 1 sessions for read:user,repo,user:email,workflow...
2022-11-03 14:18:00.331 [info] Getting sessions for read:user,repo,user:email,workflow...
2022-11-03 14:18:00.331 [info] Got 1 sessions for read:user,repo,user:email,workflow...
2022-11-03 14:18:12.374 [info] Reading sessions from keychain...
2022-11-03 14:18:12.374 [info] Getting sessions for user:email...
2022-11-03 14:18:12.424 [info] Getting sessions for all scopes...
2022-11-03 14:18:12.424 [info] Got stored sessions!
2022-11-03 14:18:12.424 [info] Got 2 verified sessions.
2022-11-03 14:18:12.424 [info] Got 1 sessions for user:email...
2022-11-03 14:18:12.424 [info] Got 2 sessions for ...
2022-11-03 14:18:12.445 [info] Getting sessions for read:user,repo,user:email,workflow...
2022-11-03 14:18:12.445 [info] Got 1 sessions for read:user,repo,user:email,workflow...
2022-11-03 14:18:12.658 [info] Getting sessions for read:user,repo,user:email,workflow...
2022-11-03 14:18:12.658 [info] Got 1 sessions for read:user,repo,user:email,workflow...
2022-11-03 16:42:02.717 [info] Reading sessions from keychain...
2022-11-03 16:42:02.718 [info] Getting sessions for user:email...
2022-11-03 16:42:02.718 [info] Getting sessions for all scopes...
2022-11-03 16:42:02.718 [info] Got stored sessions!
2022-11-03 16:42:02.718 [info] Got 2 verified sessions.
2022-11-03 16:42:02.718 [info] Got 1 sessions for user:email...
2022-11-03 16:42:02.718 [info] Got 2 sessions for ...
2022-11-03 16:42:02.888 [info] Getting sessions for read:user,repo,user:email,workflow...
2022-11-03 16:42:02.890 [info] Got 1 sessions for read:user,repo,user:email,workflow...
2022-11-03 16:42:19.198 [info] Getting sessions for read:user,repo,user:email,workflow...
2022-11-03 16:42:19.198 [info] Got 1 sessions for read:user,repo,user:email,workflow...
2022-11-03 16:44:07.955 [info] Reading sessions from keychain...
2022-11-03 16:44:07.955 [info] Getting sessions for user:email...
2022-11-03 16:44:07.955 [info] Getting sessions for all scopes...
2022-11-03 16:44:07.956 [info] Got stored sessions!
2022-11-03 16:44:07.956 [info] Got 2 verified sessions.
2022-11-03 16:44:07.956 [info] Got 1 sessions for user:email...
2022-11-03 16:44:07.956 [info] Got 2 sessions for ...
2022-11-03 16:44:08.154 [info] Getting sessions for read:user,repo,user:email,workflow...
2022-11-03 16:44:08.154 [info] Got 1 sessions for read:user,repo,user:email,workflow...
2022-11-03 16:44:08.244 [info] Getting sessions for read:user,repo,user:email,workflow...
2022-11-03 16:44:08.244 [info] Got 1 sessions for read:user,repo,user:email,workflow...
GitHub Enterprise Authentication
I don't seem to have logs for this?
My Server URI is blank still:
The missing log for GitHub Enterprise Authentication is a good thing. It means we're correctly using github.com authentication.
Your logs indicate that there's a bug in how we're fetching PRs for queries, which should be fixed in the next pre-release build. If you expand the "All Open" list do you see PRs there?
I see 1 here @alexr00 but we have over 400 open if I check in the GitHub web UI.
Can you share the output of running git remote
?
Returns with origin
Hmm. I assume you can't share the output with me, but if you run git remote -v
is the url that prints the one with all the PRs open in it?
@alexr00 If the answer is yes, then I am going to facepalm a bit but does the VS Code extension only show the PRs that are applicable to the current open git repo? My understanding was that the extension was a 1:1 for the query in the GitHub API.
For the PR queries, yes, it just shows the ones for the currently open repo or repos. It seems like a pretty big oversight that this isn't stated anywhere or made clear in any way. I'll fix that.
That would explain it then. I assumed that it would show whatever my GitHub query was.
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.