vscode-pull-request-github icon indicating copy to clipboard operation
vscode-pull-request-github copied to clipboard

Unable to get the currently logged-in user

Open amjad-adsk opened this issue 7 months ago • 12 comments

Unable to get the currently logged-in user, GitHub Pull Requests will not work correctly.

  • Extension version: 0.110.0
  • VSCode Version: 1.100.2 (Universal)
  • OS: MAC OS v15.4.1
  • Repository Clone Configuration (single repository/fork of an upstream repository):
  • Github Product (Github.com/Github Enterprise version x.x.x):

Steps to Reproduce:

  1. Just install the extension, and you will get the error. It's basically saying you can't log in to GitHub. Maybe the problem is with the underlying authorization package you guys use. It works fine with a lower version(Any).
  2. Works if you switch to another branch in the same repo. Even from that branch to the main branch works fine. The problem occurred for the first time. Even after reloading VS Code. It happens.

amjad-adsk avatar May 19 '25 09:05 amjad-adsk

+1 on this; exact same issue. Same OS, VSCode, and Extension versions. Downgrading to previous release fixes the issue.

jason-dour-e avatar May 21 '25 11:05 jason-dour-e

Same issue, this is my log:

2025-05-23 14:55:43.931 [info] [Activation] Extension version: 0.110.0
2025-05-23 14:55:43.934 [info] [Authentication] Creating hub for .com
2025-05-23 14:55:43.962 [info] [Activation] Looking for git repository
2025-05-23 14:55:43.962 [info] [Activation] Found 0 repositories during activation
2025-05-23 14:55:43.962 [info] [Activation] Git repository found, initializing review manager and pr tree view.
2025-05-23 14:55:43.964 [info] [GitAPI] Registering git provider
2025-05-23 14:55:43.964 [info] [Review+0] Validate state in progress
2025-05-23 14:55:43.964 [info] [Review+0] Validating state...
2025-05-23 14:55:43.982 [info] [FolderRepositoryManager+0] Found GitHub remote for folder /home/XXXXXXXXXXXXX
2025-05-23 14:55:44.269 [info] [FolderRepositoryManager+0] Trying to use globalState for assignableUsers.
2025-05-23 14:55:44.312 [info] [Review+0] No matching pull request metadata found locally for current branch main
2025-05-23 14:55:44.322 [info] [FolderRepositoryManager+0] No globalState for assignableUsers.
2025-05-23 14:55:44.658 [info] [Review+0] No matching pull request metadata found on GitHub for current branch main
2025-05-23 14:55:50.783 [info] [Activation] Extension version: 0.110.0
2025-05-23 14:55:50.786 [info] [Authentication] Creating hub for .com
2025-05-23 14:55:50.805 [info] [Activation] Looking for git repository
2025-05-23 14:55:50.805 [info] [Activation] Found 0 repositories during activation
2025-05-23 14:55:50.805 [info] [Activation] Git repository found, initializing review manager and pr tree view.
2025-05-23 14:55:50.807 [info] [GitAPI] Registering git provider
2025-05-23 14:55:50.807 [info] [Review+0] Validate state in progress
2025-05-23 14:55:50.807 [info] [Review+0] Validating state...
2025-05-23 14:55:50.812 [info] [FolderRepositoryManager+0] Found GitHub remote for folder /home/XXXXXXXXXXXX
2025-05-23 14:55:51.266 [info] [Activation] Repo state for file:///home/XXXXXXXXXXX changed.
2025-05-23 14:55:51.266 [info] [Activation] Repo file:///home/XXXXXXXXXXXX has already been setup.
2025-05-23 14:56:01.186 [warning] Unable to resolve remote: HttpError: Connect Timeout Error (attempted address: api.github.com:443, timeout: 10000ms)
2025-05-23 14:56:01.187 [info] [FolderRepositoryManager+0] Missing upstream check failed: HttpError: Connect Timeout Error (attempted address: api.github.com:443, timeout: 10000ms)
2025-05-23 14:56:01.190 [info] [FolderRepositoryManager+0] Trying to use globalState for assignableUsers.
2025-05-23 14:56:01.199 [error] [Authentication] Failed to get current user: HttpError: Connect Timeout Error (attempted address: api.github.com:443, timeout: 10000ms), Connect Timeout Error (attempted address: api.github.com:443, timeout: 10000ms)
2025-05-23 14:56:01.201 [info] [Review+0] No matching pull request metadata found locally for current branch main
2025-05-23 14:56:01.223 [info] [FolderRepositoryManager+0] Using globalState assignableUsers for 1.
2025-05-23 14:56:18.029 [info] [FolderRepositoryManager+0] Found GitHub repo for pr #5: yes
2025-05-23 14:56:18.034 [warning] [GitHubRepository+0] Fetching default branch failed: HttpError: Connect Timeout Error (attempted address: api.github.com:443, timeout: 10000ms)
2025-05-23 14:56:18.034 [warning] GitHubRepository> Fetching repo permissions and available merge methods failed: HttpError: Connect Timeout Error (attempted address: api.github.com:443, timeout: 10000ms)
2025-05-23 14:56:18.787 [info] [FolderRepositoryManager+0] Found GitHub pr repo for pr #5: yes
2025-05-23 14:57:50.809 [error] [Review+0] Timeout occurred while validating state.

crowbait avatar May 23 '25 13:05 crowbait

@amjad-adsk @jason-dour-e for me, the issue went away when switching to the Prerelease branch of the extension, which can easily be done from the extension page in vscode.

crowbait avatar May 23 '25 13:05 crowbait

Disabling and re-enabling the extension resolved the issue for me.

manas-maji avatar May 26 '25 07:05 manas-maji

Closing, as this seems to be fixed in the pre-release version. Thanks for reporting it!

alexr00 avatar May 28 '25 15:05 alexr00

@alexr00, I just tested the pre-release version, and it did not resolve the issue. Any recommendations for testing?

jason-dour-e avatar May 28 '25 15:05 jason-dour-e

Now I'm getting a new error. Using 0.108.0 (which previously resolved the error) now gives the following when loading or when trying to refresh the PR panel:

Element with id Local Pull Request Branches is already registered

That's the entirety of the error message.

UPDATE

In my settings JSON, the following was present:

    "githubPullRequests.queries": [
        {
            "label": "Local Pull Request Branches",
            "query": "default"
        },
        {
            "label": "Waiting For My Review",
            "query": "repo:${owner}/${repository} is:open review-requested:${user}"
        },
        {
            "label": "Assigned To Me",
            "query": "repo:${owner}/${repository} is:open assignee:${user}"
        },
        {
            "label": "Created By Me",
            "query": "repo:${owner}/${repository} is:open author:${user}"
        },
        {
            "label": "All Open",
            "query": "default"
        }
    ],

Removing the above settings removed the error message above and returns 0.108.0 to normal functionality.

However, 0.110.0 and the pre-release version still give the Github User error.

jason-dour-e avatar May 28 '25 15:05 jason-dour-e

unable to resolve in pre-release version, here is my log

2025-05-29 04:55:26.836 [warning] /home/yourname/.ssh/config: ENOENT: no such file or directory, open '/home/yourname/.ssh/config'
2025-05-29 04:55:26.836 [info] [Activation] Extension version: 0.111.2025052904
2025-05-29 04:55:26.841 [info] [Authentication] Creating hub for .com
2025-05-29 04:55:27.021 [info] [Activation] Looking for git repository
2025-05-29 04:55:27.021 [info] [Activation] Found 0 repositories during activation
2025-05-29 04:55:27.021 [info] [Activation] Git repository found, initializing review manager and pr tree view.
2025-05-29 04:55:27.024 [info] [GitAPI] Registering git provider
2025-05-29 04:55:27.024 [info] [Review+0] Validate state in progress
2025-05-29 04:55:27.024 [info] [Review+0] Validating state...
2025-05-29 04:55:27.035 [info] [FolderRepositoryManager+0] Found GitHub remote for folder /home/yourname/code/repository
2025-05-29 04:55:35.457 [info] [Activation] Repo state for file:///home/yourname/code/repository changed.
2025-05-29 04:55:35.457 [info] [Activation] Repo file:///home/yourname/code/repository has already been setup.
2025-05-29 04:55:37.647 [error] [Authentication] Failed to get current user: HttpError: Connect Timeout Error (attempted address: api.github.com:443, timeout: 10000ms), Connect Timeout Error (attempted address: api.github.com:443, timeout: 10000ms)
2025-05-29 04:55:38.148 [warning] Unable to resolve remote: HttpError: Connect Timeout Error (attempted address: api.github.com:443, timeout: 10000ms)
2025-05-29 04:55:38.148 [info] [FolderRepositoryManager+0] Missing upstream check failed: HttpError: Connect Timeout Error (attempted address: api.github.com:443, timeout: 10000ms)
2025-05-29 04:55:38.149 [info] [FolderRepositoryManager+0] Trying to use globalState for assignableUsers.
2025-05-29 04:55:38.158 [info] [Review+0] No matching pull request metadata found locally for current branch main
2025-05-29 04:55:38.162 [info] [FolderRepositoryManager+0] Using globalState assignableUsers for 1.

blankdreams2 avatar May 29 '25 11:05 blankdreams2

@alexr00 the problem hasn't been fixed in the pre-release version, I just tested the recent release.

amjad-adsk avatar Jun 02 '25 08:06 amjad-adsk

@alexr00 the problem hasn't been fixed in the pre-release version, I just tested the recent release.

The "recent release" is 0.110, the pre-release is 0.111 . From your wording it's not entirely clear which one you have installed; you can check on the extension's page in vscode (the version number is on the right side of the page).

crowbait avatar Jun 04 '25 10:06 crowbait

I can not get the extension to work. Always goes into

Unable to get the currently logged in user, GitHub Pull Requests will not work correctly

Fetching pull requests failed: Connect Timeout Error (attempted address: api.github.com:443, timeout: 10000ms)

Also tried out the pre-release version. Doesn't work either.

On my system I can connect to the API, I have no proxy, no VPN, only thing is that I'm running VS code with WSL mode. But I can also connect to the GitHub API in WSL.

Spenhouet avatar Jun 08 '25 10:06 Spenhouet

Further testing. 0.108 does not give an error about the currently logged in user, but it does not work. I am unable to interact with GH PRs via the extension, the API calls just time out.

I went so far as to log out of GH entirely in my VSCode, and logging in again. Other GH related extensions all reauthorized, but this extension did not.

This extension is now completely useless to me.

jason-dour-e avatar Jun 18 '25 15:06 jason-dour-e

I am having this issue on version 0.112. I have tried to switch to the pre-release (0.113.2025062020), but it does not help. It also seems to interfere with GitHub Copilot, which now times out on login.

Unable to get the currently logged in user, GitHub Pull Requests will not work correctly

I get this error:

Copilot took too long to get ready. Please ensure you are signed in to GitHub and that the extension GitHub.copilot-chat is installed and enabled.

Both the extension and GitHub Copilot are now completely useless.

Is it possible that the issue is server side?

CaliViking avatar Jun 21 '25 03:06 CaliViking

Folks, thanks for your patience. I'm going to need your help understanding what could be happening as I haven't been able to repro the issue. Next time you see this, can you share the output from "GitHub Authentication" and from "GitHub Pull Requests"?

alexr00 avatar Jun 23 '25 09:06 alexr00

@alexr00 ...

In my Github Authentication log, I see (lots of repetitions, but no errors, all info):

2025-06-23 07:19:10.389 [info] Getting sessions for all scopes...
2025-06-23 07:19:10.389 [info] Got 3 sessions for ...
2025-06-23 07:19:10.391 [info] Getting sessions for read:user,repo,user:email,workflow...
2025-06-23 07:19:10.391 [info] Got 1 sessions for read:user,repo,user:email,workflow...

In my Github Pull Requests log, it gets interesting. First, it always tries GitHub Enterprise account first, which fails because I'm not connected to the network it is on. However, in the case of my test windows with a repo hosted on GitHub.com, it never seems to TRY to go to GitHub.com:

