unzip-bot icon indicating copy to clipboard operation
unzip-bot copied to clipboard

[BUG] exec have issue with non standard encodings (ex session file)

Open EDM115 opened this issue 1 year ago • 0 comments

2024-07-28 17:32:43,361 - INFO - unzipper - asyncio_0 - ext_err :
2024-07-29 11:47:06,401 - ERROR - pyrogram.dispatcher - MainThread - 'utf-8' codec can't decode byte 0xba in position 106: invalid start byte
Traceback (most recent call last):
  File "/venv/lib/python3.12/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
    await handler.callback(self.client, *args)
  File "/venv/lib/python3.12/site-packages/pyromod/listen/listen.py", line 93, in resolve_listener
    await self.user_callback(client, message, *args)
  File "/app/unzipper/modules/commands.py", line 730, in exec_command
    o = stdout.decode()
        ^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xba in position 106: invalid start byte
2024-07-29 11:47:32,518 - ERROR - pyrogram.dispatcher - MainThread - 'utf-8' codec can't decode byte 0x84 in position 13: invalid start byte
Traceback (most recent call last):
  File "/venv/lib/python3.12/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
    await handler.callback(self.client, *args)
  File "/venv/lib/python3.12/site-packages/pyromod/listen/listen.py", line 93, in resolve_listener
    await self.user_callback(client, message, *args)
  File "/app/unzipper/modules/commands.py", line 730, in exec_command
    o = stdout.decode()
        ^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 13: invalid start byte
2024-07-29 11:49:17,890 - ERROR - pyrogram.dispatcher - MainThread - 'utf-8' codec can't decode byte 0x84 in position 13: invalid start byte
Traceback (most recent call last):
  File "/venv/lib/python3.12/site-packages/pyrogram/dispatcher.py", line 240, in handler_worker
    await handler.callback(self.client, *args)
  File "/venv/lib/python3.12/site-packages/pyromod/listen/listen.py", line 93, in resolve_listener
    await self.user_callback(client, message, *args)
  File "/app/unzipper/modules/commands.py", line 730, in exec_command
    o = stdout.decode()
        ^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x84 in position 13: invalid start byte

EDM115 avatar Jul 29 '24 12:07 EDM115