claw-subagent-service 0.0.104 → 0.0.106
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -389,6 +389,15 @@ class OpenClawClient {
|
|
|
389
389
|
this.log?.error(`[OpenClawClient] 修改后请重启 OpenClaw gateway: openclaw gateway`);
|
|
390
390
|
} else {
|
|
391
391
|
this.log?.error(`[OpenClawClient] SSE 请求失败: ${err.message}`);
|
|
392
|
+
// 打印详细错误响应
|
|
393
|
+
if (err.response) {
|
|
394
|
+
this.log?.error(`[OpenClawClient] 错误状态码: ${err.response.status}`);
|
|
395
|
+
try {
|
|
396
|
+
this.log?.error(`[OpenClawClient] 错误响应数据: ${JSON.stringify(err.response.data)}`);
|
|
397
|
+
} catch (e) {
|
|
398
|
+
this.log?.error(`[OpenClawClient] 错误响应数据(无法JSON序列化): ${require('util').inspect(err.response.data, {depth: 2})}`);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
392
401
|
}
|
|
393
402
|
// 不再内部调用 onError,让错误通过 Promise reject 向上传播,便于调用方回退
|
|
394
403
|
throw err;
|