2025-06-23 07:32:10.002 [info] [Activation] Extension version: 0.112.0
2025-06-23 07:32:10.032 [info] [Authentication] Creating hub for enterprise
2025-06-23 07:32:10.032 [info] [Authentication] Enterprise server authority myghes.mydomain.com
2025-06-23 07:32:10.186 [error] [Authentication] Failed to get current user: HttpError: getaddrinfo ENOTFOUND myghes.mydomain.com, getaddrinfo ENOTFOUND myghes.mydomain.com
2025-06-23 07:32:10.190 [info] [Activation] Looking for git repository
2025-06-23 07:32:10.191 [info] [Activation] Found 0 repositories during activation
2025-06-23 07:32:10.191 [info] [Activation] Git repository found, initializing review manager and pr tree view.
2025-06-23 07:32:10.192 [info] [GitAPI] Registering git provider
2025-06-23 07:32:10.192 [info] [Review+0] Validate state in progress
2025-06-23 07:32:10.192 [info] [Review+0] Validating state...
2025-06-23 07:32:10.192 [warning] No remotes found. The following remotes are missing: origin, upstream
2025-06-23 07:32:10.192 [info] [FolderRepositoryManager+0] No GitHub remotes found for folder /XXXXXX
2025-06-23 07:32:10.355 [info] [Review+0] Queuing additional validate state
2025-06-23 07:32:10.355 [info] [Activation] Repo state for file:///XXXXXX changed.
2025-06-23 07:32:10.355 [info] [Activation] Repo file:///XXXXXX has already been setup.
2025-06-23 07:32:11.025 [info] [Review+0] Validating state...
2025-06-23 07:32:11.037 [info] [FolderRepositoryManager+0] Found GitHub remote for folder /XXXXXX
2025-06-23 07:32:11.038 [info] [FolderRepositoryManager+0] Trying to use globalState for assignableUsers.
2025-06-23 07:32:11.046 [info] [FolderRepositoryManager+0] Using globalState assignableUsers for 0.
2025-06-23 07:32:11.073 [info] [Review+0] No matching pull request metadata found locally for current branch main
2025-06-23 07:32:11.073 [info] [Review+0] No matching pull request metadata found on GitHub for current branch main

Something about the logic of detecting upstream remotes and whether it is GHES or Github.com seems to be off.

jason-dour-e avatar Jun 23 '25 11:06 jason-dour-e

@alexr00

Ran in debug mode, here's my log, where it never once attempts to communicate with Github.com:

2025-06-23 07:49:45.943 [info] [Activation] Extension version: 0.112.0
2025-06-23 07:49:45.943 [debug] [Activation] Creating API implementation.
2025-06-23 07:49:45.943 [debug] [Activation] Initializing state.
2025-06-23 07:49:45.943 [debug] [Activation] Creating credential store.
2025-06-23 07:49:45.943 [debug] [Authentication] Initializing GitHub Enterprise authentication provider.
2025-06-23 07:49:45.977 [info] [Authentication] Creating hub for enterprise
2025-06-23 07:49:45.977 [info] [Authentication] Enterprise server authority myghes.mydomain.com
2025-06-23 07:49:45.977 [debug] [Authentication] Getting current user
2025-06-23 07:49:45.977 [debug] [RateLimit] Extension rate limit remaining: 140, /user
2025-06-23 07:49:45.979 [debug] [Authentication] Setting enterprise hub and scopes
2025-06-23 07:49:46.154 [debug] [Activation] Registering built in git provider.
2025-06-23 07:49:46.154 [debug] [Activation] Registering live share git provider.
2025-06-23 07:49:46.154 [debug] [Activation] Creating tree view.
2025-06-23 07:49:46.154 [info] [Activation] Looking for git repository
2025-06-23 07:49:46.154 [info] [Activation] Found 0 repositories during activation
2025-06-23 07:49:46.154 [info] [Activation] Git repository found, initializing review manager and pr tree view.
2025-06-23 07:49:46.156 [info] [GitAPI] Registering git provider
2025-06-23 07:49:46.156 [info] [Review+0] Validate state in progress
2025-06-23 07:49:46.156 [info] [Review+0] Validating state...
2025-06-23 07:49:46.156 [warning] No remotes found. The following remotes are missing: origin, upstream
2025-06-23 07:49:46.156 [debug] [FolderRepositoryManager+0] Displaying configured remotes: origin, upstream
2025-06-23 07:49:46.156 [info] [FolderRepositoryManager+0] No GitHub remotes found for folder /XXXXXX
2025-06-23 07:49:46.311 [debug] [VariableSubstitution] ${user} -> ${user}
2025-06-23 07:49:46.311 [debug] [VariableSubstitution] ${owner} -> ${owner}
2025-06-23 07:49:46.311 [debug] [VariableSubstitution] ${repository} -> ${repository}
2025-06-23 07:49:46.311 [debug] [VariableSubstitution] ${user} -> ${user}
2025-06-23 07:49:46.311 [debug] [VariableSubstitution] ${owner} -> ${owner}
2025-06-23 07:49:46.311 [debug] [VariableSubstitution] ${repository} -> ${repository}
2025-06-23 07:49:46.311 [debug] [VariableSubstitution] ${owner} -> ${owner}
2025-06-23 07:49:46.312 [debug] [VariableSubstitution] ${repository} -> ${repository}
2025-06-23 07:49:46.313 [error] [Authentication] Failed to get current user: HttpError: getaddrinfo ENOTFOUND myghes.mydomain.com, getaddrinfo ENOTFOUND myghes.mydomain.com
2025-06-23 07:49:46.325 [debug] [GitPostCommitCommands] Trying to register post commit commands.
2025-06-23 07:49:46.411 [info] [Review+0] Validate state in progress
2025-06-23 07:49:46.411 [info] [Review+0] Validating state...
2025-06-23 07:49:46.411 [info] [Activation] Repo state for file:///XXXXXX changed.
2025-06-23 07:49:46.411 [info] [Activation] Repo file:///XXXXXX has already been setup.
2025-06-23 07:49:46.413 [debug] [VariableSubstitution] ${user} -> ${user}
2025-06-23 07:49:46.413 [debug] [VariableSubstitution] ${owner} -> ${owner}
2025-06-23 07:49:46.413 [debug] [VariableSubstitution] ${repository} -> ${repository}
2025-06-23 07:49:46.413 [debug] [VariableSubstitution] ${user} -> ${user}
2025-06-23 07:49:46.413 [debug] [VariableSubstitution] ${owner} -> ${owner}
2025-06-23 07:49:46.413 [debug] [VariableSubstitution] ${repository} -> ${repository}
2025-06-23 07:49:46.413 [debug] [VariableSubstitution] ${owner} -> ${owner}
2025-06-23 07:49:46.413 [debug] [VariableSubstitution] ${repository} -> ${repository}
2025-06-23 07:49:46.414 [debug] [FolderRepositoryManager+0] Not all remotes found. The following remotes are missing: upstream
2025-06-23 07:49:46.414 [debug] [FolderRepositoryManager+0] Displaying configured remotes: origin, upstream
2025-06-23 07:49:46.423 [info] [FolderRepositoryManager+0] Found GitHub remote for folder /XXXXXX
2025-06-23 07:49:46.423 [info] [FolderRepositoryManager+0] Trying to use globalState for assignableUsers.
2025-06-23 07:49:46.423 [debug] [GitPostCommitCommands] Trying to register post commit commands.
2025-06-23 07:49:46.431 [info] [FolderRepositoryManager+0] Using globalState assignableUsers for 0.
2025-06-23 07:49:46.441 [info] [Review+0] No matching pull request metadata found locally for current branch main
2025-06-23 07:49:46.441 [debug] [Review+0] Upstream for branch main is origin/main
2025-06-23 07:49:46.441 [debug] [FolderRepositoryManager+0] Searching GitHub for a PR with branch main and remote origin
2025-06-23 07:49:46.441 [info] [Review+0] No matching pull request metadata found on GitHub for current branch main

