[2026-04-25T18:47:14.304] [ERROR] core - cmd 命令执行错误:
===>
commands: networksetup -setsecurewebproxy "Ethernet" 127.0.0.1 31181
error: Error: Command failed: networksetup -setsecurewebproxy "Ethernet" 127.0.0.1 31181
at ChildProcess.exithandler (node:child_process:408:12)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5) {
killed: false,
code: 14,
signal: null,
cmd: 'networksetup -setsecurewebproxy "Ethernet" 127.0.0.1 31181'
}
<===
[2026-04-25T18:47:14.304] [ERROR] core - 开启系统代理失败: Error
at /Applications/dev-sidecar.app/Contents/Resources/app.asar/index.js:2:979705
at ChildProcess.exithandler (node:child_process:415:5)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at ChildProcess._handle.onexit (node:internal/child_process:302:5)
Ⅰ. 请说明操作系统及DS的版本号:
Ⅱ. 问题描述:
在主界面点击系统代理开关时提示 Api invoke error
Error invoking remote method 'apiInvoke': Error
但实则查看设置后发现并没有打开。
Ⅲ. 期望的结果:
系统代理打开
Ⅳ. 如何复现问题?
Ⅴ. 请提供相关的错误日志,尽可能的详细:(日志文件在
${user.home}/.dev-sidecar/logs/目录下)点击查看日志
Ⅵ. 有必要时,请提供
${user.home}/.dev-sidecar/running.json文件内容:点击查看运行参数