pydio / pydio-sync

Python version of the Pydio synchronization client
https://pydio.com
GNU General Public License v3.0
82 stars 32 forks source link

Error while trying to load proxies.json file #147

Closed trisomeyr closed 8 years ago

trisomeyr commented 8 years ago

Hello everybody,

i tried to use pydiosync behind a proxy by creating a proxies.json file in the config folder with the following content

{ "http": "http://localhost:3128", "https": "http://localhost:3128" }

The log says me this:

2016-07-19 10:58:04 ERROR 9288 Dummy-1 logging : 1601 | error | string indices must be integers Traceback (most recent call last): File "C:\BuildAgent\work\a00136d723583ad3\build\pydio-agent\out01-PYZ.pyz\pydio.utils.global_config", line 91, in get_defined_proxies TypeError: string indices must be integers 2016-07-19 10:58:04 ERROR 9288 Dummy-1 logging : 1601 | error | Error while trying to load proxies.json file 2016-07-19 10:58:06 ERROR 9288 Dummy-1 logging : 1601 | error | ('Connection aborted.', gaierror(11004, 'getaddrinfo failed'))

What did i wrong?

Greetz, triso

jkirk commented 8 years ago

Hmm. 'getaddrinfo failed' indicates a name resolution problem. Can you try: http(s)://127.0.0.1:3128?

7omate commented 8 years ago

Looking at https://github.com/pydio/pydio-sync/blob/master/src/pydio/ui/web_api.py#L644 I'm not sure your proxy definition is properly understood by PydioSync. Plus it looks like you're defining an http proxy for https, I'm not convinced that'll work.

As a side note, the enterprise version of this tool as a GUI configuration helper. Using a proxy is one of the rare things we consider people should be paying for.