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. Installed in WSL #57

Closed
0lzi opened this issue Mar 29, 2023 · 11 comments
Assignees
Labels
bug Something isn't working

Comments

@0lzi
Copy link

0lzi commented Mar 29, 2023

Describe the bug
After installing this in WSL and logging in I receive the below message.

To Reproduce
Steps to reproduce the behavior:

  1. Install extension in WSL workspace
  2. Login to Github and authorise with org
  3. See error

Expected behavior

  1. Install extension in WSL workspace
  2. Login to Github and authorise with org
  3. It Works as expected

Screenshots
image

Extension Version
v0.25.3

Additional context
Add any other context about the problem here.

@0lzi 0lzi added the bug Something isn't working label Mar 29, 2023
@briantist
Copy link

I have the same issue. When I click Refresh I get no error, only this message:

image

@areifert
Copy link

Clicking on the Refresh button (in the GitHub Actions tab) does nothing for me either. Checking the developer console in VS Code, I'm seeing the following error:

ERR command 'github-actions.explorer.refresh' not found: Error: command 'github-actions.explorer.refresh' not found
    at v.k (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1552:2618)
    at v.executeCommand (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1552:2534)
    at async i.open (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:615:42187)
    at async h.open (vscode-file://vscode-app/Applications/Visual%20Studio%20Code.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:615:43698)

@0lzi
Copy link
Author

0lzi commented Mar 30, 2023

I get this error in Console

  ERR Cannot get default system shell when there is no backend for remote authority 'wsl+ubuntu-22.04': Error: Cannot get default system shell when there is no backend for remote authority 'wsl+ubuntu-22.04'
    at Object.getDefaultSystemShell (vscode-file://vscode-app/c:/Users/user/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1702:6416)
    at async i.v (vscode-file://vscode-app/c:/Users/user/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1695:18520)
    at async i.r (vscode-file://vscode-app/c:/Users/user/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1695:17783)
    at async i.getDefaultProfile (vscode-file://vscode-app/c:/Users/user/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1695:17114)
    at async i.o (vscode-file://vscode-app/c:/Users/user/AppData/Local/Programs/Microsoft%20VS%20Code/resources/app/out/vs/workbench/workbench.desktop.main.js:1695:15825)

@KetchupOnMyKetchup KetchupOnMyKetchup self-assigned this Apr 6, 2023
@KetchupOnMyKetchup
Copy link
Contributor

KetchupOnMyKetchup commented Apr 6, 2023

I am investigating this bug now and was able to repro.

There are a couple of workarounds for now that worked for me using WSL Ubuntu 22.04 that you can try for now while I investigate:

  1. Login to GitHub using VS Code on Windows without connecting to WSL, then connect to WSL
  2. Login, see the failure, reload VS Code (Ctrl + Shift + P, then type in Developer: Reload Window)
    wslloginreload

@areifert
Copy link

areifert commented Apr 6, 2023

I'm actually seeing this bug on a (M1) Mac rather than Windows. It seems to not be installing at all. The VS Code developer console shows the following after attempting to uninstall and reinstall the plugin:

Activating extension 'github.vscode-github-actions' failed: Not Found.

@KetchupOnMyKetchup
Copy link
Contributor

@areifert Would you mind opening a separate issue for that issue with reinstalling the plugin with repro steps / screenshots so we can address that separately?

@areifert
Copy link

areifert commented Apr 6, 2023

Created separate issue: #93

@KetchupOnMyKetchup
Copy link
Contributor

This should be fixed in the newly released version 0.25.4

@0lzi
Copy link
Author

0lzi commented Apr 11, 2023

Login to GitHub using VS Code on Windows without connecting to WSL, then connect to WSL
Login, see the failure, reload VS Code (Ctrl + Shift + P, then type in Developer: Reload Window)

This didnt fix it for me. It says Unable to find a Git executable I am guessing I would need to install Git in Windows first

image

@lebrice
Copy link

lebrice commented Feb 29, 2024

@KetchupOnMyKetchup This is still happening to me in v0.26.2

@scottco-slalom
Copy link

This fixed this issue for me:
#251 (comment)

@lrotschy lrotschy removed their assignment Mar 6, 2024
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
None yet
Development

No branches or pull requests

7 participants