Skip to content

UnicodeDecodeError in the Home Assistant log #22

Description

@jeroen8087

Describe the issue

After installing the add-on in Home Assistant I noticed continuous UnicodeDecodeError messages in the log.

Error log

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 1: invalid continuation byte Traceback (most recent call last): File "/app/hass_victron_mqtt_discovery/discovery.py", line 143, in on_victron_message payload = json.loads(msg.payload) ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/json/__init__.py", line 341, in loads s = s.decode(detect_encoding(s), 'surrogatepass') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Frequency

This error repeats approximately every second.

Question

Is this expected behavior, or is there something I can configure/change to avoid these decode errors?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions