Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect to the GitHub API, please check your internet connection on Mac #191

Closed
omerls-pw opened this issue May 12, 2023 · 13 comments
Labels
bug Something isn't working

Comments

@omerls-pw
Copy link

Unable to connect to the GitHub API, please check your internet connection
I can't use the extension.

image

Error from GitHub Actions on output:

Activating GitHub Actions extension...
Error getting GitHub context
Not Found
HttpError: Not Found
	at /Users/withwhomdidyouwishtocall/.vscode/extensions/github.vscode-github-actions-0.25.7/dist/extension-node.js:2:1365761
	at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
	at async /Users/withwhomdidyouwishtocall/.vscode/extensions/github.vscode-github-actions-0.25.7/dist/extension-node.js:2:1597077
	at async Promise.all (index 0)
	at async /Users/withwhomdidyouwishtocall/.vscode/extensions/github.vscode-github-actions-0.25.7/dist/extension-node.js:2:1596994
	at async /Users/withwhomdidyouwishtocall/.vscode/extensions/github.vscode-github-actions-0.25.7/dist/extension-node.js:2:1596534
	at async Ao (/Users/withwhomdidyouwishtocall/.vscode/extensions/github.vscode-github-actions-0.25.7/dist/extension-node.js:2:1596471)
	at async Rs (/Users/withwhomdidyouwishtocall/.vscode/extensions/github.vscode-github-actions-0.25.7/dist/extension-node.js:2:1621721)
	at async v.n (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:96:6644)
	at async v.m (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:96:6607)
	at async v.l (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:96:6064)
	```
OS: Mac
V.: 13.3.1
Chip: M1 Pro, 2021
@felipesu19
Copy link
Collaborator

Its almost impossible to debug this with just the information currently in the issue. Are you on a home network? A private network? What version of the extension are you using?

Is it possible you tried this during one of the recent outages and weren't able to connect at that time? Do other github extensions work for you?

@omerls-pw
Copy link
Author

I tried it on my home network again on Tue 16 @ 7:21GMT.
I'm connected with GH token

github.com
  ✓ Logged in to github.com as omerls-pw (GH_TOKEN)
  ✓ Git operations for github.com configured to use https protocol.
  ✓ Token: ghp_************************************
  ✓ Token scopes: ****, ****, ****, ****, ****, ****, ****, ****, ****, ****, ****, ****, ****, ****,  workflow, ****, ****,

@brandon-kyle-bailey
Copy link

Any movement on this? Am experiencing the same issue. Also connected to GH via a token

@fharper
Copy link

fharper commented Jul 14, 2023

It needs Git enabled in Visual Studio; at least it was my issue. Check for git.enabled in your settings, it needs to be true.

@omerls-pw
Copy link
Author

Nope :/
Screenshot 2023-07-18 at 9 37 59

@fharper
Copy link

fharper commented Jul 18, 2023

Sorry, it was the issue for me.

@felipesu19
Copy link
Collaborator

I would suggest the usual debug steps of uninstalling the extension fully, re-installing and re-authing. I'm a little stumped on this one.

@omerls-pw
Copy link
Author

omerls-pw commented Jul 27, 2023

I've done that already 🤷
I wish I could provide more data, but that's all I've got.

@omerls-pw
Copy link
Author

I noticed that it doesn't appear under trusted extensions.
image
I then checked all other github accounts that I had and found that it was linked to a different account.
I signed out of the other account, removed the extension, reinstalled the extension and authorized it with the correct account.
it's now working for the desired account.
image
image

@github-project-automation github-project-automation bot moved this from Backlog 🗒 to Done 💤 in GitHub Actions VS Code Extension Aug 6, 2023
@jwerre
Copy link

jwerre commented Aug 25, 2023

It needs Git enabled in Visual Studio; at least it was my issue. Check for git.enabled in your settings, it needs to be true.

This was the issue for me. I set git.enabled to true in my settings and restarted VS Code.

@devasheeshmallik
Copy link

Hi, I am also facing this issue and in the setting, git.enabled is already set to true. Could anyone please help me to fix this? Thanks in advance.

@scottco-slalom
Copy link

I hope cross-posting is ok. I found tons of threads like this one, but this is what finally solved the problem for me, so I'm leaving the link in all the threads I read, as it's the only thing that worked for me: #251 (comment)

@chanced
Copy link

chanced commented Jul 1, 2024

I still can't get this to work, I have tried adding "git.enabled": true" to my config.
Screenshot 2024-07-01 at 11 36 50 AM

  • I am not using a proxy or a VPN
  • Github Actions is trusted (so far as I can tell):
Screenshot 2024-07-01 at 11 35 58 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

8 participants