On 20/10/2014 10:49 PM, Philippe MARASSE wrote: > > The server is behind an Apache reverse proxy, and *must* use a proxy to > reach the Internet. > > Each time I try to synchronize, I have in error log : > [..snip..] > and tcpdump shows direct connection to 54.244.26.88 or 54.187.50.176 ?? > Direct, not through proxy although environment variables http_proxy, > https_proxy and no_proxy are correctly set.
The tokenserver uses the python "requests" library for its outgoing connections. According to the docs it should support proxies transparently via environment variables: http://docs.python-requests.org/en/latest/user/advanced/#proxies But it may be using e.g. slightly mismatched syntax with the ones you've set. To debug, you could try using the requests library directly from your syncserver virtualenv: $> ./local/bin/python Python 2.7.5 (default, Jun 26 2014, 11:55:39) >>> >>> import requests >>> >>> # Does it work using the standard shortcut? >>> requests.get("https://verifier.accounts.firefox.com") <Response [405]> >>> >>> s = requests.session() >>> s.get("https://verifier.accounts.firefox.com") <Response [405]> >>> Do both of these work for you as shown above? Cheers, Ryan _______________________________________________ Sync-dev mailing list [email protected] https://mail.mozilla.org/listinfo/sync-dev