jason-dour-e avatar Jun 23 '25 11:06 jason-dour-e

Thank you @jason-dour-e!

alexr00 avatar Jun 23 '25 13:06 alexr00

Folks, could you please try out the latest pre-release version of the extension and report back? It has a fix that might do the trick.

alexr00 avatar Jun 24 '25 07:06 alexr00

@alexr00

Installed 0.113.2025062404 and it partially works, but noisily.

  • It still throws the error about unable to find the current user, for GHES.
  • It still gives the same getaddrinfo error as before in the log, for GHES which is expected as I am not on that network.
  • But then it DOES attempt for GitHub.com, and gets my current session, and...
  • ...the extension appears to work as expected, EXCEPT...
  • ...when I interact with the extension panel, it tries BOTH GHES and GitHub.com, and thus throws errors related to GHES, but works for GitHub.com.
  • I saw a PR on my repo, but was unable to retrieve information about it by clicking on it; the PR window opens as blank, and the request never completes and provides information about the PR.
  • I can interact with the PR tree in the panel, and can browse the changes, and even pull a diff view of a file, but I cannot retrieve the main PR info window.

While the extension is partially functional again, for those of us with both Server and Cloud access, this mode of operation will create a very noisy false positive error experience when starting up at the very least.

Attached is my log file. At the end of the file is when my PR info screen in blank, and my extension is hung waiting on something, but never completes.

