Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

图片生成失败 #465

Open
Youc2628 opened this issue Aug 12, 2024 · 1 comment
Open

图片生成失败 #465

Youc2628 opened this issue Aug 12, 2024 · 1 comment

Comments

@Youc2628
Copy link

Youc2628 commented Aug 12, 2024

报错如下
[MiaoYz][10:52:28.826][INFO] recv from: [Private: 2628647570(friend)] #菜单
[MiaoYz][10:52:29.253][INFO] [喵喵:喵喵帮助][help][私聊][夏目贵志(2628647570)] #菜单
[MiaoYz][10:52:29.259][INFO] puppeteer Chromium 启动中...
[MiaoYz][10:52:29.673][INFO] puppeteer Chromium 启动成功 ws://127.0.0.1:40021/devtools/browser/b4cbd5ed-e878-4010-a7bb-8afb4eaf8568
[MiaoYz][10:52:29.767][ERRO] [图片生成][miao-plugin/help/index] 图片生成失败 Error: net::ERR_FILE_NOT_FOUND at file:///home/youc/Miao-Yunzai/temp/html/miao-plugin/help/index/index.html
at navigate (file:///home/youc/Miao-Yunzai/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js:172:27)
at async Deferred.race (file:///home/youc/Miao-Yunzai/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/util/Deferred.js:33:20)
at async CdpFrame.goto (file:///home/youc/Miao-Yunzai/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Frame.js:138:25)
at async CdpPage.goto (file:///home/youc/Miao-Yunzai/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/api/Page.js:558:20)
at async Puppeteer.screenshot [as render] (file:///home/youc/Miao-Yunzai/renderers/puppeteer/lib/puppeteer.js:187:7)
at async renderer.screenshot (file:///home/youc/Miao-Yunzai/lib/puppeteer/puppeteer.js:10:15)
at async Runtime.render (file:///home/youc/Miao-Yunzai/lib/plugins/runtime.js:236:18)
at async cls.render (file:///home/youc/Miao-Yunzai/plugins/miao-plugin/apps/help/Help.js:61:12)
at async cls. [as help] (file:///home/youc/Miao-Yunzai/plugins/miao-plugin/components/App.js:96:18)
at async PluginsLoader.deal (file:///home/youc/Miao-Yunzai/lib/plugins/loader.js:275:41)
[MiaoYz][10:52:29.770][INFO] puppeteer Chromium 强制关闭重启...
[MiaoYz][10:52:29.771][INFO] puppeteer Chromium 启动中...
[MiaoYz][10:52:29.772][MARK] [喵喵:喵喵帮助][help] #菜单 处理完成 519ms
[MiaoYz][10:52:30.200][INFO] puppeteer Chromium 启动成功 ws://127.0.0.1:37147/devtools/browser/920eca97-6faf-4579-ad23-bb760c0dcde2
0f29effc3abea883782586f43c62d58b
puppeteer换了几个版本也不行,重新安装几遍还是一样

@lin-junliang
Copy link
Contributor

pnpm uninstall puppeteer
pnpm add [email protected] -w
node ./node_modules/puppeteer/install.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants