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

[netatmo] Request storm leads to MAXIMUM_USAGE_REACHED #17478

Closed
clinique opened this issue Sep 28, 2024 · 1 comment · Fixed by #17484
Closed

[netatmo] Request storm leads to MAXIMUM_USAGE_REACHED #17478

clinique opened this issue Sep 28, 2024 · 1 comment · Fixed by #17484
Assignees
Labels
bug An unexpected problem or unintended behavior of an add-on

Comments

@clinique
Copy link
Contributor

I identified that upon start my Netatmo system ramps-up very quick to ~ 65 requests in a short period of time. I guess this conflicts with the 50 requests / 10 seconds leading to MAXIMUM_USAGE_REACHED.

Having disabled everything, as soon as I enable a Security or Control child (welcome or plug in my case) requests starts to burst very quickly. This will have to be studied - the culprit seems to be around getevents:

2024-09-28 14:11:30.385 [DEBUG] [l.handler.capability.CacheCapability] - HomeCapability requesting fresh data for netatmo:home:1:1
2024-09-28 14:11:30.386 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/homesdata?home_id=59959297b4809d1aff8b4726 
2024-09-28 14:11:30.540 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/homestatus?home_id=59959297b4809d1aff8b4726 
2024-09-28 14:11:30.647 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/homesdata?home_id=60be3f90fcb4a02d086ea475 
2024-09-28 14:11:30.884 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/homestatus?home_id=60be3f90fcb4a02d086ea475 
2024-09-28 14:11:31.222 [DEBUG] [handler.capability.RefreshCapability] - 'netatmo:home:1:1' next refresh in PT3M
2024-09-28 14:12:33.600 [DEBUG] [tatmo.internal.handler.DeviceHandler] - Initializing handler for bridge netatmo:plug:1:1
2024-09-28 14:12:35.594 [DEBUG] [er.capability.ParentUpdateCapability] - Requesting parents data update for Thing 'netatmo:plug:1:1'
2024-09-28 14:12:35.595 [DEBUG] [handler.capability.RefreshCapability] - 'netatmo:home:1:1' next refresh in PT2S
2024-09-28 14:12:35.601 [DEBUG] [er.capability.ParentUpdateCapability] - Requesting parents data update for Thing 'netatmo:plug:1:1'
2024-09-28 14:12:37.595 [DEBUG] [l.handler.capability.CacheCapability] - HomeCapability requesting fresh data for netatmo:home:1:1
2024-09-28 14:12:37.596 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/homestatus?home_id=59959297b4809d1aff8b4726 
2024-09-28 14:12:37.761 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/homestatus?home_id=60be3f90fcb4a02d086ea475 
2024-09-28 14:12:38.111 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475 
2024-09-28 14:12:38.207 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f7befcbdc02ebed30753be 
2024-09-28 14:12:38.309 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f72244c6b9944f320fb004 
2024-09-28 14:12:38.409 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f6cb6a79e82186ce0a65d2 
2024-09-28 14:12:38.538 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f69b9cae1bf9947d02f3ad 
2024-09-28 14:12:38.675 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f6779743fe0f788201295f 
2024-09-28 14:12:38.935 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f63aa0b485741fe508da2f 
2024-09-28 14:12:39.138 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f59be63d5ff3d343027aec 
2024-09-28 14:12:39.240 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f57edf8b0bc82d52068226 
2024-09-28 14:12:39.343 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f50a50357cc3a5ad0652ed 
2024-09-28 14:12:39.487 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f4ee3a79368dbe150090f9 
2024-09-28 14:12:39.763 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f4397f3aea0f786b00e576 
2024-09-28 14:12:40.032 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f3f8b604f21b25500f0744 
2024-09-28 14:12:40.270 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f3a16a50f29f26b60685d4 
2024-09-28 14:12:40.386 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f2d2edb4f936dfc7024e03 
2024-09-28 14:12:40.549 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f271e31e45b3da0b0567c9 
2024-09-28 14:12:40.763 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f1aa18993715681e07a5fb 
2024-09-28 14:12:40.914 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f168730c9aec1f7ed69765 
2024-09-28 14:12:41.071 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f10be0ad35233ab80ed57f 
2024-09-28 14:12:41.444 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:41.547 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:41.840 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:41.909 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:41.969 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:42.090 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:42.175 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:42.297 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:42.466 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:42.549 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:42.628 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:42.686 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:42.834 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:42.935 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.030 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.104 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.166 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.235 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.303 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.371 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.471 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.566 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.633 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.695 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.784 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.858 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:43.953 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:44.033 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:44.105 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:44.181 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:44.269 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:44.348 [DEBUG] [mo.internal.handler.ApiBridgeHandler] - executeUri GET  https://api.netatmo.com/api/getevents?home_id=60be3f90fcb4a02d086ea475&event_id=66f0f75e22137c82a60c26f2 
2024-09-28 14:12:44.405 [WARN ] [andler.capability.SecurityCapability] - Error retrieving last events for home '60be3f90fcb4a02d086ea475' : Rest call failed: statusCode=MAXIMUM_USAGE_REACHED, message=User usage reached

Here we can observe that event 66f0f75e22137c82a60c26f2 is requested 32 times before leading to MAXIMUM_USAGE_REACHED

@clinique clinique added the bug An unexpected problem or unintended behavior of an add-on label Sep 28, 2024
@clinique clinique self-assigned this Sep 28, 2024
@clinique
Copy link
Contributor Author

clinique commented Sep 28, 2024

Mmmm...wondering if this is not a side effect of #17448

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An unexpected problem or unintended behavior of an add-on
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant