Xenomes / Domoticz-TUYA-Plugin

Implements the special Tuya Home Assistant API.
22 stars 8 forks source link

Error in log: Tuya: handleThread:('Connection aborted.' #46

Closed lamama1234 closed 1 year ago

lamama1234 commented 1 year ago

I'm getting periodic log timeout errors. My tuya device does work properly however I wish to eliminate those errors.

2023-05-23 21:51:49.600 Error: Tuya: handleThread: ('Connection aborted.', TimeoutError(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', None, 10060, None)) line 217
2023-05-24 10:39:39.610 Error: Tuya: handleThread: ('Connection aborted.', TimeoutError(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', None, 10060, None)) line 217
2023-05-24 12:37:39.612 Error: Tuya: handleThread: ('Connection aborted.', TimeoutError(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', None, 10060, None)) line 217
2023-05-24 12:37:49.568 Error: Tuya: handleThread: ('Connection aborted.', TimeoutError(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', None, 10060, None)) line 217
2023-05-24 20:25:49.639 Error: Tuya: handleThread: ('Connection aborted.', TimeoutError(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', None, 10060, None)) line 217
2023-05-24 20:25:59.580 Error: Tuya: handleThread: ('Connection aborted.', TimeoutError(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', None, 10060, None)) line 217
2023-05-24 21:25:39.607 Error: Tuya: handleThread: ('Connection aborted.', TimeoutError(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', None, 10060, None)) line 217
2023-05-24 21:26:59.616 Error: Tuya: handleThread: ('Connection aborted.', TimeoutError(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', None, 10060, None)) line 217
2023-05-24 22:26:39.639 Error: Tuya: handleThread: ('Connection aborted.', TimeoutError(10060, 'A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond', None, 10060, None)) line 217

As far as I know my Internet connection is stable. Can I extend the timeout duration somehow?

Running Domoticz 2023.1 stable, Python 3.8, Win7, Smart Life

Xenomes commented 1 year ago

This is a unknown error for me. try to disable the plugin for 10 min and than enable again.

lamama1234 commented 1 year ago

Disabling and enabling does help but only for a short while. After a few hours I keep getting the error. Is there any way of extending the connection timeout duration? Or catch a failed connection w/o invoking an error? Tnx

Xenomes commented 1 year ago

maybe you got the same issue as a #37 try downgrade requests to 2.23.0

Xenomes commented 1 year ago

Closed due to no response.