Code-settings-sync: Internet Not Connected or Unable to Connect to GitHub. Exception Logged in Console

Created on 21 Mar 2019  ยท  11Comments  ยท  Source: shanalikhan/code-settings-sync

๐Ÿ› Describe the bug
Getting this message: Internet Not Connected or Unable to Connect to GitHub. Exception Logged in Console

๐ŸŒด Visual Studio Code Version : 1.32.3 (user setup)
๐ŸŒด Code Settings Sync Version : 3.2.6 and 3.2.7
๐ŸŒด Standard or Insiders : N/A
๐ŸŒด OSS or Portable : N/A
๐ŸŒด Operating System : Windows 10 x64
๐ŸŒด Occurs On: Any
๐ŸŒด Proxy Enabled: No
๐ŸŒด Gist Id: a5f80e27e471936379a4925f173b78b1

๐Ÿ“ฐ To Reproduce
Steps to reproduce the behavior:

  1. Sync : Reset Extension Settings
  2. Sync : Update / Upload Settings
  3. [I enter my personal access token]
  4. Get error on status line: Internet Not Connected or Unable to Connect to GitHub. Exception Logged in Console

๐Ÿ’ช Expected behavior
Settings should upload.

๐Ÿ“บ Additional context
This was working previously, but not sure exactly when it stopped working.

Most helpful comment

Interesting. I uninstalled and reinstalled the VS Code win-ca extension and this seems to have fixed it on one machine.

I will try this on the other machines and report back and possibly close this issue.

All 11 comments

The following steps should help:

  1. Install previous versions of code-settings-sync
  2. Generate new token with gist scope selected
  3. Go to F1 โ†’ Sync: Advanced Options โ†’ Sync: Edit Extension Local Settings
  4. Fill token parameter with new token
  5. Save changes
  6. Install last version of code-settings-sync

Exception Logged in Console

Whats the exception logged in console ?

Whats the exception logged in console ?

How do I find that? I tried:

  1. View -> Output
  2. Select drop-down and choose: Tasks, Extension, Git, Log (Extension Host), Log (Main), Log (Shared), and Log (Window).

None of these logs show any exceptions.

Created new personal access token and gist.

Disabled extension auto-update and installed 3.2.5. Sync working again.

If I upgrade to 3.2.6 or 3.2.7, I get the error message again.

3.2.6 and newer give the error, and I can't find the actual exception message anywhere in logs.

How do I find that?

help Menu > Toogle Developer Tools - Console.

Actually Settings Sync disabling all the SSL certificates in 3.2.5 and its fixed now. Before saying anything, lets see whats logged in console

Ah, that's it - a certificate error:

console.ts:134 [Extension Host] HttpError: request to https://api.github.com/gists/gistid failed, reason: self signed certificate in certificate chain
at module.exports.e.exports.then.then.catch.t (C:\Users\username.vscode\extensions\shan.code-settings-sync-3.2.7\out\extension.js:7:1963)
at process._tickCallback (internal/process/next_tick.js:68:7)

Our organization requires a self-signed certificate in the chain for web filtering.

This certificate is present in the OS store. I only get this error in VSCode with this specific extension.

Please advise.

I agree that an extension should not disable certificate errors for all of VS code.

The VS Code page states that if the certificate is trusted by the OS, then Chromium should trust it also.

The certificate is trusted by my machine's OS (Windows 10).

Going to Github works fine in Chrome browser without any certificate errors or problems.

Tried launching code with --ignore-certificate-errors on the command line but this had no effect. (This option is not documented at the documentation page anyway.)

Please advise.

Interesting. I uninstalled and reinstalled the VS Code win-ca extension and this seems to have fixed it on one machine.

I will try this on the other machines and report back and possibly close this issue.

Yes this is the fix - the other machines that exhibited this issue were missing this extension. This is resolved.

Glad to know u fixed it. ๐Ÿ™‚

Get Outlook for iOShttps://aka.ms/o0ukef


From: Bill Stewart notifications@github.com
Sent: Monday, March 25, 2019 10:40:05 PM
To: shanalikhan/code-settings-sync
Cc: Shan Khan; Comment
Subject: Re: [shanalikhan/code-settings-sync] Internet Not Connected or Unable to Connect to GitHub. Exception Logged in Console (#802)

Closed #802https://github.com/shanalikhan/code-settings-sync/issues/802.

โ€”
You are receiving this because you commented.
Reply to this email directly, view it on GitHubhttps://github.com/shanalikhan/code-settings-sync/issues/802#event-2227357190, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AIXjnB82i5nt2l6QehR_i5_VOO3zuYO_ks5vaQn1gaJpZM4cCeYW.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mjbvz picture mjbvz  ยท  5Comments

toXel picture toXel  ยท  3Comments

UTexas80 picture UTexas80  ยท  5Comments

mklement0 picture mklement0  ยท  5Comments

axetroy picture axetroy  ยท  4Comments