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.

GitHub Desktop forgets the GitHub Enterprise server URL

See original GitHub issue

Describe the bug

Our GitHub Enterprise server is behind the company firewall and only accessible via VPN.

With the recent versions of GH Desktop (Since 2-3 weeks ago approx), every time I log off of VPN, GH desktop forgets my enterprise URL and I have to type it again.

While its expected that GH won’t be able to communicate with the enterprise server when its not accessible, having to manually type in the URL every time I reconnect to VPN is tedious - And was not required with previous versions of the desktop tool.

Version & OS

Version 2.9.3 (x64)

Mac OS Big Sur

Steps to reproduce the behavior

  1. Confirm GH Enterprise server is configured in preferences:

image

  1. Disconnect from VPN so that GH Enterprise is not available to GH desktop.

  2. Try to fetch origin, error message is shown (correctly) since GH Enterprise is not reachable.

  3. You get an error that the account token is invalidated. This is actually not entirely accurate - Account token is still valid, just that the service is not reachable:

image

  1. Click “No” (Not on VPN now, no need to try again)

  2. Connect to VPN again - GH Enterprise is reachable

  3. Click “Fetch Origin” again - Error message shows up. Click “Open Preferences”

  4. GH Enterprise is completely forgotten, need to type the URL again to use GH desktop:

image

image

Expected behavior

I should be able to use GH Desktop with and without access to GH Enterprise for local development, and not have to re-type the Enterprise URL every time.

Actual behavior

Need to provide the GH enterprise URL on every connection to VPN.

Screenshots

Screenshots added above.

Logs

2021-09-10.desktop.production.log

Attach your logs by opening the Help menu and selecting Show Logs..., if applicable.

Additional context

Add any other context about the problem here.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
ittaibaratzcommented, Oct 6, 2021

Works like a charm! Thanks @sergiou87 and @steveward !

1reaction
ittaibaratzcommented, Sep 16, 2021

@sergiou87 - Confirmed! No GH headers whatsoever. Looking forward to testing your fix. Thanks so much for getting this resolved so quickly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authenticating to GitHub
Authenticating an account on GitHub Enterprise Server · In the menu bar, use the GitHub Desktop drop-down menu, then click Preferences. · In...
Read more >
Setting up GitHub Desktop
If you have an account on GitHub or GitHub Enterprise, you can use GitHub Desktop to exchange data between your local and remote...
Read more >
Installing and configuring GitHub Desktop
Installing and configuring GitHub Desktop. Get GitHub Desktop set up to manage your project work. Authenticate to GitHub.com or GitHub Enterprise, keep the...
Read more >
Installing and authenticating to GitHub Desktop
Installing and authenticating to GitHub Desktop. Install GitHub Desktop and connect your GitHub or GitHub Enterprise accounts.
Read more >
Updating your GitHub access credentials
Enter the email address associated with your account on GitHub.com, then click Send password reset email. The email will be sent to the...
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