Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix timeout error by rate-limiting HTTP requests #254

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

searls
Copy link

@searls searls commented Nov 22, 2023

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

…e with X simultaneous requests

I have 10 devices and now I am seeing all the requests complete successfully in a period of ~8 or so seconds (not tripping the timeout) by spacing out enough time. Perhaps the Bond Pro is overwhelmed and can only accept a small number of concurrent HTTP connections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error: "timeout of 10000ms exceeded"
1 participant