[Bug] [OpenAI] [TypeError: fetch failed] { cause: [Error: AggregateError] }

[Bug] [OpenAI] [TypeError: fetch failed] { cause: [Error: AggregateError] }

ubuntu20 win10 edge浏览器访问 服务器部署

页面打开后想使用chatgpt报错了

root@coal-pasi1cmp:/www/wwwroot/ChatGPT-Next-Web# PORT=3000 yarn start

yarn run v1.22.19

warning package.json: License should be a valid SPDX license expression

一、具体解决方案

1、原因

nodejs的版本过高,当前安装的openai是旧版,把其改为18即可。

2、具体步骤

将nodejs改为18

在这里我们用nvm工具进行管理nodejs变量(毕竟以后可能又有项目需要用到20)

(1)nvm安装

参考博客:https://blog.csdn.net/qq_51116518/article/details/135899070?spm=1001.2014.3001.5502

(2)node安装

bash 复制代码
nvm install 18.18.0

(3)node版本切换为18

bash 复制代码
nvm use  18.18.0

(4)查看node版本是否切换完成

bash 复制代码
node -v

如果打印是v18.18.0,即切换完毕

二、运行结果


运行结果无误,问题解决,

相关推荐
淘矿人9 小时前
Claude辅助算法设计与优化
人工智能·python·算法·microsoft·github·bug·pygame
朱穆朗16 小时前
Cmder创建npm等项目中,使用CLI的BUG
前端·npm·bug
AI 编程助手GPT2 天前
【实战】Codex 接管电脑 + Claude Routines 云端值守:一次 Bug 排查的“无人化”闭环
人工智能·gpt·ai·chatgpt·bug
minxihou2 天前
iwlwifi/iwlmld missed beacons 与 802.11ax HE beacon timing 固件 Bug
bug·协议
阿部多瑞 ABU4 天前
《智能学号抽取系统》V5.9.5 发布:精简代码,修复移动端文件读取核心 Bug
vue·html·bug
qq_452396234 天前
【工程实战】第八篇:报告美学 —— Allure 深度定制:让 Bug 定位精准到秒
开发语言·python·bug
tkokof16 天前
捉虫(Bug)小记
人工智能·深度学习·bug·游戏开发
南宫萧幕6 天前
基于上一篇文章VMware+openweb UI+ollama+docker的bug问题总结
docker·容器·bug·openweb ui