daq-tools / kotori

A flexible data historian based on InfluxDB, Grafana, MQTT, and more. Free, open, simple.
https://getkotori.org/
GNU Affero General Public License v3.0
107 stars 17 forks source link

Error channel reports `'NoneType' object has no attribute 'endswith'` #128

Open amotl opened 1 year ago

amotl commented 1 year ago

Hi there,

lovely users of Kotori just reported this message observed on the MQTT error topic error.json. The error message could be improved, to let users diagnose the problem better.

basic/foo/test/EnvR//error.json {
    "type": "<class 'AttributeError'>",
    "message": "'NoneType' object has no attribute 'endswith'",
    "description": "Error processing MQTT message \"b'{\"time\" : \"2023-03-03 23:39:30\", \"model\" : \"ACME Foo\", \"dev_id\" : 77, \"power0\" : 125, \"power1\" : 5109, \"power2\" : 4992}'\" from topic \"basic/foo/test/EnvR/\".",
    "timestamp": "2023-03-03T22:39:30+00:00"
}

With kind regards, Andreas.

References