08-10 22:34:17 [ERROR] nonebot | Running Matcher(type='message', module=nonebot-plugin-resolver, lineno=55) failed.
Traceback (most recent call last):
File "<string>", line 15, in <module>
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\nonebot\__init__.py", line 335, in run
get_driver().run(*args, **kwargs)
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\nonebot\drivers\fastapi.py", line 186, in run
uvicorn.run(
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\uvicorn\main.py", line 577, in run
server.run()
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\uvicorn\server.py", line 65, in run
return asyncio.run(self.serve(sockets=sockets))
File "C:\XXX\AppData\Local\Programs\Python\Python310\lib\asyncio\runners.py", line 44, in run
return loop.run_until_complete(main)
File "C:\XXX\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 633, in run_until_complete
self.run_forever()
File "C:\XXX\AppData\Local\Programs\Python\Python310\lib\asyncio\windows_events.py", line 321, in run_forever
super().run_forever()
File "C:\XXX\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 600, in run_forever
self._run_once()
File "C:\XXX\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 1896, in _run_once
handle._run()
File "C:\XXX\AppData\Local\Programs\Python\Python310\lib\asyncio\events.py", line 80, in _run
self._context.run(self._callback, *self._args)
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\nonebot\message.py", line 476, in check_and_run_matcher
await _run_matcher(
> File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\nonebot\message.py", line 428, in _run_matcher
await matcher.run(bot, event, state, stack, dependency_cache)
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 850, in run
await self.simple_run(bot, event, state, stack, dependency_cache)
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\nonebot\internal\matcher\matcher.py", line 825, in simple_run
await handler(
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\nonebot\dependencies\__init__.py", line 94, in __call__
return await cast(Callable[..., Awaitable[R]], self.call)(**values)
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\nonebot-plugin-resolver\__init__.py", line 201, in dy
api_url = generate_x_bogus_url(api_url, headers) # 如果请求失败直接返回
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\nonebot-plugin-resolver\tiktok_utills.py", line 60, in generate_x_bogus_url
abogus = execjs.compile(abogus_file_path_transcoding).call('generate_a_bogus', query, headers['User-Agent'])
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\execjs\_abstract_runtime_context.py", line 37, in call
return self._call(name, *args)
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\execjs\_external_runtime.py", line 92, in _call
return self._eval("{identifier}.apply(this, {args})".format(identifier=identifier, args=args))
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\execjs\_external_runtime.py", line 78, in _eval
return self.exec_(code)
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\execjs\_abstract_runtime_context.py", line 18, in exec_
return self._exec_(source)
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\execjs\_external_runtime.py", line 88, in _exec_
return self._extract_result(output)
File "C:\XXX\Desktop\baozi\.venv\lib\site-packages\execjs\_external_runtime.py", line 167, in _extract_result
raise ProgramError(value)
execjs._exceptions.ProgramError: SyntaxError: 缺少 ';'
这个问题是否已经存在?
如何复现
控制台日志:
预期结果
预期返回抖音视频
实际结果
控制台报错,未返回任何信息。
截图或视频
[在这里上传图片]
系统
windows