mfuentesg / SyncSettings

Sync Settings - The cross-platform solution to keep Sublime Text configuration synchronized
https://mfuentesg.dev/SyncSettings
MIT License
288 stars 38 forks source link

False internet connection issue #99

Closed brian-k closed 5 years ago

brian-k commented 6 years ago

I'm receiving an error from Sync Settings stating I have a problem with my internet connection, and therefore cannot upload/download my gist. Sync Settings has worked well for me since 2015, so this is a new issue. Package Control in Sublime Text 3 and everything else works fine when accessing the Internet. The log for Sync Settings is empty.

I've tried to diagnose the issue, but I have been unable to find any more information or cause other than the error Apparently you are having problems with the internet connection.

markuskonojacki commented 6 years ago

Got the same issue. But only behind our corporate firewall. It worked in the past but they changed something. (I think someting about the handling of encrypted traffic) The thing is, settings sync for VS Code works flawlessly from here still. (https://github.com/shanalikhan/code-settings-sync)

Maybe this can help figure it out.

brian-k commented 6 years ago

I don't have problems with VS Code, but I think that sync extension is from another author. I am not behind a corporate firewall and the issue occurs regardless of the type of connection (home, corporate, tethered phone).

markuskonojacki commented 6 years ago

The hint with the VS Code extension was more meant for the developers of this sync solution here. There could be a problem with how the github api is implemented or something like that.

But maybe the problems are not related after all. Under normal home-like circumstances it works perfectly fine for me.

markuskonojacki commented 6 years ago

I've tried myself in debugging this plugin and at least my issue is "solved". It is indeed the certificate.

settings_syn

If one would like to ignore the certificates he could change: response = requests.get(...) to response = requests.get(..., verify=False) in Sync Settings\sync_settings\gist_api.py There should be 4 occurrences.

That quick&dirty fix should make it work. But I would strongly advice against it.

But maybe adding the code you see in the screenshot could help you figuring out your problem @brian-k. (you'd need to add import sublime at the top of the file)