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

Add a means of tracking data parse errors for a device #288

Open
timcowlishaw opened this issue Dec 13, 2023 · 1 comment
Open

Add a means of tracking data parse errors for a device #288

timcowlishaw opened this issue Dec 13, 2023 · 1 comment

Comments

@timcowlishaw
Copy link
Contributor

We have a recurring, but intermittent error where some devices send malformed payloads which cause errors on ingest (eg: This sentry error).

These can be fixed in a firmware release, but we need to be able to inform users that their device is 'unhealthy' and that they should upgrade the firmware.

Therefore, we should catch these errors in the mqtt parser, and create some sort of 'device health status' flag on devices, which gets set when a malformed packet is received.

We could even capture the errors themselves, and store a 'device error log' in the db for debugging

@timcowlishaw
Copy link
Contributor Author

Also send a (rate-limited) email to the owner advising them to upgrade their firmware. This should also be sent for the existing users whose devices are causing these errors.

This was referenced Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants