Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] TypeError: RequestInit: duplex option is required when sending a body. #1963

Closed
App1ePine opened this issue Jun 14, 2023 · 7 comments
Closed

Comments

@App1ePine
Copy link

更新20230614版本
image

@App1ePine
Copy link
Author

将接口地址设置为 https://api.openai.com 可以解决,默认的 /api/openai/ 报错
image

@Yidadaa
Copy link
Collaborator

Yidadaa commented Jun 14, 2023

部署方式?

@App1ePine
Copy link
Author

你好。部署方式是本地部署。
git pull upstream main.
pnpm install
pnpm build
pnpm start

@Yidadaa
Copy link
Collaborator

Yidadaa commented Jun 15, 2023

nodejs 版本?操作系统版本?

@App1ePine
Copy link
Author

App1ePine commented Jun 15, 2023

➜ ~ uname -a
Linux digitalOcean 5.10.0-11-amd64 #1 SMP Debian 5.10.92-1 (2022-01-18) x86_64 GNU/Linux
➜ ~ node -v
v20.2.0
➜ ~ pnpm -v
8.6.0

不知道是否是我之前安装了 sharp 包导致的,刚才删除仓库从新拉取打包运行没有复现这个问题了
但是 sharp 只是一个图像处理的模块,应该不会影响到请求,除此之外并未改动任何代码,所以我也不清楚怎么回事

@LazyYangi
Copy link

同问 node v16.20.0
[centos-7]

@Yidadaa
Copy link
Collaborator

Yidadaa commented Jun 15, 2023

项目最低要求 nodejs 版本为 node18。

@Yidadaa Yidadaa closed this as completed Jun 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants