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

Exscript.protocols.exception.TimeoutException: Error while waiting for response from device #239

Open
Faerie1999 opened this issue Apr 29, 2024 · 1 comment

Comments

@Faerie1999
Copy link

hi, with following code,I get the error timeout:

conn = Telnet()
conn.connect(ip, port)
conn.login(read_login())
conn.execute('uname -a')

but using terminal,input telnet ip port,I can remote control the device.why?

Traceback (most recent call last):
File "/Users/admin/docker/k8s_jenkins/SmartAPI/.venv/lib/python3.12/site-packages/Exscript/protocols/protocol.py", line 769, in _app_authenticate
index, match = self._waitfor(prompt_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/admin/docker/k8s_jenkins/SmartAPI/.venv/lib/python3.12/site-packages/Exscript/protocols/protocol.py", line 986, in _waitfor
result = self._domatch(re_list, False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/admin/docker/k8s_jenkins/SmartAPI/.venv/lib/python3.12/site-packages/Exscript/protocols/telnet.py", line 99, in _domatch
raise TimeoutException(error)
Exscript.protocols.exception.TimeoutException: Error while waiting for response from device

@Faerie1999
Copy link
Author

i set timeout=20,still report the error.

generic: Attempting to authenticate admin.
generic: Attempting to app-authenticate admin.
shell: Protocol: driver replaced: generic -> shell
shell: Protocol.app_authenticate(): driver replaced
shell: Username prompt 1 received.
shell: Cleartext password prompt received.
Traceback (most recent call last):
File "/Users/admin/docker/k8s_jenkins/SmartAPI/.venv/lib/python3.12/site-packages/Exscript/protocols/protocol.py", line 769, in _app_authenticate
index, match = self._waitfor(prompt_list)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/admin/docker/k8s_jenkins/SmartAPI/.venv/lib/python3.12/site-packages/Exscript/protocols/protocol.py", line 986, in _waitfor
result = self._domatch(re_list, False)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/admin/docker/k8s_jenkins/SmartAPI/.venv/lib/python3.12/site-packages/Exscript/protocols/telnet.py", line 99, in _domatch
raise TimeoutException(error)
Exscript.protocols.exception.TimeoutException: Error while waiting for response from device

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