-
Describe the bug提问后报错 Reproduction1 System InfoC:\Users\Administrator\Desktop\chatgpt-demo-main\C:\Users\Administrator\Desktop\chatgpt-demo-main\node_modules\undici\index.js:109:13
Open in editor
Stack Trace
TypeError: fetch failed
at Proxy.fetch (C:\Users\Administrator\Desktop\chatgpt-demo-main\node_modules\undici\index.js:109:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Module.post (C:\Users\Administrator\Desktop\chatgpt-demo-main\src\pages\api\generate.ts:19:20)
at async call (file:///C:/Users/Administrator/Desktop/chatgpt-demo-main/node_modules/astro/dist/core/endpoint/index.js:71:20)
at async call (file:///C:/Users/Administrator/Desktop/chatgpt-demo-main/node_modules/astro/dist/core/endpoint/dev/index.js:15:10)
at async handleRoute (file:///C:/Users/Administrator/Desktop/chatgpt-demo-main/node_modules/astro/dist/vite-plugin-astro-server/route.js:117:20)
at async run (file:///C:/Users/Administrator/Desktop/chatgpt-demo-main/node_modules/astro/dist/vite-plugin-astro-server/request.js:46:14)
at async runWithErrorHandling (file:///C:/Users/Administrator/Desktop/chatgpt-demo-main/node_modules/astro/dist/vite-plugin-astro-server/controller.js:65:5)
at async handleRequest (file:///C:/Users/Administrator/Desktop/chatgpt-demo-main/node_modules/astro/dist/vite-plugin-astro-server/request.js:40:3)
Cause
{
"errno": -4077,
"code": "ECONNRESET",
"syscall": "read"
} Used Package Managernpm Validations
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 10 replies
-
我也遇到这样的问题了 |
Beta Was this translation helpful? Give feedback.
-
fetch failed 错误一般是调用 OpenAI 接口失败了,检查一下有没有配置代理 |
Beta Was this translation helpful? Give feedback.
-
我输入任何字符回车后, 对话框提交后,报错如上 |
Beta Was this translation helpful? Give feedback.
-
香港服务器能用不,还是必须要海外服务器啊 |
Beta Was this translation helpful? Give feedback.
-
作者用的哪的服务器啊 |
Beta Was this translation helpful? Give feedback.
-
必须要有服务器吗,没服务器就弄不了了嘛 |
Beta Was this translation helpful? Give feedback.
fetch failed 错误一般是调用 OpenAI 接口失败了,检查一下有没有配置代理