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

菜单指令发生未知错误 #1

Open
continentlht opened this issue Oct 13, 2024 · 16 comments
Open

菜单指令发生未知错误 #1

continentlht opened this issue Oct 13, 2024 · 16 comments
Labels
bug Something isn't working

Comments

@continentlht
Copy link

插件配置如下(没动):
Uploading AD}SS~KZEF[RK5SMX]P4H2W.jpg…
WF@NAKFPFMMU55 27 %G72I
下载方式:插件市场直接下载
日志:
JGU1 VA{8N TF3I}6)CF5D3
目录列表:
3GHJ9O%B@E8R7X7ID9Y1SK5
CVWX0J~WW@6WL FHB4476

@continentlht
Copy link
Author

AD}SS~KZEF RK5SMX P4H2W
第一张图上传失败了

@axlmly axlmly added the bug Something isn't working label Oct 14, 2024
@axlmly
Copy link
Owner

axlmly commented Oct 14, 2024

提供pptr是什么插件

@flymyd
Copy link

flymyd commented Oct 16, 2024

提供pptr是什么插件

同问题,环境linux docker,使用Koishijs官方带pptr的docker。自带pptr和@shangxueink/puppeteer-without-canvas v1.1.0都不行。作者是在win环境下测的吗?

@axlmly
Copy link
Owner

axlmly commented Oct 16, 2024

提供pptr是什么插件

同问题,环境linux docker,使用Koishijs官方带pptr的docker。自带pptr和@shangxueink/puppeteer-without-canvas v1.1.0都不行。作者是在win环境下测的吗?

是,我没有除win外的其他设备测试

@flymyd
Copy link

flymyd commented Oct 16, 2024

提供pptr是什么插件

同问题,环境linux docker,使用Koishijs官方带pptr的docker。自带pptr和@shangxueink/puppeteer-without-canvas v1.1.0都不行。作者是在win环境下测的吗?

是,我没有除win外的其他设备测试

刚才开了个仓库试了下,page.goto(menuPath)有问题。而且加file://协议头也不行

@axlmly
Copy link
Owner

axlmly commented Oct 16, 2024

提供pptr是什么插件

同问题,环境linux docker,使用Koishijs官方带pptr的docker。自带pptr和@shangxueink/puppeteer-without-canvas v1.1.0都不行。作者是在win环境下测的吗?

是,我没有除win外的其他设备测试

刚才开了个仓库试了下,page.goto(menuPath)有问题。而且加file://协议头也不行

是的,是路径问题,已经在解决了

@axlmly
Copy link
Owner

axlmly commented Oct 16, 2024

更新版本

@axlmly axlmly closed this as completed Oct 16, 2024
@flymyd
Copy link

flymyd commented Oct 16, 2024

1.7.0问题依旧

@axlmly axlmly reopened this Oct 16, 2024
@axlmly
Copy link
Owner

axlmly commented Oct 16, 2024

1.7.0问题依旧

日志

@flymyd
Copy link

flymyd commented Oct 16, 2024

1.7.0问题依旧

日志

command menu
ProtocolError: Protocol error (Page.navigate): Cannot navigate to invalid URL
at <instance_members_initializer> (/koishi/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:93:14)
at new Callback (/koishi/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:97:16)
at CallbackRegistry.create (/koishi/node_modules/puppeteer-core/lib/cjs/puppeteer/common/CallbackRegistry.js:22:26)
at Connection._rawSend (/koishi/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Connection.js:88:26)
at CdpCDPSession.send (/koishi/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/CDPSession.js:66:33)
at navigate (/koishi/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Frame.js:164:51)
at CdpFrame.goto (/koishi/node_modules/puppeteer-core/lib/cjs/puppeteer/cdp/Frame.js:142:17)
at CdpFrame. (/koishi/node_modules/puppeteer-core/lib/cjs/puppeteer/util/decorators.js:98:27)
at CdpPage.goto (/koishi/node_modules/puppeteer-core/lib/cjs/puppeteer/api/Page.js:585:43)
at _Command. (/koishi/node_modules/koishi-plugin-axlmly-role-playing-game/lib/index.js:12302:16)

@flymyd
Copy link

flymyd commented Oct 16, 2024

环境Docker部署:
System:

OS: Linux 6.6 Alpine Linux

CPU: (6) x64 Genuine Intel(R) CPU 0000 @ 3.00GHz

Binaries:

Node: 20.14.0

Yarn: 4.1.1

Koishi:

Core: 4.18.0

Console: 5.28.4

@axlmly
Copy link
Owner

axlmly commented Oct 16, 2024

你在报错的那行上面加上 const file = file:///
报错的那行改成await page.goto(file + menuPath);
试试

@flymyd
Copy link

flymyd commented Oct 16, 2024

你在报错的那行上面加上 const file = file:/// 报错的那行改成await page.goto(file + menuPath); 试试

之前试过,file协议没法跳过去,很怪

@continentlht
Copy link
Author

提供pptr是什么插件

image

@flymyd
Copy link

flymyd commented Oct 17, 2024

提供pptr是什么插件

image

@shangxueink/koishi-plugin-puppeteer-without-canvas V1.1.0
以及
koishi-plugin-puppeteer V3.9.0
都不行

@flymyd
Copy link

flymyd commented Oct 17, 2024

刚试了下@seidko/puppeteer V3.5.1同样

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants