[GH-ISSUE #7] UnicodeDecodeError: 'ascii' codec can't decode byte #9

Closed
opened 2026-03-02 23:35:57 +03:00 by kerem · 2 comments
Owner

Originally created by @SonuKhanPK on GitHub (Jun 6, 2021).
Original GitHub issue: https://github.com/alb-uss/SECMON/issues/7

Originally assigned to: @alb-uss on GitHub.

[Sun Jun 06 11:41:17.411550 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] ################## NEW GUI ERROR AT 06/06/2021, 11:41:17 ##################
[Sun Jun 06 11:41:17.411729 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] ######## URL : http://192.168.244.140/tasks ##########
[Sun Jun 06 11:41:17.415130 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] Traceback (most recent call last):
[Sun Jun 06 11:41:17.415169 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1950, in full_dispatch_request
[Sun Jun 06 11:41:17.415174 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] rv = self.dispatch_request()
[Sun Jun 06 11:41:17.415180 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1936, in dispatch_request
[Sun Jun 06 11:41:17.415184 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] return self.view_functionsrule.endpoint
[Sun Jun 06 11:41:17.415189 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/usr/local/lib/python3.8/dist-packages/flask_simplelogin/init.py", line 117, in simple_decorator
[Sun Jun 06 11:41:17.415193 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] return dispatch(function, *args, **kwargs)
[Sun Jun 06 11:41:17.415198 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/usr/local/lib/python3.8/dist-packages/flask_simplelogin/init.py", line 98, in dispatch
[Sun Jun 06 11:41:17.415201 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] return check(must) or fun(*args, **kwargs)
[Sun Jun 06 11:41:17.415207 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/var/www/secmon/secmon_web.py", line 612, in tasks
[Sun Jun 06 11:41:17.415210 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] tasks = getTasks()
[Sun Jun 06 11:41:17.415215 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/var/www/secmon/secmon_lib.py", line 262, in getTasks
[Sun Jun 06 11:41:17.415218 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] for line in reversed(list(open(logfile))):
[Sun Jun 06 11:41:17.415224 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/usr/lib/python3.8/encodings/ascii.py", line 26, in decode
[Sun Jun 06 11:41:17.415227 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] return codecs.ascii_decode(input, self.errors)[0]
[Sun Jun 06 11:41:17.415239 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1312: ordinal not in range(128)
[Sun Jun 06 11:41:17.415253 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] None
[Sun Jun 06 11:41:17.415262 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] ################## PLEASE REPORT THIS ON GITHUB ##################

Originally created by @SonuKhanPK on GitHub (Jun 6, 2021). Original GitHub issue: https://github.com/alb-uss/SECMON/issues/7 Originally assigned to: @alb-uss on GitHub. > [Sun Jun 06 11:41:17.411550 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] ################## NEW GUI ERROR AT 06/06/2021, 11:41:17 ################## > [Sun Jun 06 11:41:17.411729 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] ######## URL : http://192.168.244.140/tasks ########## > [Sun Jun 06 11:41:17.415130 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] Traceback (most recent call last): > [Sun Jun 06 11:41:17.415169 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1950, in full_dispatch_request > [Sun Jun 06 11:41:17.415174 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] rv = self.dispatch_request() > [Sun Jun 06 11:41:17.415180 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/usr/local/lib/python3.8/dist-packages/flask/app.py", line 1936, in dispatch_request > [Sun Jun 06 11:41:17.415184 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] return self.view_functions[rule.endpoint](**req.view_args) > [Sun Jun 06 11:41:17.415189 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/usr/local/lib/python3.8/dist-packages/flask_simplelogin/__init__.py", line 117, in simple_decorator > [Sun Jun 06 11:41:17.415193 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] return dispatch(function, *args, **kwargs) > [Sun Jun 06 11:41:17.415198 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/usr/local/lib/python3.8/dist-packages/flask_simplelogin/__init__.py", line 98, in dispatch > [Sun Jun 06 11:41:17.415201 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] return check(must) or fun(*args, **kwargs) > [Sun Jun 06 11:41:17.415207 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/var/www/secmon/secmon_web.py", line 612, in tasks > [Sun Jun 06 11:41:17.415210 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] tasks = getTasks() > [Sun Jun 06 11:41:17.415215 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/var/www/secmon/secmon_lib.py", line 262, in getTasks > [Sun Jun 06 11:41:17.415218 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] for line in reversed(list(open(logfile))): > [Sun Jun 06 11:41:17.415224 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] File "/usr/lib/python3.8/encodings/ascii.py", line 26, in decode > [Sun Jun 06 11:41:17.415227 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] return codecs.ascii_decode(input, self.errors)[0] > [Sun Jun 06 11:41:17.415239 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 1312: ordinal not in range(128) > [Sun Jun 06 11:41:17.415253 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] None > [Sun Jun 06 11:41:17.415262 2021] [wsgi:error] [pid 16043:tid 139847434086144] [remote 192.168.244.140:44610] ################## PLEASE REPORT THIS ON GITHUB ##################
kerem 2026-03-02 23:35:57 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@alb-uss commented on GitHub (Jun 9, 2021):

@SonuKhanPK Please check that the latest commit corrects this error

<!-- gh-comment-id:857886790 --> @alb-uss commented on GitHub (Jun 9, 2021): @SonuKhanPK Please check that the latest commit corrects this error
Author
Owner

@SonuKhanPK commented on GitHub (Jun 11, 2021):

Yes, the issue is fixed now. Thanks.

<!-- gh-comment-id:859718222 --> @SonuKhanPK commented on GitHub (Jun 11, 2021): Yes, the issue is fixed now. Thanks.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SECMON#9
No description provided.