Error in log charset_normalizer

I have this error in my logs since a few days:

Logger: charset_normalizer
Source: /home/homeassistant/.pyenv/versions/3.9.9/lib/python3.9/site-packages/charset_normalizer/api.py:78
First occurred: 21 december 2021 06:52:22 (330 occurrences)
Last logged: 08:00:59

Encoding detection on empty bytes, assuming utf_8 intention.

What can I do to solve this error?

5 Likes

Same here.
Have you fixed it?

No, I don’t know what the error means.

I have the same output. I believe the charset_normalizer lib is deeply rooted in HA used to detect charset encoding. So probably used by device auto discovery, parsing XML, etc. I will try to enable debug logging for this lib, it is getting a bit annoying.

3 Likes

same here …

1 Like

I am running home-assistant core in a virtual environment and I get the same error. I have 56 repeats within a 14 hour period. The errors started after I upgraded from Python 3.8.5 to 3.9.7. in the virtual environment.

I’m having almost the same config: Home Assistant Core in a virtual Python environment version 3.9.9

Same here, HA core, Bullseye 64 bit, Python 3.9.2

Same with bullseye 32bit, Python 3.9.2. HA Core itself is running fine, but these errors are annoying.

I have a similar error but mine looks like

Logger: charset_normalizer
Source: /usr/local/lib/python3.9/site-packages/charset_normalizer/api.py:121
First occurred: 5:16:40 PM (1 occurrences)
Last logged: 5:16:40 PM

Trying to detect encoding from a tiny portion of (9) byte(s).

Mine occurs during the bootup. Has anyone tried raising an issue on GitHub?

I did some additional debug logging and the error seem to always come with during the MyQ cloud access??

Opened #65175