-
Notifications
You must be signed in to change notification settings - Fork 21
Error 429 – Too Many Requests #165
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
Comments
There is a limit on how frequent requests can be sent to Zaptec cloud. For many chargers, the polling interval (default 60 seconds) must be reduces. See #158 |
How long intervals did you test with? When you get 429 Too many requests its the Zaptec cloud that refuses to deliver data. The only real fix to this would be to reduce the request frequency, as we have no control over the limits which Zaptec enforce on their interfaces. Are you able to dump the diagnostics? See the front page readme for a description how. |
Hello, Zaptec is here. We do have a rate limit of 10 requests per second per user. There is a high chance the frequency of the requests is too high. We do recommend doing two things:
https://pypi.org/project/retry/ Is a good library that has built in policies. |
Maintainer here. Thank you @thecoldwine, I will take a look at this. A wish from me were that more services and datapoints were updated via the push mechanism (ServiceBus). It would reduce the need for continuous and regular polling. That would in turn decrease the latencies for the user and lessen the request load on Zaptec cloud. My 2 cents. |
@sveinse we are looking into enabling a lightweight push mechanism for non-enterprise customers (we do have Service Bus for enterprise / b2b integrations). I have no details to share on a specific technology or timelines, but it is definitely on our radar. |
There is already exponential and jitter implemented in the code. But it only does this when a request fails. So with this in mind, is there anything that's missing? zaptec/custom_components/zaptec/api.py Lines 892 to 899 in 6734c36
|
@sveinse if it retries on 429 it is enough. |
Hello,
I am encountering an issue with the Zaptec integration for Home Assistant. An error message appears: "Error 429 – Too Many Requests." We have 16 charging stations in the installation, and synchronization is being refused. Do you have a solution?
Thank you
David
The text was updated successfully, but these errors were encountered: