iklein99 / homebridge-smartthings

This is a plugin to Homebridge to connect your Smartthings network into Apple Home Kit.
Apache License 2.0
150 stars 52 forks source link

Homebridge hangs and stops responding #257

Open yffud opened 1 month ago

yffud commented 1 month ago

https://github.com/iklein99/homebridge-smartthings/blob/44894ec3063e723e757fb4e1608eb9d39c32bb20/src/platform.ts#L73

If the code gets to this catch error it hangs the code and Homebridge until Homebridge is restarted.

Could there be a retry or continue logic here?

-- Issue logged with Homebridge https://github.com/homebridge/homebridge/issues/3615

Homebridge will stop responding to inputs from HomeKit until it is rebooted.

The last log messages before hanging will be something similar from the Smartthings Plugin

[5/14/2024, 4:33:14 AM] [Smartthings Plug (IK)] Error getting devices from Smartthings: Error: getaddrinfo EAI_AGAIN api.smartthings.com [5/14/2024, 4:33:14 AM] [Smartthings Plug (IK)] Could not load devices from Smartthings: undefined. Check your configuration

No more long messages after than until rebooted