timmo001 / ovoenergy

Get energy data from OVO's API.
https://timmo.dev
Apache License 2.0
30 stars 16 forks source link

Incorrect auth or account ID causes 429 rate limit #91

Open atharvai opened 1 month ago

atharvai commented 1 month ago

Any misconfiguration for account ID or authentication causes a rapid retry loop due to loop.run_until_complete method being used. This causes OVO's Cloudflare isntance to rate limit and block the client IP. This affects the website login via browser too.

How can the retry loop be controlled with a delay? is there a config I'm missing?

Thanks Atharva