-
Notifications
You must be signed in to change notification settings - Fork 17
Open
Description
When running a python app from init.d I was getting connection errors and there seems to be no way of setting retries.
I eventually added some error handling retry login in my code, although not the best, it works
for i in range(0,50):
while True:
try:
api = VesyncApi("username","mysupersecretpassword")
except:
time.sleep(2)
logger.error("connection failure, retrying....")
continue
break
Error
vesync[418]: requests.exceptions.ConnectionError: HTTPSConnectionPool(host='smartapi.vesync.com', port=443): Max retries exceeded with url: /vold/user/login (Caused by NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x762fb970>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution',))
Metadata
Metadata
Assignees
Labels
No labels