• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

error: pythonmod: python error: UnicodeDecodeError: 'utf-8' codec can't decode byte 0xae

Scheduled Pinned Locked Moved pfBlockerNG
2 Posts 1 Posters 362 Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O
    OffstageRoller
    last edited by OffstageRoller Mar 22, 2024, 5:40 PM Mar 22, 2024, 5:33 PM

    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 a TLD Inclusion option, but the errors are still happening even after disabling top1m 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:
    9acc326e-5f65-4ae1-b16b-3bccb725d0f0-image.png

    pfSense version: 23.09.1
    pfBlocker version: 3.2.0_7
    pfBlocker DNSBL Mode: Unbound python mode
    pfBlocker Wildcard Blocking (TLD): Unchecked

    O 1 Reply Last reply Apr 28, 2024, 8:10 PM Reply Quote 0
    • O
      OffstageRoller @OffstageRoller
      last edited by Apr 28, 2024, 8:10 PM

      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

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
        This community forum collects and processes your personal information.
        consent.not_received