question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to log in to GHE

See original GitHub issue
  • Extension version: 0.6.0
  • VSCode Version:
  • OS: 1.33.0 (user setup)
  • GHE: 2.15.9

Unable to login to GHE. Started with settings.json containing a githubPullRequests.hosts entry with my GHE location (as https://github.{redacted}.com/) and token. After launch, the following appears in the output:

[Info] C:\Users\{redacted}\.ssh\config: ENOENT: no such file or directory, open 'C:\Users\{redacted}\.ssh\config'
[Info] Looking for git repository
[Info] Git repository found, initializing review manager and pr tree view.
[Info] Migrating https://github.{redacted}.com/ from githubPullRequests.hosts to keychain
[Info] No GitHub remotes found
[Info] Review> no matching pull request metadata found for current branch master
[Info] Found GitHub remote

When the 4th line of the output appears, my hosts entry in settings.json has been removed. After all this, I get a message saying I need to authenticate with GitHub, and if I click that, a browser window opens up asking me to authorize VS Code. Clicking okay eventually results in a server error.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:11
  • Comments:12 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
Romalouzcommented, Sep 18, 2019

Hello,

Same issue here for Github enterprise with github.vscode-pull-request-github v0.11.2 and vscode v1.38.1 on Windows 10.0.17763 I tried using git clone with ssh and https, the same kind of errors occur:

[Debug 624s 445ms] Unable to resolve remote: HttpError: Only absolute URLs are supported [Debug 624s 445ms] GitHubRepository> Fetch mentionable users - enter [Debug 624s 654ms] Review> no matching pull request metadata found for current branch master [Debug 624s 655ms] Review> Validating state… [Debug 624s 655ms] PullRequestManager> Displaying configured remotes: origin [Debug 624s 662ms] Found GitHub remote [Debug 624s 663ms] GitHubRepository> Fetch metadata - enter [Debug 624s 663ms] Unable to resolve remote: HttpError: Only absolute URLs are supported [Debug 624s 855ms] Review> no matching pull request metadata found for current branch master [Debug 643s 480ms] GitHubRepository> Fetch pull request category is:open review-requested:${user} - enter [Debug 643s 489ms] GitHubRepository> Fetching all pull requests failed: HttpError: Only absolute URLs are supported

Any idea what is the cause of the absolute URL message? Is there a way to provide this absolute URL somewhere?

Thanks for the feedback.

3reactions
colin-youngcommented, Apr 30, 2019

I took another look at that url, and after several attempts and a full reboot (likely unrelated and due to corporate security policies and software), I eventually got a “logged in” message. Now I’m getting “Fetching pull requests failed: Only absolute URLs are supported”

I know it worked at one point, and I’m pretty sure I saw that message before.

I’m seeing this in the log now:

[Info] C:\Users\[redacted]\.ssh\config: ENOENT: no such file or directory, open 'C:\Users\[redacted]\.ssh\config'
[Info] Looking for git repository
[Info] Git repository found, initializing review manager and pr tree view.
[Info] No GitHub remotes found
[Info] Review> no matching pull request metadata found for current branch master
[Info] Found GitHub remote

And when I restart VS Code, I get an error that I need to log in to GitHub to use the PR extension. If I click that link I am taken to github.com (not our enterprise url) and eventually end up with a Heroku error page. It’s like the extension has forgotten I gave it a token and the URL of our enterprise installation.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't sign in to your Google Account
If you can't sign in to your Google Account in Gmail, Google Drive, Google Play, or elsewhere, select the issue that most closely...
Read more >
Problem: Unable to log on to the management GUI - IBM
If you can see the management GUI login screen but cannot log on, you have several options for correcting the problem. Log on...
Read more >
I can't log in to a website - WhatIsMyBrowser.com
Having trouble logging into a website? There are lots of things that could be wrong. Here's a detailed guide to help you find...
Read more >
Why Am I Unable to Log In? - B1G+
On the Request Password Reset page, type in your email address, then click REQUEST PASSWORD · Check your inbox for an email with...
Read more >
I received the “Unable to authenticate” or “Failed to log in ...
Check to ensure your mobile device has a strong network connection, or wait a short while, then try logging in again. · If...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found