-
Notifications
You must be signed in to change notification settings - Fork 61
GitHub Enterprise error - Connection with GitHub Client failed #467
Comments
@thetaylormcrae What OS are you on? Where in your path is your git binary installed? |
@KnisterPeter : My OS is Windows 10 Pro build 1803 and Git binary is installed at C:\Program Files\Git. |
@thetaylormcrae If you open a cmd terminal in windows and type 'git' does it work and find the command or does it fail? Right now the extension expects your git executable in your path. Otherwise you can try to configure |
@thetaylormcrae And after configuration you may need to run 'Reload window'. |
I'm able to type 'git' into PowerShell / CMD and get back the 'These are common Git comands...' message. I'll try specifying the Git path using that option in VSCode and see if it makes a difference. |
@thetaylormcrae It would be great if you can report back here. At least as reference for others if it did work. |
@KnisterPeter : Unfortunately, I got the same error after specifying the full path to the git.exe file. Listed below is my user settings (json) file. {
} also, my access token setup in VSCode has the following permissions I've also confirmed that the GHE host is github.domain.org. |
@thetaylormcrae Can you then please verify that your GHE is available at |
That is available at https://github.*domain*.org/api/v3 with the following response. { Not sure if the GHE version of 2.15 makes a difference. |
No v3 should be good enough. I have no idea what else could have gone wrong. I'll flag this as bug and will have a look if I can find something |
To see if it's a bug in VSCode 1.29.1, I'll load the latest Insider version and see if that makes a difference. |
@thetaylormcrae It should not, since it does not use that many features of githubs internal git client. |
@KnisterPeter : Sounds good. Here's a fresh copy of the output |
@thetaylormcrae Its clearly the request which fails. So either your token is not found (for whatever reason) or it has not enough access rights, or I don't know... |
@KnisterPeter : Good to know. Is there any further debugging that can be enabled to see how the extension pulls in the token that's stored in VSCode? |
@thetaylormcrae No, to get deeper into it you need to compile your own version of the extension. |
@KnisterPeter : Sounds good! If I find anything that stands out for this issue, I'll make sure to report back here. |
@KnisterPeter : Not sure what I'm doing wrong, but when I start a debug session after cloning the repository, this is what I get in the [Extension Development Host] instance: Activating extension 'KnisterPeter.vscode-github' failed: Cannot find module 'C:\Scripts\vscode-github-1\out\src\main'. |
Did you install all dependencies with yarn and started a build? The default build in vscode should work. |
@KnisterPeter : My apologies. I didn't properly install the dependencies. After that was completed, the error is no longer present. After setting up the secure token and attempting to check pull requests on a GHE repository, I got the following error.
|
@thetaylormcrae Hmm, then the only option would be to set a breakpoint at apropriate positions or I create a branch with a few more log output for you to debug this further. Whatever is easier for you. |
@KnisterPeter : I like the option of a separate branch to isolate the troubleshooting. |
@KnisterPeter : What would I need to do to enable further logging on this extension? Digging through the code now, but not sure where to start. |
@thetaylormcrae Sorry for not responding. I've had a busy time lately. By the way did you tried the github extension from microsoft? Its quite good and does a lot of this extension but better and they have a bigger team on it. |
Thank you, @KnisterPeter ! I'll dig into that and see what I can find. In terms of the GitHub extension from Microsoft, I run into a similar issue where the extension doesn't seem to load. Interestingly enough, even though my remotes are HTTPS, it's asking about .ssh config.
I'll let you know what I find on your extensions this week. :-). |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Using the same steps listed in issue #395, this is what I'm seeing when accessing our GitHub Enterprise instance.
VSCode: 1.29.1
VSCode-GitHub extension: .30.1
Originally posted by @thetaylormcrae in https://github.com/KnisterPeter/vscode-github/issue_comments#issuecomment-445512014
The text was updated successfully, but these errors were encountered: