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

TRSS-Yunzai 无法发送消息 #15

Closed
yuuki-nya opened this issue Dec 27, 2024 · 6 comments
Closed

TRSS-Yunzai 无法发送消息 #15

yuuki-nya opened this issue Dec 27, 2024 · 6 comments

Comments

@yuuki-nya
Copy link

TRSS-Yunzai 3.1.3 TimeRainStarSky/Yunzai@e7a7aab
yuki-plugin 8172f17
发送任何图片相关的就会报错

[puppeteer] err TargetCloseError: Protocol error (Target.setDiscoverTargets): Target closed

    at CallbackRegistry.clear (file:///app/node_modules/.pnpm/[email protected][email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:72:36)

    at #onClose (file:///app/node_modules/.pnpm/[email protected][email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:152:25)

    at WebSocket.<anonymous> (file:///app/node_modules/.pnpm/[email protected][email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js:41:30)

    at callListener (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14)

    at WebSocket.onClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:220:9)

    at WebSocket.emit (node:events:518:28)

    at WebSocket.emitClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:265:10)

    at Socket.socketOnClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1289:15)

    at Socket.emit (node:events:518:28)

    at TCP.<anonymous> (node:net:343:12) {

  cause: ProtocolError

      at <instance_members_initializer> (file:///app/node_modules/.pnpm/[email protected][email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:92:14)

      at new Callback (file:///app/node_modules/.pnpm/[email protected][email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:96:16)

      at CallbackRegistry.create (file:///app/node_modules/.pnpm/[email protected][email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:19:26)

      at Connection._rawSend (file:///app/node_modules/.pnpm/[email protected][email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:77:26)

      at Connection.send (file:///app/node_modules/.pnpm/[email protected][email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:71:21)

      at ChromeTargetManager.initialize (file:///app/node_modules/.pnpm/[email protected][email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js:83:32)

      at CdpBrowser._attach (file:///app/node_modules/.pnpm/[email protected][email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js:67:35)

      at CdpBrowser._create (file:///app/node_modules/.pnpm/[email protected][email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js:20:23)

      at ChromeLauncher.launch (file:///app/node_modules/.pnpm/[email protected][email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:107:48)

      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

}

尝试根据 #4 把 puppeteer 降级为 22.13.1 也无法解决

@yuuki-nya
Copy link
Author

把 trss-yunzai 和 yuki-plugin 的 puppeteer 指定为 22.13.1

[puppeteer] err TargetCloseError: Protocol error (Target.setDiscoverTargets): Target closed

    at CallbackRegistry.clear (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:69:36)

    at #onClose (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:161:25)

    at WebSocket.<anonymous> (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js:43:30)

    at callListener (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14)

    at WebSocket.onClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:220:9)

    at WebSocket.emit (node:events:518:28)

    at WebSocket.emitClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:272:10)

    at Socket.socketOnClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1341:15)

    at Socket.emit (node:events:518:28)

    at TCP.<anonymous> (node:net:343:12) {

  cause: ProtocolError

      at <instance_members_initializer> (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:89:14)

      at new Callback (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:93:16)

      at CallbackRegistry.create (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:19:26)

      at Connection._rawSend (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:86:26)

      at Connection.send (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:77:21)

      at ChromeTargetManager.initialize (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js:88:32)

      at CdpBrowser._attach (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js:69:35)

      at CdpBrowser._create (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js:24:23)

      at ChromeLauncher.launch (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:114:48)

      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

}

@snowtafir
Copy link
Owner

把 trss-yunzai 和 yuki-plugin 的 puppeteer 指定为 22.13.1

[puppeteer] err TargetCloseError: Protocol error (Target.setDiscoverTargets): Target closed

    at CallbackRegistry.clear (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:69:36)

    at #onClose (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:161:25)

    at WebSocket.<anonymous> (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js:43:30)

    at callListener (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14)

    at WebSocket.onClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:220:9)

    at WebSocket.emit (node:events:518:28)

    at WebSocket.emitClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:272:10)

    at Socket.socketOnClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1341:15)

    at Socket.emit (node:events:518:28)

    at TCP.<anonymous> (node:net:343:12) {

  cause: ProtocolError

      at <instance_members_initializer> (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:89:14)

      at new Callback (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:93:16)

      at CallbackRegistry.create (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:19:26)

      at Connection._rawSend (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:86:26)

      at Connection.send (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:77:21)

      at ChromeTargetManager.initialize (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js:88:32)

      at CdpBrowser._attach (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js:69:35)

      at CdpBrowser._create (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js:24:23)

      at ChromeLauncher.launch (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:114:48)

      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

}

看仓库主页运行环境要求。不支持Edge浏览器

@yuuki-nya
Copy link
Author

把 trss-yunzai 和 yuki-plugin 的 puppeteer 指定为 22.13.1

[puppeteer] err TargetCloseError: Protocol error (Target.setDiscoverTargets): Target closed

    at CallbackRegistry.clear (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:69:36)

    at #onClose (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:161:25)

    at WebSocket.<anonymous> (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js:43:30)

    at callListener (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14)

    at WebSocket.onClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:220:9)

    at WebSocket.emit (node:events:518:28)

    at WebSocket.emitClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:272:10)

    at Socket.socketOnClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1341:15)

    at Socket.emit (node:events:518:28)

    at TCP.<anonymous> (node:net:343:12) {

  cause: ProtocolError

      at <instance_members_initializer> (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:89:14)

      at new Callback (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:93:16)

      at CallbackRegistry.create (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:19:26)

      at Connection._rawSend (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:86:26)

      at Connection.send (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:77:21)

      at ChromeTargetManager.initialize (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js:88:32)

      at CdpBrowser._attach (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js:69:35)

      at CdpBrowser._create (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js:24:23)

      at ChromeLauncher.launch (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:114:48)

      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

}

看仓库主页运行环境要求。不支持Edge浏览器

不是 edge ,是 node 22.12.0 LTS 的官方 docker 镜像

/app $ chromium-browser --version
Chromium 131.0.6778.85 Alpine Linux

大概是yuki某次更新后就不行了,还没找到哪里不兼容

@snowtafir
Copy link
Owner

把 trss-yunzai 和 yuki-plugin 的 puppeteer 指定为 22.13.1

[puppeteer] err TargetCloseError: Protocol error (Target.setDiscoverTargets): Target closed

    at CallbackRegistry.clear (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:69:36)

    at #onClose (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:161:25)

    at WebSocket.<anonymous> (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js:43:30)

    at callListener (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:290:14)

    at WebSocket.onClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/event-target.js:220:9)

    at WebSocket.emit (node:events:518:28)

    at WebSocket.emitClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:272:10)

    at Socket.socketOnClose (/app/node_modules/.pnpm/[email protected]/node_modules/ws/lib/websocket.js:1341:15)

    at Socket.emit (node:events:518:28)

    at TCP.<anonymous> (node:net:343:12) {

  cause: ProtocolError

      at <instance_members_initializer> (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:89:14)

      at new Callback (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:93:16)

      at CallbackRegistry.create (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/common/CallbackRegistry.js:19:26)

      at Connection._rawSend (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:86:26)

      at Connection.send (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Connection.js:77:21)

      at ChromeTargetManager.initialize (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/ChromeTargetManager.js:88:32)

      at CdpBrowser._attach (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js:69:35)

      at CdpBrowser._create (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/cdp/Browser.js:24:23)

      at ChromeLauncher.launch (file:///app/node_modules/.pnpm/[email protected]/node_modules/puppeteer-core/lib/esm/puppeteer/node/ProductLauncher.js:114:48)

      at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

}

看仓库主页运行环境要求。不支持Edge浏览器

不是 edge ,是 node 22.12.0 LTS 的官方 docker 镜像

/app $ chromium-browser --version
Chromium 131.0.6778.85 Alpine Linux

大概是yuki某次更新后就不行了,还没找到哪里不兼容

把puppeteer更新到最新看看。。

@yuuki-nya
Copy link
Author

https://github.com/snowtafir/yuki-plugin/blob/main3/package.json

23.11.1 应该是最新的了,我新装个载试试

@yuuki-nya
Copy link
Author

把docker镜像换成 node:22.12.0-bookworm 就可以了

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