request ( File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/requests/sessions.py", line 542, in request resp = self. _request ( "POST", path, None, body ) File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/tuya_iot/openapi.py", line 257, in _request response = self. post ( File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/tuya_iot/openapi.py", line 307, in post return self. #Python error errno 110 connection timed out passwordconnect ( username, password ) File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/tuya_iot/openapi.py", line 191, in connect response = self. 0 / iot - 03 / users / login ( Caused by NewConnectionError ( ': Failed to establish a new connection: Connection timed out' )) During handling of the above exception, another exception occurred : Traceback ( most recent call last ) : File "login.py", line 22, in login_tuya (, "xxxxx", "56", "xxxxxx" ) File "login.py", line 13, in login_tuya status = openapi. MaxRetryError : HTTPSConnectionPool ( host = '', port = 443 ) : Max retries exceeded with url : / v1. increment ( File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/urllib3/util/retry.py", line 574, in increment raise MaxRetryError ( _pool, url, error or ResponseError ( cause )) urllib3. urlopen ( File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen retries = retries. NewConnectionError : : Failed to establish a new connection : Connection timed out During handling of the above exception, another exception occurred : Traceback ( most recent call last ) : File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/requests/adapters.py", line 439, in send resp = conn. _new_conn () File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/urllib3/connection.py", line 186, in _new_conn raise NewConnectionError ( urllib3. connect () File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/urllib3/connection.py", line 358, in connect conn = self. _validate_conn ( conn ) File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/urllib3/connectionpool.py", line 1010, in _validate_conn conn. _make_request ( File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/urllib3/connectionpool.py", line 382, in _make_request self. connect ( sa ) TimeoutError : Connection timed out During handling of the above exception, another exception occurred : Traceback ( most recent call last ) : File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self. create_connection ( File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/urllib3/util/connection.py", line 96, in create_connection raise err File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/urllib3/util/connection.py", line 86, in create_connection sock. py Traceback ( most recent call last ) : File "/home/smarthomy/.virtualenvs/shaas_smarthomy/lib/python3.8/site-packages/urllib3/connection.py", line 174, in _new_conn conn = connection. ( shaas_smarthomy ) 13 : 06 ~/ shaas_smarthomy / functions_tuya $ python login.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |