error: pythonmod: python error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xae
-
I recently got Graylog up and running, and I now noticed that I'm getting a bunch of these errors reported by Unbound in my logs:
[99157:3] error: pythonmod: Exception occurred in function operate, event: module_event_new
[99157:3] error: pythonmod: python error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xae in position 1: invalid start byte The above exception was the direct cause of the following exception: Traceback (most recent call last): File "pfb_unbound.py", line 1410, in operate tld = get_tld(qstate) ^^^^^^^^^^^^^^^ File "pfb_unbound.py", line 584, in get_tld if qstate and qstate.qinfo and len(qstate.qinfo.qname_list) > 1: ^^^^^^^^^^^^^^^^^^^^^^^ SystemError: <built-in function _get_qname_components> returned a result with an exception set
I thought this might be related to the
top1m
feature since that has aTLD Inclusion
option, but the errors are still happening even after disablingtop1m
and force reloading all my rules.Here is a screenshot showing the frequency of the error showing up in my logs over the last 24 hours:
pfSense version: 23.09.1
pfBlocker version: 3.2.0_7
pfBlocker DNSBL Mode: Unbound python mode
pfBlocker Wildcard Blocking (TLD): Unchecked -
Just an update that I'm still getting errors multiple times per day on the latest pfSense 24.03_1.
I get this error:
[87931:3] error: pythonmod: Exception occurred in function operate, event: module_event_new
Followed by this error:
[87931:3] error: pythonmod: python error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xa6 in position 1: invalid start byte The above exception was the direct cause of the following exception: Traceback (most recent call last): File "pfb_unbound.py", line 1410, in operate tld = get_tld(qstate) ^^^^^^^^^^^^^^^ File "pfb_unbound.py", line 584, in get_tld if qstate and qstate.qinfo and len(qstate.qinfo.qname_list) > 1: ^^^^^^^^^^^^^^^^^^^^^^^ SystemError: <built-in function _get_qname_components> returned a result with an exception set