WZML-X icon indicating copy to clipboard operation
WZML-X copied to clipboard

TypeError: expected string or bytes-like object

Open alonelove7 opened this issue 11 months ago • 2 comments

Hello for command : /m link -u x -p y

Error log: [02-Apr-25 01:34:49 AM] [INFO] - http://xx.k-l.x/dl2/%5BAWHT%5D%20Overlord%20Sei%20Oukoku-hen%20%5B1080p%5D.mkv [02-Apr-25 01:34:49 AM] [INFO] - No Direct link function found for http://xx.k-l.cxxd/dl2/%5BAWHT%5D%20Overlord%20Sei%20Oukoku-hen%20%5B1080p%5D.mkv [02-Apr-25 01:34:49 AM] [ERROR] - Task exception was never retrieved future: <Task finished name='Task-1228' coro=<_mirror_leech() done, defined at /usr/src/app/bot/modules/mirror_leech.py:77> exception=TypeError('expected string or bytes-like object')> Traceback (most recent call last): File "/usr/src/app/bot/modules/mirror_leech.py", line 498, in mirror_leech elif is_rclone_path(link): File "/usr/src/app/bot/helper/ext_utils/bot_utils.py", line 471, in is_rclone_path return bool(re_match(r'^(mrcc:)?(?!magnet:)(?![- ])[a-zA-Z0-9. -]+(?<! ):(?!.//).$|^rcl$', path)) File "/usr/lib/python3.10/re.py", line 190, in match return _compile(pattern, flags).match(string) TypeError: expected string or bytes-like object

for last version.

alonelove7 avatar Apr 02 '25 09:04 alonelove7

i run the code on ubuntu the users after using auth link for mirror returns with error that error is:

{ [02-Apr-25 01:34:49 AM] [ERROR] - Task exception was never retrieved future: <Task finished name='Task-1228' coro=<_mirror_leech() done, defined at /usr/src/app/bot/modules/mirror_leech.py:77> exception=TypeError('expected string or bytes-like object')> Traceback (most recent call last): File "/usr/src/app/bot/modules/mirror_leech.py", line 498, in

mirror_leechelif is_rclone_path(link):File "/usr/src/app/bot/helper/ext_utils/bot_utils.py", line 471, in is_rclone_pathreturn bool(re_match(r'^(mrcc:)?(?!magnet:)(?![- ])[a-zA-Z0-9. -]+(?<! ):(?!.//).', path)) File "/usr/lib/python3.10/re.py", line 190, in match return _compile(pattern, flags).match(string) TypeError: expected string or bytes-like object }

On Wed, Apr 2, 2025 at 1:45 PM Riajul @.***> wrote:

@rjriajul https://github.com/rjriajul 🙂 huh?

— Reply to this email directly, view it on GitHub https://github.com/SilentDemonSD/WZML-X/issues/308#issuecomment-2772102228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIHOWBKPBYCUNCZLMOKI7AL2XO2FTAVCNFSM6AAAAAB2JBJP7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZSGEYDEMRSHA . You are receiving this because you were mentioned.Message ID: @.***> [image: rjriajul]rjriajul left a comment (SilentDemonSD/WZML-X#308) https://github.com/SilentDemonSD/WZML-X/issues/308#issuecomment-2772102228

@rjriajul https://github.com/rjriajul 🙂 huh?

— Reply to this email directly, view it on GitHub https://github.com/SilentDemonSD/WZML-X/issues/308#issuecomment-2772102228, or unsubscribe https://github.com/notifications/unsubscribe-auth/AIHOWBKPBYCUNCZLMOKI7AL2XO2FTAVCNFSM6AAAAAB2JBJP7KVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDONZSGEYDEMRSHA . You are receiving this because you were mentioned.Message ID: @.***>

-- AloneLove

alonelove7 avatar Apr 02 '25 15:04 alonelove7

Invalid 😭

rjriajul avatar Jun 18 '25 01:06 rjriajul