Open cniekel opened 5 months ago
Hey there @fabaff, @miaucl, mind taking a look at this issue as it has been labeled with an integration (swiss_public_transport
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
swiss_public_transport documentation swiss_public_transport source (message by IssueLinks)
You mean you reached your quota and then you restarted the. Integration? Because when you reach it while the integration is running, it should not be this messy.
I agree that it should also not be this messy in you usecase :)
Will have a look at it if I can reproduce that.
I did the update to 2024.6 today, so there was definitely some restarting. No idea if I hit the quota limit before the update already.
On Sat, Jun 8, 2024 at 3:59 PM Cyrill Raccaud @.***> wrote:
You mean you reached your quota and then you restarted the. Integration? Because when you reach it while the integration is running, it should not be this messy.
I agree that it should also not be this messy in you usecase :)
Will have a look at it if I can reproduce that.
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/119137#issuecomment-2156047014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAJXRZE3LFK6CNESRHN5JDZGME3BAVCNFSM6AAAAABJAAE2DSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGA2DOMBRGQ . You are receiving this because you authored the thread.Message ID: @.***>
Sorry, please disregard
Op za 8 jun 2024 19:56 schreef Chris Niekel @.***>:
Du wurdest eingeladen zum Rätsel lösen mit Freunden. Klicke den folgenden Link um dem Spiel beizutreten. Der Link ist für eine Stunde gültig:
Anleitung zum Rätsel: Verwende die Tastatur deines Gerätes um Wörter oder einzelne Buchstaben in das Rätselgitter einzutragen. Klicke dazu in das gewünschte Antwort-Feld. Durch erneutes Klicken in das Feld kann die Schreibrichtung (horizontal / vertikal) geändert werden. Umlaute müssen ausgeschrieben werden.
Op za 8 jun 2024 16:25 schreef Chris Niekel @.***>:
I did the update to 2024.6 today, so there was definitely some restarting. No idea if I hit the quota limit before the update already.
On Sat, Jun 8, 2024 at 3:59 PM Cyrill Raccaud @.***> wrote:
You mean you reached your quota and then you restarted the. Integration? Because when you reach it while the integration is running, it should not be this messy.
I agree that it should also not be this messy in you usecase :)
Will have a look at it if I can reproduce that.
— Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/119137#issuecomment-2156047014, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAJXRZE3LFK6CNESRHN5JDZGME3BAVCNFSM6AAAAABJAAE2DSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJWGA2DOMBRGQ . You are receiving this because you authored the thread.Message ID: @.***>
The number of requests per day is limited to 1000 route queries and 10080 departure/arrival tables
First time I hear that a person reached the limit.
The traceback seems to come from the template handling as there is no data to process.
I reach it quite easily. If you do a request each minute you reach it. 60*24=1440 requests per day.
If you do a request each minute you reach it. 60*24=1440 requests per day.
The interval is set to 90 s to not hammer the API.
If you do a request each minute you reach it. 60*24=1440 requests per day.
The interval is set to 90 s to not hammer the API.
Yes, and when using multiple sensors, it is recommended to disable the default polling and create an automation and call the update function of the sensor only when needed. For example only in the morning and evening, etc. This is also stated in the documentation.
@cniekel Coming back to your problem, the logs you show state message='Too Many Requests'
and the stack trace afterwards is because of your template sensor. Is that correct? If yes, I would close this issue as the stacktrace how nothing directly to do with the integration but rather your template.
You would just like a better message in the UI, is that so?
This #123030 might give you a better message also in the UI.
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
The problem
Apparently, I'm over my daily quota with swiss_public_transport plugin.
The UI shows "Failed setup, will retry: Timeout while connecting for entry A B"
(I have 3 connections setup, this is printed for each of them)
I think it would be nicer if the UI would show the "Too Many Requests" message.
The log ends up with entries like:
What version of Home Assistant Core has the issue?
core-2024.6.1
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
swiss public transport
Link to integration documentation on our website
https://www.home-assistant.io/integrations/swiss_public_transport/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
No response