You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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',))
@mikecarr the error indicates this was a problem with either your DNS config, or perhaps, on vesync's end. That domain resolves correctly from global recursors like 4.2.2.2. At any rate, this wouldn't be something that this project could fix, unfortunately.
Activity
jimbocoder commentedon Jan 31, 2018
@mikecarr the error indicates this was a problem with either your DNS config, or perhaps, on vesync's end. That domain resolves correctly from global recursors like 4.2.2.2. At any rate, this wouldn't be something that this project could fix, unfortunately.