Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PyEZ timeout issue #150

Open
akankshyadas opened this issue Apr 13, 2022 · 0 comments
Open

PyEZ timeout issue #150

akankshyadas opened this issue Apr 13, 2022 · 0 comments

Comments

@akankshyadas
Copy link

Description of Issue

salt "vmx1" junos.cli 'show version' format=text dev_timeout=30 dest=/tmp/cli1.txt --out=yaml
[ERROR ] Unhandled exception running status.proxy_reconnect
Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/junos_eznc-2.6.3+14.g9b6a706.dirty-py3.6.egg/jnpr/junos/device.py", line 228, in timeout
self._conn.timeout = int(value)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/junos_eznc-2.6.3+14.g9b6a706.dirty-py3.6.egg/jnpr/junos/decorators.py", line 24, in wrapper
dev.timeout = restore_timeout
File "/usr/local/lib/python3.6/dist-packages/junos_eznc-2.6.3+14.g9b6a706.dirty-py3.6.egg/jnpr/junos/device.py", line 231, in timeout
"could not convert timeout value of %s to an " "integer" % (value)
RuntimeError: could not convert timeout value of None to an integer

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/lib/python3.6/dist-packages/junos_eznc-2.6.3+14.g9b6a706.dirty-py3.6.egg/jnpr/junos/device.py", line 228, in timeout
self._conn.timeout = int(value)
TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/utils/schedule.py", line 843, in handle_func
ret["return"] = self.functions[func](*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 1241, in call
return self.loader.run(run_func, *args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2274, in run
return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs)
File "/usr/lib/python3/dist-packages/contextvars/init.py", line 38, in run
return callable(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/loader.py", line 2289, in _run_as
return _func_or_method(*args, **kwargs)
File "/usr/lib/python3/dist-packages/salt/modules/status.py", line 1805, in proxy_reconnect
is_alive = proxyproxy_keepalive_fn
File "/usr/lib/python3/dist-packages/salt/loader.py", line 1241, in call

Screenshot 2022-04-13 at 12 06 09 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant