Skip to content

Error connecting: name resolution #2

@mikecarr

Description

@mikecarr

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions