desktop: Cannot fetch origin: "Failed to connect to github.com port 443: Connection refused"

Describe the bug

Cannot fetch origin. Error message: “fatal: unable to access ‘https://github.com/KyleGlov3r/164F2021_Airvrbo.git/’: Failed to connect to github.com port 443: Connection refused”

Version & OS

Version 2.9.4 (x64) Windows 10 Education, Version 10.0.19043 Build 19043

Steps to reproduce the behavior

  1. Choose Repo
  2. “Fetch origin”

Expected behavior

Fetch my changes as usual.

Actual behavior

Error modal. Does not fetch changes.

Screenshots

image

Logs

2021-11-29T15:48:44.165Z - info: [ui] [AppStore] loading 11 repositories from store
2021-11-29T15:48:44.166Z - info: [ui] [AppStore] found account: vonroga (Roga)
2021-11-29T15:48:44.491Z - info: [ui] launching: 2.9.4 (Windows 10.0.19043)
2021-11-29T15:48:44.491Z - info: [ui] execPath: 'C:\Users\ryanr\AppData\Local\GitHubDesktop\app-2.9.4\GitHubDesktop.exe'
2021-11-29T15:48:45.299Z - info: [ui] Stats reported.
2021-11-29T15:48:47.822Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 2.258s)
2021-11-29T15:48:47.829Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unable to access 'https://github.com/vonroga/itas255_f21_ryan_roga.git/': Failed to connect to github.com port 443: Connection refused

2021-11-29T15:48:51.454Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: itas255_f21_ryan_roga - vonroga (has token)
2021-11-29T15:48:53.674Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 2.166s)
2021-11-29T15:48:53.675Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unable to access 'https://github.com/vonroga/itas255_f21_ryan_roga.git/': Failed to connect to github.com port 443: Connection refused

2021-11-29T15:49:05.731Z - info: [ui] calling captureCommandOutput(where git)
2021-11-29T15:49:10.268Z - info: [ui] [AppStore] removing account vonroga (Roga) from store
2021-11-29T15:49:12.547Z - info: [ui] [SignInStore] initializing OAuth flow
2021-11-29T15:49:12.547Z - info: [main] opening in browser: https://github.com/login/oauth/authorize?client_id=de0e3c7e9973e1c4dd77&scope=repo%20user%20workflow&state=7ff83d0e-444b-4c2d-a3a2-9505888501b6
2021-11-29T15:49:13.250Z - info: [ui] Executing fetch: git -c credential.helper= fetch --progress --prune origin (took 2.184s)
2021-11-29T15:49:13.270Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unable to access 'https://github.com/itas-bill-dou/itas255_f21.git/': Failed to connect to github.com port 443: Connection refused

2021-11-29T15:50:24.125Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/vonroga/granny-dispatch.git/'

