prometheus_flask_exporter icon indicating copy to clipboard operation
prometheus_flask_exporter copied to clipboard

Multiprocess application sometimes throwing UnicodeDecodeError

Open Velan987 opened this issue 2 years ago • 1 comments

Hi I have multiprocess enabled application, sometimes it is throwing below error File "usr/local/lib/python3.8/site-packages/prometheus_client/mmap_dict.py", line 44, in _read_all_values yield encoded_key.decode('utf-8'), value, pos UnicodeDecodeError: 'utf-8' codec can't decode byte 0xf0 in position 18: invalid continuation byte.

After this error my application is crashed. Can someone please help me on this?

Velan987 avatar Dec 09 '22 09:12 Velan987

As this is coming from the prometheus_client package, I'd ask there first, if you haven't done so already.

rycus86 avatar Dec 09 '22 09:12 rycus86