-
Notifications
You must be signed in to change notification settings - Fork 367
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Description
运行以下命令时报错
>opencli zhihu hot -f json
Error: attach failed: Cannot access a chrome-extension:// URL of different extension
opencli bilibili hot --limit 5
Error: attach failed: Cannot access a chrome-extension:// URL of different extension
现象:
新弹出了一个浏览器窗口(而不是打开一个新标签),可以访问目标网站。观察到账号为登录状态。
但是没有后续的操作,终端稍后报错。
环境:信息
操作系统:Win11
浏览器插件已安装
opencli版本:1.2.0
node版本:Node.js v22.16.0
chrome版本:Version 146.0.7680.154 (Official Build) (64-bit)
Steps to Reproduce
- Run
opencli zhihu hot -f json - 浏览器成功弹出且成功访问目标网站,但没有进行后续操作
- See error: Error: attach failed: Cannot access a chrome-extension:// URL of different extension
Expected Behavior
正常返回网站结果
OpenCLI Version
1.2.0
Node.js Version
22.x
Operating System
Windows
Logs / Screenshots
> opencli zhihu hot -f json -v
[opencli] Starting daemon (js)...
[1/4] navigate → https://www.zhihu.com
→ (no data)
[2/4] evaluate → (async () => {
const res = await fetch('https://www.zhihu.com/api/v3/feed/t...
Error: attach failed: Cannot access a chrome-extension:// URL of different extension
at sendCommand (file:///C:/Users/xxxx/AppData/Roaming/npm/node_modules/@jackwener/opencli/dist/browser/daemon-client.js:66:23)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async stepEvaluate (file:///C:/Users/xxxx/AppData/Roaming/npm/node_modules/@jackwener/opencli/dist/pipeline/steps/browser.js:66:18)
at async executePipeline (file:///C:/Users/xxxx/AppData/Roaming/npm/node_modules/@jackwener/opencli/dist/pipeline/executor.js:21:24)Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working