fablabbcn / smartcitizen-api

The Smart Citizen Engine
https://developer.smartcitizen.me
GNU Affero General Public License v3.0
10 stars 4 forks source link

JSON parsing error handling #251

Closed oscgonfer closed 7 months ago

oscgonfer commented 10 months ago

Improve JSON parsing error handling and logging in case of corrupt JSON payloads from MQTT:

https://github.com/fablabbcn/smartcitizen-api/blob/master/app/lib/mqtt_messages_handler.rb#L23

sentry-io[bot] commented 10 months ago

Sentry issue: SC-API-B7

oscgonfer commented 7 months ago

This error comes from invalid unicode characters sent by the device - normally from an old firmware version. We are thinking to add a better user feedback, so that they can update the firmware and we are tracking this on #288 and #238