2025-06-24 07:12:32.988 [info] [Activation] Extension version: 0.113.2025062404
2025-06-24 07:12:32.988 [debug] [Activation] Creating API implementation.
2025-06-24 07:12:32.988 [debug] [Activation] Initializing state.
2025-06-24 07:12:32.988 [debug] [Activation] Creating credential store.
2025-06-24 07:12:32.988 [debug] [Authentication] Initializing GitHub Enterprise authentication provider.
2025-06-24 07:12:33.605 [info] [Authentication] Creating hub for enterprise
2025-06-24 07:12:33.606 [info] [Authentication] Enterprise server authority MYGHES.MYDOMAIN.com
2025-06-24 07:12:33.606 [debug] [Authentication] Getting current user
2025-06-24 07:12:33.606 [debug] [RateLimit] Extension rate limit remaining: 140, /user
2025-06-24 07:12:33.608 [debug] [Authentication] Setting enterprise hub and scopes
2025-06-24 07:12:33.891 [debug] [Authentication] Initializing GitHub authentication provider.
2025-06-24 07:12:33.894 [error] [Authentication] Failed to get current user: HttpError: getaddrinfo ENOTFOUND MYGHES.MYDOMAIN.com, getaddrinfo ENOTFOUND MYGHES.MYDOMAIN.com
2025-06-24 07:12:33.932 [info] [Authentication] Creating hub for .com
2025-06-24 07:12:33.932 [debug] [Authentication] Getting current user
2025-06-24 07:12:33.932 [debug] [RateLimit] Extension rate limit remaining: 140, /user
2025-06-24 07:12:33.933 [debug] [Authentication] Setting hub and scopes
2025-06-24 07:12:34.284 [debug] [Activation] Registering built in git provider.
2025-06-24 07:12:34.284 [debug] [Activation] Registering live share git provider.
2025-06-24 07:12:34.284 [debug] [Activation] Creating tree view.
2025-06-24 07:12:34.284 [info] [Activation] Looking for git repository
2025-06-24 07:12:34.284 [info] [Activation] Found 0 repositories during activation
2025-06-24 07:12:34.284 [info] [Activation] Git repository found, initializing review manager and pr tree view.
2025-06-24 07:12:34.285 [info] [GitAPI] Registering git provider
2025-06-24 07:12:34.443 [debug] [GitPostCommitCommands] Trying to register post commit commands.
2025-06-24 07:12:34.649 [info] [GitAPI] Repository file:///Path/To/My/Docs/XXXXXX/YYYYYY/main has been opened
2025-06-24 07:12:34.711 [info] [Review+0] Validate state in progress
2025-06-24 07:12:34.711 [info] [Review+0] Validating state...
2025-06-24 07:12:34.711 [info] [FolderRepositoryManager+0] Cannot updates repositories as git is uninitialized
2025-06-24 07:12:34.711 [info] [Activation] Repo state for file:///Path/To/My/Docs/XXXXXX/YYYYYY/main changed.
2025-06-24 07:12:34.711 [info] [Activation] Repo file:///Path/To/My/Docs/XXXXXX/YYYYYY/main has already been setup.
2025-06-24 07:12:34.764 [info] [Activation] Git initialization state changed: state=initialized
2025-06-24 07:12:34.764 [info] [Review+0] Validate state in progress
2025-06-24 07:12:34.764 [info] [Review+0] Validating state...
2025-06-24 07:12:34.765 [debug] [FolderRepositoryManager+0] Not all remotes found. The following remotes are missing: upstream
2025-06-24 07:12:34.765 [debug] [FolderRepositoryManager+0] Displaying configured remotes: origin, upstream
2025-06-24 07:12:34.786 [debug] [Authentication] Got current user jason-dour-e
2025-06-24 07:12:34.786 [debug] [RateLimit] REST Rate limit remaining: 4950, cost: -1, /user
2025-06-24 07:12:34.814 [info] [FolderRepositoryManager+0] Found GitHub remote for folder /Path/To/My/Docs/XXXXXX/YYYYYY/main
2025-06-24 07:12:34.815 [debug] [GitHubRepository+0] Fetch metadata - enter
2025-06-24 07:12:34.816 [debug] [GitHubRepository+0] Fetch metadata for repo - enter
2025-06-24 07:12:34.816 [debug] [GitHubRepository+0] Fetch metadata XXXXXX/YYYYYY - done
2025-06-24 07:12:34.816 [debug] [RateLimit] Extension rate limit remaining: 140, /repos/{owner}/{repo}
2025-06-24 07:12:35.261 [debug] [GitHubRepository+0] Fetch metadata for repo XXXXXX/YYYYYY - done
2025-06-24 07:12:35.261 [debug] [RateLimit] REST Rate limit remaining: 4947, cost: -1, /repos/{owner}/{repo}
2025-06-24 07:12:35.262 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:35.263 [info] [FolderRepositoryManager+0] Trying to use globalState for assignableUsers.
2025-06-24 07:12:35.263 [debug] [GitPostCommitCommands] Trying to register post commit commands.
2025-06-24 07:12:35.263 [debug] [GitPostCommitCommands] GitHub remote(s) found, registering post commit commands.
2025-06-24 07:12:35.263 [debug] [GitPostCommitCommands] Looking for remote. Comparing 1 local repo remotes with 1 GitHub repositories.
2025-06-24 07:12:35.263 [debug] [GitPostCommitCommands] Found a repo when getting post commit commands.
2025-06-24 07:12:35.263 [debug] [GitPostCommitCommands] Looking for remote. Comparing 1 local repo remotes with 1 GitHub repositories.
2025-06-24 07:12:35.263 [debug] [GitPostCommitCommands] Found a repo when getting post commit commands.
2025-06-24 07:12:35.264 [debug] [VariableSubstitution] ${user} -> jason-dour-e
2025-06-24 07:12:35.264 [debug] [VariableSubstitution] ${owner} -> ${owner}
2025-06-24 07:12:35.264 [debug] [VariableSubstitution] ${repository} -> ${repository}
2025-06-24 07:12:35.264 [debug] [VariableSubstitution] ${user} -> jason-dour-e
2025-06-24 07:12:35.264 [debug] [VariableSubstitution] ${owner} -> ${owner}
2025-06-24 07:12:35.264 [debug] [VariableSubstitution] ${repository} -> ${repository}
2025-06-24 07:12:35.264 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:35.264 [debug] [VariableSubstitution] ${owner} -> ${owner}
2025-06-24 07:12:35.264 [debug] [VariableSubstitution] ${repository} -> ${repository}
2025-06-24 07:12:35.265 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:35.265 [debug] [GitHubRepository+0] Fetch max issue - enter
2025-06-24 07:12:35.267 [debug] [VariableSubstitution] ${owner} -> XXXXXX
2025-06-24 07:12:35.267 [debug] [VariableSubstitution] ${repository} -> YYYYYY
2025-06-24 07:12:35.268 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:35.268 [debug] [RateLimit] Extension rate limit remaining: 140, MaxIssue
2025-06-24 07:12:35.268 [debug] [GitHubRepository+0] Fetch issues with query - enter
2025-06-24 07:12:35.269 [debug] [VariableSubstitution] ${owner} -> XXXXXX
2025-06-24 07:12:35.269 [debug] [VariableSubstitution] ${repository} -> YYYYYY
2025-06-24 07:12:35.269 [debug] [RateLimit] Extension rate limit remaining: 139, Issues
2025-06-24 07:12:35.269 [debug] [GitHubRepository+0] Fetch issues with query - enter
2025-06-24 07:12:35.270 [debug] [VariableSubstitution] ${owner} -> XXXXXX
2025-06-24 07:12:35.270 [debug] [VariableSubstitution] ${repository} -> YYYYYY
2025-06-24 07:12:35.272 [debug] [RateLimit] Extension rate limit remaining: 138, Issues
2025-06-24 07:12:35.272 [debug] [GitHubRepository+0] Fetch issues with query - enter
2025-06-24 07:12:35.273 [debug] [RateLimit] Extension rate limit remaining: 137, Issues
2025-06-24 07:12:35.288 [info] [FolderRepositoryManager+0] Trying to use globalState for assignableUsers.
2025-06-24 07:12:35.288 [debug] [RateLimit] Extension rate limit remaining: 140, /notifications
2025-06-24 07:12:35.299 [info] [Review+0] No matching pull request metadata found locally for current branch main
2025-06-24 07:12:35.300 [debug] [Review+0] Upstream for branch main is origin/main
2025-06-24 07:12:35.300 [debug] [FolderRepositoryManager+0] Searching GitHub for a PR with branch main and remote origin
2025-06-24 07:12:35.300 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:35.301 [debug] [GitHubRepository+0] Fetch pull requests for branch - enter
2025-06-24 07:12:35.301 [debug] [RateLimit] Extension rate limit remaining: 136, PullRequestForHead
2025-06-24 07:12:35.317 [info] [FolderRepositoryManager+0] Using globalState assignableUsers for 1.
2025-06-24 07:12:35.317 [debug] [GitHubRepository+0] Fetch assignable users - enter
2025-06-24 07:12:35.318 [debug] [RateLimit] Extension rate limit remaining: 135, GetSuggestedActors
2025-06-24 07:12:35.324 [info] [FolderRepositoryManager+0] Using globalState assignableUsers for 1.
2025-06-24 07:12:35.485 [debug] [GitPostCommitCommands] Looking for remote. Comparing 1 local repo remotes with 1 GitHub repositories.
2025-06-24 07:12:35.486 [debug] [GitPostCommitCommands] Found a repo when getting post commit commands.
2025-06-24 07:12:35.486 [debug] [GitPostCommitCommands] Looking for remote. Comparing 1 local repo remotes with 1 GitHub repositories.
2025-06-24 07:12:35.486 [debug] [GitPostCommitCommands] Found a repo when getting post commit commands.
2025-06-24 07:12:35.511 [debug] [VariableSubstitution] ${user} -> jason-dour-e
2025-06-24 07:12:35.511 [debug] [VariableSubstitution] ${owner} -> ${owner}
2025-06-24 07:12:35.511 [debug] [VariableSubstitution] ${repository} -> ${repository}
2025-06-24 07:12:35.511 [debug] [VariableSubstitution] ${user} -> jason-dour-e
2025-06-24 07:12:35.511 [debug] [VariableSubstitution] ${owner} -> ${owner}
2025-06-24 07:12:35.511 [debug] [VariableSubstitution] ${repository} -> ${repository}
2025-06-24 07:12:35.511 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:35.511 [debug] [VariableSubstitution] ${owner} -> ${owner}
2025-06-24 07:12:35.511 [debug] [VariableSubstitution] ${repository} -> ${repository}
2025-06-24 07:12:35.511 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:35.511 [debug] [GitHubRepository+0] Fetch max issue - enter
2025-06-24 07:12:35.511 [debug] [VariableSubstitution] ${owner} -> XXXXXX
2025-06-24 07:12:35.511 [debug] [VariableSubstitution] ${repository} -> YYYYYY
2025-06-24 07:12:35.511 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:35.511 [debug] [RateLimit] Extension rate limit remaining: 134, MaxIssue
2025-06-24 07:12:35.511 [debug] [GitHubRepository+0] Fetch issues with query - enter
2025-06-24 07:12:35.512 [debug] [VariableSubstitution] ${owner} -> XXXXXX
2025-06-24 07:12:35.512 [debug] [VariableSubstitution] ${repository} -> YYYYYY
2025-06-24 07:12:35.512 [debug] [RateLimit] Extension rate limit remaining: 133, Issues
2025-06-24 07:12:35.512 [debug] [GitHubRepository+0] Fetch issues with query - enter
2025-06-24 07:12:35.512 [debug] [VariableSubstitution] ${owner} -> XXXXXX
2025-06-24 07:12:35.512 [debug] [VariableSubstitution] ${repository} -> YYYYYY
2025-06-24 07:12:35.512 [debug] [RateLimit] Extension rate limit remaining: 132, Issues
2025-06-24 07:12:35.512 [debug] [GitHubRepository+0] Fetch issues with query - enter
2025-06-24 07:12:35.512 [debug] [RateLimit] Extension rate limit remaining: 131, Issues
2025-06-24 07:12:37.848 [debug] [RateLimit] GraphQL Rate limit remaining: 4871, cost: 1, GetSuggestedActors
2025-06-24 07:12:37.849 [debug] [RateLimit] GraphQL Rate limit remaining: 4873, cost: 1, Issues
2025-06-24 07:12:37.849 [debug] [RateLimit] GraphQL Rate limit remaining: 4873, cost: 1, Issues
2025-06-24 07:12:37.849 [debug] [GitHubRepository+0] Fetch issues with query - done
2025-06-24 07:12:37.849 [debug] [GitHubRepository+0] Fetch issues with query - done
2025-06-24 07:12:37.849 [debug] [RateLimit] GraphQL Rate limit remaining: 4876, cost: 1, MaxIssue
2025-06-24 07:12:37.849 [debug] [RateLimit] GraphQL Rate limit remaining: 4876, cost: 1, MaxIssue
2025-06-24 07:12:37.849 [debug] [GitHubRepository+0] Fetch max issue - done
2025-06-24 07:12:37.849 [debug] [GitHubRepository+0] Fetch max issue - done
2025-06-24 07:12:37.850 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:37.850 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:37.850 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:37.850 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:37.851 [debug] [RateLimit] GraphQL Rate limit remaining: 4875, cost: 1, Issues
2025-06-24 07:12:37.851 [debug] [RateLimit] GraphQL Rate limit remaining: 4875, cost: 1, Issues
2025-06-24 07:12:37.851 [debug] [GitHubRepository+0] Fetch issues with query - done
2025-06-24 07:12:37.851 [debug] [GitHubRepository+0] Fetch issues with query - done
2025-06-24 07:12:37.851 [debug] [RateLimit] GraphQL Rate limit remaining: 4874, cost: 1, Issues
2025-06-24 07:12:37.851 [debug] [RateLimit] GraphQL Rate limit remaining: 4874, cost: 1, Issues
2025-06-24 07:12:37.851 [debug] [GitHubRepository+0] Fetch issues with query - done
2025-06-24 07:12:37.851 [debug] [GitHubRepository+0] Fetch issues with query - done
2025-06-24 07:12:37.851 [debug] [RateLimit] GraphQL Rate limit remaining: 4872, cost: 1, PullRequestForHead
2025-06-24 07:12:37.852 [debug] [GitHubRepository+0] Fetch pull requests for branch - done
2025-06-24 07:12:37.852 [info] [Review+0] No matching pull request metadata found on GitHub for current branch main
2025-06-24 07:12:37.928 [debug] [GitHubRepository+0] Fetch all pull requests - enter
2025-06-24 07:12:37.929 [debug] [RateLimit] Extension rate limit remaining: 140, /repos/{owner}/{repo}/pulls
2025-06-24 07:12:38.570 [debug] [GitHubRepository+0] Fetch all pull requests - done
2025-06-24 07:12:38.570 [debug] [RateLimit] REST Rate limit remaining: 4944, cost: -1, /repos/{owner}/{repo}/pulls
2025-06-24 07:12:38.570 [debug] [GitHubRepository+0] Get Status Checks - enter
2025-06-24 07:12:38.571 [debug] [RateLimit] Extension rate limit remaining: 140, GetChecks
2025-06-24 07:12:39.310 [debug] [RateLimit] GraphQL Rate limit remaining: 4870, cost: 1, GetChecks
2025-06-24 07:12:39.310 [debug] [GitHubRepository+0] Get Status Checks - done
2025-06-24 07:12:42.084 [debug] [PRNode] Fetch children of PRNode #32
2025-06-24 07:12:42.085 [debug] [PullRequestModel] Fetch file changes, base, head and merge base of PR #32 - enter
2025-06-24 07:12:42.086 [debug] [RateLimit] Extension rate limit remaining: 140, PullRequestFiles
2025-06-24 07:12:42.086 [debug] [IssueModel] Fetch viewers latest review commit
2025-06-24 07:12:42.086 [debug] [RateLimit] Extension rate limit remaining: 139, LatestReviewCommit
2025-06-24 07:12:42.088 [debug] [RateLimit] Extension rate limit remaining: 138, GetPendingReviewId
2025-06-24 07:12:42.526 [debug] [RateLimit] GraphQL Rate limit remaining: 4869, cost: 1, GetPendingReviewId
2025-06-24 07:12:42.546 [debug] [RateLimit] GraphQL Rate limit remaining: 4868, cost: 1, LatestReviewCommit
2025-06-24 07:12:42.546 [debug] [PullRequestModel] Comparing commits for XXXXXX/YYYYYY with base XXXXXX:5428c4f1ed6bb51001688d10db19bdfa0eea1e66 and head XXXXXX:e768ef72952d89ced399bdd47b0145747319da14
2025-06-24 07:12:42.546 [debug] [PullRequestModel] Comparing commits for XXXXXX/YYYYYY with base XXXXXX:5428c4f1ed6bb51001688d10db19bdfa0eea1e66 and head XXXXXX:e768ef72952d89ced399bdd47b0145747319da14
2025-06-24 07:12:42.546 [debug] [RateLimit] Extension rate limit remaining: 139, /repos/{owner}/{repo}/compare/{base}...{head}
2025-06-24 07:12:42.560 [debug] [RateLimit] GraphQL Rate limit remaining: 4867, cost: 1, PullRequestFiles
2025-06-24 07:12:43.105 [debug] [RateLimit] REST Rate limit remaining: 4934, cost: -1, /repos/{owner}/{repo}/compare/{base}...{head}
2025-06-24 07:12:43.105 [debug] [PullRequestModel] Fetch file changes and merge base of PR #32 - done, total files 1 
2025-06-24 07:12:43.109 [debug] [RateLimit] Extension rate limit remaining: 140, PullRequestComments
2025-06-24 07:12:43.534 [debug] [RateLimit] GraphQL Rate limit remaining: 4847, cost: 20, PullRequestComments
2025-06-24 07:12:45.732 [debug] [PRNode] No commenting ranges: Diff is in base and none of the diff hunks could be added.
2025-06-24 07:12:45.733 [debug] [PRNode] Found 0 commenting ranges.
2025-06-24 07:12:45.736 [debug] [PRNode] Found 1 commenting ranges.
2025-06-24 07:12:45.738 [debug] [PRNode] No commenting ranges: Diff is in base and none of the diff hunks could be added.
2025-06-24 07:12:45.738 [debug] [PRNode] Found 0 commenting ranges.
2025-06-24 07:12:45.745 [debug] [PRNode] Found 1 commenting ranges.
2025-06-24 07:12:50.209 [debug] [PullRequestModel] Fetch timeline events of PR #32 - enter
2025-06-24 07:12:50.211 [debug] [IssueModel] Fetch viewers latest review commit
2025-06-24 07:12:50.211 [debug] [GitHubRepository+0] Get Status Checks - enter
2025-06-24 07:12:50.211 [debug] [PullRequestModel] Get Review Requests - enter
2025-06-24 07:12:50.211 [debug] [GitHubRepository+0] Fetch repo permissions and available merge methods - enter
2025-06-24 07:12:50.212 [debug] [GitHubRepository+0] Fetch branch has merge queue - enter
2025-06-24 07:12:50.212 [debug] [GitHubRepository+0] Compare commits - enter
2025-06-24 07:12:50.212 [debug] [PullRequestModel] Fetch pull request mergeability 32 - enter
2025-06-24 07:12:50.212 [info] [FolderRepositoryManager+0] Found GitHub repo for pr #32: yes
2025-06-24 07:12:50.213 [debug] [RateLimit] Extension rate limit remaining: 140, TimelineEvents
2025-06-24 07:12:50.213 [debug] [RateLimit] Extension rate limit remaining: 139, LatestReviewCommit
2025-06-24 07:12:50.213 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:50.213 [debug] [RateLimit] Extension rate limit remaining: 138, GetChecks
2025-06-24 07:12:50.213 [debug] [RateLimit] Extension rate limit remaining: 137, GetReviewRequests
2025-06-24 07:12:50.213 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:50.214 [debug] [GitHubRepository+0] Using cached metadata XXXXXX/YYYYYY
2025-06-24 07:12:50.214 [debug] [RateLimit] Extension rate limit remaining: 136, MergeQueueForBranch
2025-06-24 07:12:50.214 [debug] [RateLimit] Extension rate limit remaining: 135, /repos/{owner}/{repo}/compare/{base}...{head}
2025-06-24 07:12:50.216 [debug] [GitHubRepository+0] Fetch pull request XXXXXX/YYYYYY 32 - enter
2025-06-24 07:12:50.216 [debug] [RateLimit] Extension rate limit remaining: 134, PullRequest
2025-06-24 07:12:50.216 [debug] [GitHubRepository+0] Fetch repo permissions and available merge methods - done
2025-06-24 07:12:50.216 [debug] [GitHubRepository+0] Fetch Teams Count - enter
2025-06-24 07:12:50.216 [debug] [RateLimit] Extension rate limit remaining: 133, PullRequestMergeability
2025-06-24 07:12:50.216 [debug] [GitHubRepository+0] Fetch authenticated user emails - enter
2025-06-24 07:12:50.219 [debug] [RateLimit] Extension rate limit remaining: 132, PullRequestComments
2025-06-24 07:12:50.221 [debug] [RateLimit] Extension rate limit remaining: 131, /user/emails
2025-06-24 07:12:50.356 [debug] [IssueOverviewPanel] initialized without PR
2025-06-24 07:12:50.424 [debug] [GitHubRepository+0] Fetch authenticated user emails - done
2025-06-24 07:12:50.425 [debug] [RateLimit] REST Rate limit remaining: 4932, cost: -1, /user/emails
2025-06-24 07:12:50.556 [debug] [RateLimit] GraphQL Rate limit remaining: undefined, cost: undefined, MergeQueueForBranch
2025-06-24 07:12:50.556 [debug] [GitHubRepository+0] Fetch branch has merge queue - done
2025-06-24 07:12:50.584 [debug] [GitHubRepository+0] Compare commits - done
2025-06-24 07:12:50.584 [debug] [RateLimit] REST Rate limit remaining: 4931, cost: -1, /repos/{owner}/{repo}/compare/{base}...{head}
2025-06-24 07:12:50.615 [debug] [RateLimit] GraphQL Rate limit remaining: 4843, cost: 1, LatestReviewCommit
2025-06-24 07:12:50.621 [debug] [RateLimit] GraphQL Rate limit remaining: 4841, cost: 1, GetReviewRequests
2025-06-24 07:12:50.621 [debug] [PullRequestModel] Get Review Requests - done
2025-06-24 07:12:50.692 [debug] [RateLimit] GraphQL Rate limit remaining: 4820, cost: 20, PullRequestComments
2025-06-24 07:12:50.765 [debug] [RateLimit] GraphQL Rate limit remaining: 4846, cost: 1, PullRequestMergeability
2025-06-24 07:12:50.765 [debug] [PullRequestModel] Fetch pull request mergeability 32 - done
2025-06-24 07:12:50.836 [debug] [RateLimit] GraphQL Rate limit remaining: 4840, cost: 1, GetChecks
2025-06-24 07:12:50.836 [debug] [GitHubRepository+0] Get Status Checks - done
2025-06-24 07:12:51.029 [debug] [RateLimit] GraphQL Rate limit remaining: 4842, cost: 1, PullRequest
2025-06-24 07:12:51.029 [debug] [GitHubRepository+0] Fetch pull request 32 - done
2025-06-24 07:12:51.029 [info] [FolderRepositoryManager+0] Found GitHub pr repo for pr #32: yes
2025-06-24 07:12:51.734 [debug] [RateLimit] GraphQL Rate limit remaining: 4844, cost: 1, TimelineEvents
2025-06-24 07:12:51.736 [debug] [PullRequestModel] Fetch timeline events of PR #32 - done

jason-dour-e avatar Jun 24 '25 11:06 jason-dour-e

GitHub Pull Requests extension v0.113.2025062404 WORKED for me with following two lines added in:

. . ./.vscode-server/data/Machine/settings.json

"http.proxy": "http://proxy-<xyz>",
"http.proxyStrictSSL": false,

Also, no version available currently beyond this even installs on VSCode v1.101.2 saying:

Error: Unable to install extension 'github.vscode-pull-request-github' as it is not compatible with VS Code '1.101.2'.

Tried below versions:

github.vscode-pull-request-github-0.113.2025062504 github.vscode-pull-request-github-0.113.2025062510 github.vscode-pull-request-github-0.113.2025062622 github.vscode-pull-request-github-0.113.2025062717

kmoyade avatar Jun 29 '25 07:06 kmoyade

@jason-dour-e, thank you for trying it out and for the details! I was able to fully reproduce the issue with that info. I think I have it fully fixed now. Please let me know if the latest pre-release works for you.

alexr00 avatar Jul 01 '25 06:07 alexr00

@alexr00 , I cannot seem to install any pre-release version at all now. When I attempt to install a specific version, I only see the following:

Image

No matter what pre-release I attempt to install, I get 0.112 instead. Switching to release and back to pre-release still installs 0.112. Seem to be stuck on that version somehow.

jason-dour-e avatar Jul 02 '25 11:07 jason-dour-e

I was able to finally get 0.113.2025062404 installed. I see no newer pre-release version, however.

jason-dour-e avatar Jul 02 '25 11:07 jason-dour-e

@jason-dour-e thank you for trying! You'll need to use VS Code insiders to get the latest pre-release version.

alexr00 avatar Jul 02 '25 11:07 alexr00

@DonJayamanne the setup for testing this is not easy. I would suggest we wait for one of the folks in this thread to verify if possible.

alexr00 avatar Jul 02 '25 11:07 alexr00

@alexr00 since Insiders does not have the same configuration, and thus isn't logged into both GHES and GHEC, I can't effectively test this right now.

I'll attempt to get Insiders configured with both accounts, but I will be delayed in testing.

jason-dour-e avatar Jul 02 '25 12:07 jason-dour-e

@jason-dour-e, no worries, thanks for trying it. I was able to repro the issue very well once I understood what was going on, by making a GitHub Enterprise Server instance, connecting to it, then putting it into maintenance mode so that sign ins wouldn't work (hence, difficult for team members to setup and test).

alexr00 avatar Jul 02 '25 12:07 alexr00

@alexr00 I finally got Insiders configured for both GHES and GHEC access. I restarted Insiders with latest prerelease version 0.113.2025070204 and I received no user errors (including when I am not on the network with GHES), and I was able to see Issues.

I should have a Pull Request I need to open later today. I'll confirm I am able to interact with PRs once I test.

jason-dour-e avatar Jul 02 '25 12:07 jason-dour-e

@alexr00 I have successfully used 0.113.2025070204 to interact with Pull Requests, without errors, without the extension getting hung, with full ability to create, interact with, merge, and delete branch.

Looks like full functionality returned. Thank you!

jason-dour-e avatar Jul 02 '25 17:07 jason-dour-e

@jason-dour-e thank you for helping me get to the bottom of this and for verifying with insiders! As a small thank you, you can get some swag here https://swag.code.visualstudio.com/.

alexr00 avatar Jul 03 '25 09:07 alexr00