aarons22 / homebridge-bond

Homebridge plugin for Bond
MIT License
64 stars 31 forks source link

Fix timeout error by rate-limiting HTTP requests #254

Open searls opened 1 year ago

searls commented 1 year ago

Introduce the axios-rate-limit package to slow down initial requests long enough that the Bond Pro bridge does not become overwhelmed. Tested that this works fine locally and on my homebridge server.

Unsure what the right simultaneous request limit and time limit is, but this was enough to avoid 10 second timeouts and get the devices to once again be responsive in the Home app.

Fixes #201