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

`getaddrinfo failed` behind the proxy on Win10 #123

Closed marekkaczkowski closed 5 years ago

marekkaczkowski commented 5 years ago

Hey, I can't download gist with settings. Tried with http/s_proxy settings with no result. Can you please share more info about proxy configuration?

ERROR:Sync Settings.sync_settings.libs.logger:Can`t perform this action due to network errors. reason: HTTPSConnectionPool(host='api.github.com', port=443): Max retries exceeded with url: /gists/xxxxxxxxxxxxxxxxxx (Caused by NewConnectionError('<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x0000029042E21198>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed',))
Traceback (most recent call last):
  File "C:\Users\me\AppData\Roaming\SUBLIM~1\Packages\requests\all\requests\packages\urllib3\connection.py", line 141, in _new_conn
    (self.host, self.port), self.timeout, **extra_kw)
  File "C:\Users\me\AppData\Roaming\SUBLIM~1\Packages\requests\all\requests\packages\urllib3\util\connection.py", line 60, in create_connection
    for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):
socket.gaierror: [Errno 11001] getaddrinfo failed
mfuentesg commented 5 years ago

hey, can you paste here your Sync Settings.sublime-settings file content?

marekkaczkowski commented 5 years ago
{
    "access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "auto_upgrade": false,
    "gist_id": "25ec94537a089e30931e4eceb3fdd5f7",
    "included_files": [],
        "excluded_files":  []
}
mfuentesg commented 5 years ago

hey, try to use http(s)_proxy properties, to set the a proxy used by sync settings.


    "access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
    "auto_upgrade": false,
    "gist_id": "25ec94537a089e30931e4eceb3fdd5f7",
    "included_files": [],
    "excluded_files":  [],

    // proxy options
    "http_proxy": "",
    "https_proxy": ""
}
marekkaczkowski commented 5 years ago

Hey, added proxies (yes for https should be http proxy) but no differences. Same error socket.gaierror: [Errno 11001] getaddrinfo failed.

{
...
  "http_proxy": "http://user:pass@myproxy.net:8080",
  "https_proxy": "http://user:pass@myproxy.net:8080",
}

:bulb: TIP: For Package Control I don't have to setup proxies (I guess it uses env vars http_proxy and https_proxy).

marekkaczkowski commented 5 years ago

Windoze.. Got it!

env | grep proxy returned no results but http_proxy and https_proxy was defined in windows env vars (lolz).

Removed both env vars, added again http_proxy, https_proxy and voila! Works! :tada:

mfuentesg commented 5 years ago

happy to hear that, keep creating cool stuff.