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

UND_ERR_HEADERS_TIMEOUT 访问经常返回 #448

Closed
2 tasks done
youminxue opened this issue Mar 8, 2023 · 7 comments
Closed
2 tasks done

UND_ERR_HEADERS_TIMEOUT 访问经常返回 #448

youminxue opened this issue Mar 8, 2023 · 7 comments

Comments

@youminxue
Copy link

Verify latest release

  • I verified that the issue exists in the latest chatgpt release

Verify webapp is working

  • I verify that the ChatGPT webapp is working properly for this account.

Environment details

centos

Describe the Bug

0|main | send error: TypeError: fetch failed
0|main | at Object.fetch (node:internal/deps/undici/undici:11404:11)
0|main | at async file:///tmp/18890990/chat/node_modules/chatgpt/build/index.js:265:25 {
0|main | cause: HeadersTimeoutError: Headers Timeout Error
0|main | at Timeout.onParserTimeout [as callback] (node:internal/deps/undici/undici:9596:32)
0|main | at Timeout.onTimeout [as _onTimeout] (node:internal/deps/undici/undici:7899:17)
0|main | at listOnTimeout (node:internal/timers:568:17)
0|main | at process.processTimers (node:internal/timers:511:7) {
0|main | code: 'UND_ERR_HEADERS_TIMEOUT'
0|main | }
0|main | }

@youminxue
Copy link
Author

请问这个有什么解决办法

@transitive-bullshit
Copy link
Owner

@youminxue this may be due to #419

@youminxue
Copy link
Author

我的服务部署在国外的机器上,应该不是类似的问题,而且不是所有的请求都这样,复杂的问题比较容易出现。

@transitive-bullshit
Copy link
Owner

@youminxue can you paste as much code as possible with how you're using the API, so I can take a look? Right now, I don't have enough information to try and help.

@transitive-bullshit
Copy link
Owner

@youminxue it's likely that the IP you're using has been blocked for some reason.

Also see #453

@youminxue
Copy link
Author

openai在封锁商用行为,需要研究一下如何解决

@transitive-bullshit
Copy link
Owner

This project is undergoing a major revamp; closing out old issues as part of the prep process.

The chatgpt package is pretty outdated at this point. I recommend that you use the openai package or the openai-fetch package instead.

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

2 participants