……………………
Event will be handled by Matcher(type='message', module=nonebot_plugin_chatgpt.utils)
C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\protocol\validatorPrimitives.js:53
throw new ValidationError(${path}: expected boolean, got ${typeof arg});
^
ValidationError: fromServiceWorker: expected boolean, got undefined
at tBoolean (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\protocol\validatorPrimitives.js:53:9)
at C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\protocol\validatorPrimitives.js:108:21
at DispatcherConnection.sendCreate (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\dispatcher.js:157:19)
at new Dispatcher (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\dispatcher.js:66:40)
at new ResponseDispatcher (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\networkDispatchers.js:73:5)
at Function.from (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\networkDispatchers.js:67:22)
at FFBrowserContext. (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\browserContextDispatcher.js:116:58)
at FFBrowserContext.emit (node:events:513:28)
at Page.emitOnContext (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\page.js:122:26)
at FrameManager.requestReceivedResponse (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\frames.js:260:16)
报告清单
影响版本
v0.7.4
问题描述
触发指令后报错: throw new ValidationError(
${path}: expected boolean, got ${typeof arg}
); ^ValidationError: fromServiceWorker: expected boolean, got undefined
复现步骤
1.使用nb install安装chatgpt插件 2.按要求修改配置文件(我确信token和代理均有效,并且在网页端可以成功进入官方chat页面) 3.使用nb run运行bot 4.最开始出现了playwright未安装的报错,我使用pycharm的功能在bot项目处安装了playwright 5.再次运行bot,并没有出现playwright未安装的报错 6.在qq群聊使用相应命令提问 7.bot无回复,并出现ValidationError的报错
预期行为
返回相应问题的回复
实际行为
无回复,日志中出现了ValidationError的错误,尽管这一行提示并非红字
日志信息
…………………… Event will be handled by Matcher(type='message', module=nonebot_plugin_chatgpt.utils) C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\protocol\validatorPrimitives.js:53 throw new ValidationError(
${path}: expected boolean, got ${typeof arg}
); ^ValidationError: fromServiceWorker: expected boolean, got undefined at tBoolean (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\protocol\validatorPrimitives.js:53:9) at C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\protocol\validatorPrimitives.js:108:21 at DispatcherConnection.sendCreate (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\dispatcher.js:157:19) at new Dispatcher (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\dispatcher.js:66:40) at new ResponseDispatcher (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\networkDispatchers.js:73:5) at Function.from (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\networkDispatchers.js:67:22) at FFBrowserContext. (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\dispatchers\browserContextDispatcher.js:116:58)
at FFBrowserContext.emit (node:events:513:28)
at Page.emitOnContext (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\page.js:122:26)
at FrameManager.requestReceivedResponse (C:\Users\Admin\Bot.venv\Lib\site-packages\playwright\driver\package\lib\server\frames.js:260:16)
额外补充
No response