Page 1 of 1

[SOLVED] Proxy error accessing the repository

Published: June 18, 2018 - 11:46
by root2.0
Hello everyone,
I'm new to the forum. I was using version 1.13 until now, and I've upgraded to 1.15.
My problem is that I can no longer access the main repository. In version 1.13, you could search and find all the packages.
In advanced preferences, the proxy (http://proxy.lan.fr:2121) doesn't require authentication.
I've checked "Enable proxy for access to the main repository.

" When I go to "Private Repository," then "Import from Internet," and search
without a proxy, it asks me for "Repository settings." In version 1.13, we didn't have to fill anything in
with the proxy. I get the error: "An unhandled exception has occurred realTimeout HTTPConnectionPool(host='proxy.lan.fr'port=2121): read timed out. (read timeout=2)."
The proxy hasn't changed since then; it worked fine in version 1.13.
Thank you.

Re: Proxy error accessing the repository

Published: June 18, 2018 - 12:49
by htouvet
The default 2-second timeout for repository access is likely too short for your infrastructure.
Any timeout settings in wapt-get.ini are not being applied due to a bug.

To work around this, simply modify the value in the file c:\program files(x86)\wapt\waptpackage.py on line 2288:

def __init__(self,url=None,name='',verify_cert=None,http_proxy=None,timeout=20.0, cabundle=None,config=None):

Re: Proxy error accessing the repository

Published: June 18, 2018 - 1:58 PM
by root2.0
Hi,
thanks, I changed the line, the error is gone. However, I'm still getting the "repository settings" request.
What should I enter?
Before, we didn't have to enter anything; it would retrieve it directly from the repository.
Thanks.

Re: Proxy error accessing the repository

Published: June 18, 2018 - 2:37 PM
by htouvet
For the Tranquil IT repository and if your proxy is proxy.lan.fr who is listening on port 2121

Code: Select all

Nom du dépôt : store
Dépôt externe de paquets : https://store.wapt.fr/wapt
Proxy http à utiliser : http://proxy.lan.fr:2121

Re: Proxy error accessing the repository

Published: June 18, 2018 - 2:41 PM
by root2.0
That's awesome, it still works, thank you!