chatgpt-web icon indicating copy to clipboard operation
chatgpt-web copied to clipboard

聊天会提示TypeError: fetch failed at async fetchSS

Open git-syl opened this issue 1 year ago • 1 comments

启动正常,但聊天会提示TypeError: fetch failed at async fetchSS ,在部署在vultr主机的ipv6服务器dokcer下

能成功启动,大致命令: docker run --name chatgpt-web -d -p [ipv6]:3002:3002 --env OPENAI_API_KEY=api_key registry.ipv6.docker.com/username/respname:chatgpt-web

但聊天报错:fetch failed 这是不是不支持ipv6网络? 现在云服务器ipv6网络非常便宜,希望可以支持ipv6网络。

查看日志: cat /var/lib/docker/containers/ee9b9ee2a01086d20bc8d92c9c15b3dc0b4c6702655411ac7faad2ecfa4bf7ee/ee9b9ee2a01086d20bc8d92c9c15b3dc0b4c6702655411ac7faad2ecfa4bf7ee-json.log

 {
	"log": "    { role: 'user', content: 'hello', name: undefined }\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:41.425480445Z"
} {
	"log": "  ],\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:41.425483839Z"
} {
	"log": "  stream: true\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:41.425487154Z"
} {
	"log": "}\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:41.425490433Z"
} {
	"log": "TypeError: fetch failed\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:46.521201321Z"
} {
	"log": "    at Object.fetch (node:internal/deps/undici/undici:11413:11)\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:46.521555035Z"
} {
	"log": "    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:46.521570378Z"
} {
	"log": "    at async fetchSSE (file:///app/node_modules/.pnpm/[email protected]/node_modules/chatgpt/build/index.js:46:15) {\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:46.521577928Z"
} {
	"log": "  cause: Error: getaddrinfo EAI_AGAIN api.openai.com\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:46.521584559Z"
} {
	"log": "      at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:107:26) {\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:46.521589663Z"
} {
	"log": "    errno: -3001,\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:46.521593374Z"
} {
	"log": "    code: 'EAI_AGAIN',\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:46.52159676Z"
} {
	"log": "    syscall: 'getaddrinfo',\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:46.521600441Z"
} {
	"log": "    hostname: 'api.openai.com'\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:46.521603911Z"
} {
	"log": "  }\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:46.521607372Z"
} {
	"log": "}\n",
	"stream": "stdout",
	"time": "2023-04-14T04:26:46.52161068Z"
}

git-syl avatar Apr 14 '23 04:04 git-syl

This issue is stale because it has been open for 10 days with no activity.

github-actions[bot] avatar Apr 25 '23 02:04 github-actions[bot]

This issue was closed because it has been inactive for 2 days since being marked as stale.

github-actions[bot] avatar Aug 03 '23 01:08 github-actions[bot]