[SOLVED] http_proxy: get() takes exactly 3 arguments (4 given)
Published: June 9, 2021 - 7:46 PM
Good morning,
We noticed today that all of our workstations behind a proxy were no longer communicating with the WAPT server.
After many hours of research, it seems we have understood the problem.
The WAPT service was down on the workstations with this error:

We looked at the code in common.py and found a difference between two versions:
1.8.2
1.7.4
I noticed that we're calling the `config.get` function with an empty argument. I don't know if that's the cause of the problem...
After downgrading the agent version on the machine, we were able to regain control of it.
Is this a known issue on your end?
Thanks in advance.
We noticed today that all of our workstations behind a proxy were no longer communicating with the WAPT server.
After many hours of research, it seems we have understood the problem.
The WAPT service was down on the workstations with this error:

We looked at the code in common.py and found a difference between two versions:
1.8.2
Code: Select all
if config.has_option(section,'use_http_proxy_for_server') and config.getboolean(section,'use_http_proxy_for_server'):
if config.has_option(section,'http_proxy'):
self.proxies = {'http':config.get(section,'http_proxy',''),'https':config.get(section,'http_proxy','')}
else:
self.proxies = {'http':'','https':''}
else:
self.proxies = {'http':'','https':''}
Code: Select all
self.use_kerberos = config.getboolean(section,'use_kerberos')
if config.has_option(section,'use_http_proxy_for_server') and config.getboolean(section,'use_http_proxy_for_server'):
if config.has_option(section,'http_proxy'):
self.proxies = {'http':config.get(section,'http_proxy'),'https':config.get(section,'http_proxy')}
else:
self.proxies = None
After downgrading the agent version on the machine, we were able to regain control of it.
Is this a known issue on your end?
Thanks in advance.