Skip to content

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

@amotl

Description

@amotl

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions