(node:32383) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1) (Use `node --trace-warnings ...` to show where the warning was created)

今天崩溃很多次,没办法长运行,大家遇到的吗

✻ 思考中…

现在让我测试一下这个程序是否可以正常运行。我需要检查 requests 库是否已安装。

⊷ Shell python3 -c “import requests; print(‘requests version:’, requests.version)” [current working directory /root/zp] (检查 requests 库是否已安装)

⠴ 生成中 2m 47s … (按esc取消)

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

输入消息或@文件路径
─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
glm-4.7 上下文剩余 87% | 智能模式 | 思考: 开启
cwd: ~/zp

(node:32383) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
(Use node --trace-warnings ... to show where the warning was created)

试试添加环境变量后重启, 8192 的单位是 MB,自己按需调整

NODE_OPTIONS="--max-old-space-size=8192"

接着楼上,
在管理员模式下终端运行

再接楼上,运行中途观测一下是否有僵尸nodejs进程占用

再接楼上,可以试着配置文件中设置,我设置完之后是没有遇到过了。

"autoConfigureMaxOldSpaceSize": true

我记得我把iflow cli的通知关了也会出现这个问题,不过没有到崩溃的程度

通知?关了?这是啥?