(The error was parsed as 3: Authentication failed. Some common reasons include:

- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
2021-11-29T15:50:24.878Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/vonroga/pokemon-map-app.git/'

(The error was parsed as 3: Authentication failed. Some common reasons include:

- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
2021-11-29T15:50:26.133Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/vonroga/cwc-laravel.git/'

(The error was parsed as 3: Authentication failed. Some common reasons include:

- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
2021-11-29T15:50:26.907Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/KyleGlov3r/164F2021_Airvrbo.git/'

(The error was parsed as 3: Authentication failed. Some common reasons include:

- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
2021-11-29T15:50:27.715Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/vonroga/blog.git/'

(The error was parsed as 3: Authentication failed. Some common reasons include:

- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
2021-11-29T15:50:29.516Z - info: [ui] [SignInStore] initializing OAuth flow
2021-11-29T15:50:29.516Z - info: [main] opening in browser: https://github.com/login/oauth/authorize?client_id=de0e3c7e9973e1c4dd77&scope=repo%20user%20workflow&state=eaae882d-816e-4e8c-959f-0e9c97bfa7e6
2021-11-29T15:50:30.022Z - info: [main] Received possible protocol arguments: 4
2021-11-29T15:50:30.023Z - info: [main] Processing protocol url
2021-11-29T15:50:30.025Z - info: [ui] [Dispatcher] requesting authenticated user
2021-11-29T15:50:30.258Z - error: [ui] `git -c credential.helper= fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
remote: Repository not found.
fatal: Authentication failed for 'https://github.com/vonroga/laravel-wpc.git/'

(The error was parsed as 3: Authentication failed. Some common reasons include:

- You are not logged in to your account: see File > Options.
- You may need to log out and log back in to refresh your token.
- You do not have permission to access this repository.
- The repository is archived on GitHub. Check the repository settings to confirm you are still permitted to push commits.
- If you use SSH authentication, check that your key is added to the ssh-agent and associated with your account.
- If you use SSH authentication, ensure the host key verification passes for your repository hosting service.
- If you used username / password authentication, you might need to use a Personal Access Token instead of your account password. Check the documentation of your repository hosting service.)
2021-11-29T15:50:30.327Z - info: [ui] [RepositoryIndicatorUpdater]: Refreshing sidebar indicators for 10 repositories took 11.0s of which 68.8s paused, total 79.8s
2021-11-29T15:50:31.938Z - info: [ui] [SignInStore] account resolved
2021-11-29T15:50:31.939Z - info: [ui] [AppStore] adding account vonroga (Roga) to store
2021-11-29T15:50:37.872Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: itas255_f21_ryan_roga - vonroga (has token)
2021-11-29T15:50:38.932Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 1.014s)
2021-11-29T15:50:47.908Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: 164F2021_Airvrbo - vonroga (has token)
2021-11-29T15:50:49.442Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 1.477s)
2021-11-29T15:50:52.627Z - info: [main] opening in browser: https://github.com/KyleGlov3r/164F2021_Airvrbo
2021-11-29T15:51:51.805Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: 164F2021_Airvrbo - vonroga (has token)
2021-11-29T15:51:52.306Z - info: [ui] [Timing] Action 'checkout branch from list' for 'kyleglov3r/164F2021_Airvrbo' took 0.501s
2021-11-29T15:51:53.786Z - info: [main] opening in browser: https://github.com/KyleGlov3r/164F2021_Airvrbo/pull/new/new-booking-styles
2021-11-29T15:52:20.120Z - info: [main] opening in browser: https://github.com/KyleGlov3r/164F2021_Airvrbo/pull/new/new-booking-styles
2021-11-29T15:59:45.716Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: 164F2021_Airvrbo - vonroga (has token)
2021-11-29T15:59:46.213Z - info: [ui] [Timing] Action 'checkout branch from list' for 'kyleglov3r/164F2021_Airvrbo' took 0.497s
2021-11-29T15:59:47.013Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: 164F2021_Airvrbo - vonroga (has token)
2021-11-29T15:59:49.270Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 2.206s)
2021-11-29T15:59:49.286Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unable to access 'https://github.com/KyleGlov3r/164F2021_Airvrbo.git/': Failed to connect to github.com port 443: Connection refused

2021-11-29T15:59:51.469Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: 164F2021_Airvrbo - vonroga (has token)
2021-11-29T15:59:53.737Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 2.223s)
2021-11-29T15:59:53.762Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unable to access 'https://github.com/KyleGlov3r/164F2021_Airvrbo.git/': Failed to connect to github.com port 443: Connection refused

2021-11-29T16:00:22.421Z - info: [main] opening in browser: https://github.com/KyleGlov3r/164F2021_Airvrbo/pull/new/development
2021-11-29T16:00:26.948Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: 164F2021_Airvrbo - vonroga (has token)
2021-11-29T16:00:29.132Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 2.136s)
2021-11-29T16:00:29.147Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unable to access 'https://github.com/KyleGlov3r/164F2021_Airvrbo.git/': Failed to connect to github.com port 443: Connection refused

2021-11-29T16:01:12.089Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: 164F2021_Airvrbo - vonroga (has token)
2021-11-29T16:01:14.356Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 2.211s)
2021-11-29T16:01:14.371Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unable to access 'https://github.com/KyleGlov3r/164F2021_Airvrbo.git/': Failed to connect to github.com port 443: Connection refused

2021-11-29T16:05:50.049Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: granny-dispatch - vonroga (has token)
2021-11-29T16:05:52.245Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 2.162s)
2021-11-29T16:05:52.260Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unable to access 'https://github.com/vonroga/granny-dispatch.git/': Failed to connect to github.com port 443: Connection refused

2021-11-29T16:05:52.744Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: pokemon-map-app - vonroga (has token)
2021-11-29T16:05:54.901Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 2.120s)
2021-11-29T16:05:54.927Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unable to access 'https://github.com/vonroga/pokemon-map-app.git/': Failed to connect to github.com port 443: Connection refused

2021-11-29T16:05:55.478Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: cwc-laravel - vonroga (has token)
2021-11-29T16:05:57.667Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 2.147s)
2021-11-29T16:05:57.667Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unable to access 'https://github.com/vonroga/cwc-laravel.git/': Failed to connect to github.com port 443: Connection refused

2021-11-29T16:06:12.592Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: blog - vonroga (has token)
2021-11-29T16:06:14.863Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 2.164s)
2021-11-29T16:06:14.864Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unable to access 'https://github.com/vonroga/blog.git/': Failed to connect to github.com port 443: Connection refused

2021-11-29T16:06:15.433Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: laravel-wpc - vonroga (has token)
2021-11-29T16:06:17.643Z - info: [ui] Executing fetch: git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin (took 2.173s)
2021-11-29T16:06:17.644Z - error: [ui] `git -c credential.helper= -c protocol.version=2 fetch --progress --prune origin` exited with an unexpected code: 128.
stderr:
fatal: unable to access 'https://github.com/vonroga/laravel-wpc.git/': Failed to connect to github.com port 443: Connection refused

Additional context

Pretty self explainatory.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 5
  • Comments: 18 (4 by maintainers)

Most upvoted comments

@uttappa if you aren’t behind a proxy you can run this command to unset the config option:

git config --global --unset http.proxy

Or you can directly edit the ~/.gitconfig file (git config --global --edit will open that directly).

You can set a proxy by running git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080

Replace proxyuser with your proxy username and proxypwd with your proxy password. Also, proxy.server.com:8080 needs to point to the URL of your proxy server.

I’ve been suffering with this thing for a long time 😅 But just running this command solved all my problems. git config --global --unset http.proxy

Good luck!

First, a typing git config --global http.proxy http://proxyuser:proxypwd@proxy.server.com:8080, and typing git config --global --unset http.proxy. final, execute git push

fatal: unable to access ‘https://github.com/SatyanarayanPatra/Brad-Traversy-React-Projects.git/’: Failed to connect to github.com port 443 after 21047 ms: Couldn’t connect to server. I am getting this error when I use github desktop to publich or commit anything to my github. What should I do?

@Eddievin thank you so much

Maybe you should check if you are connected to internet or your GitHub is properly initialize

On Tue, 11 Apr 2023 at 13:15, S Satyanarayana Patra < @.***> wrote:

fatal: unable to access ’ https://github.com/SatyanarayanPatra/Brad-Traversy-React-Projects.git/': Failed to connect to github.com port 443 after 21047 ms: Couldn’t connect to server. I am getting this error when I use github desktop to publich or commit anything to my github. What should I do?

— Reply to this email directly, view it on GitHub https://github.com/desktop/desktop/issues/13404#issuecomment-1503221995, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKEK2G354PYLBPTLBSM6HZLXAVDNRANCNFSM5I7QGLSA . You are receiving this because you were mentioned.Message ID: @.***>

– Best, Macduff Olusa