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

question about UND_ERR_CONNECT_TIMEOUT #144

Closed
yuwangi opened this issue Mar 2, 2023 · 15 comments
Closed

question about UND_ERR_CONNECT_TIMEOUT #144

yuwangi opened this issue Mar 2, 2023 · 15 comments

Comments

@yuwangi
Copy link
Contributor

yuwangi commented Mar 2, 2023

image
All server requests are this error, and it can be started locally. Do you know the reason?

@waylaidwanderer
Copy link
Owner

What client are you using? Additionally, can you show me your settings.js if you use the API server?

@yuwangi
Copy link
Contributor Author

yuwangi commented Mar 2, 2023

@waylaidwanderer
For some reasons, I need to build a reverse proxy by myself. Is there any code that can be easily deployed?

@waylaidwanderer
Copy link
Owner

Not that I know of. So you're saying the issue is due to your internet connection?

@yuwangi
Copy link
Contributor Author

yuwangi commented Mar 3, 2023

I have a Korean server and want to use it for proxy

@waylaidwanderer
Copy link
Owner

Is the Korean server why you're getting UND_ERR_CONNECT_TIMEOUT? Or is this a new topic?

@yuwangi
Copy link
Contributor Author

yuwangi commented Mar 3, 2023

No, for some reasons, the domestic server api.openai.com is banned

@yuwangi
Copy link
Contributor Author

yuwangi commented Mar 3, 2023

So I want to set up a reverse proxy, through the Korean server

@aiqinxuancai
Copy link
Contributor

Is the Korean server why you're getting UND_ERR_CONNECT_TIMEOUT? Or is this a new topic?

I also have this problem with ChatGPTClient here, as far as I can see, it is an intermittent exception, maybe 1 minute in 10 minutes is completely normal, then the rest of the time all connections time out, this should not be a code level problem.
I think ChatGPTClient should also add “proxy” to its settings.

@waylaidwanderer
Copy link
Owner

I think this can be closed if #146 is merged.

@flyoverGu
Copy link

昨晚上好像域名被屏蔽了。
自己动手改下ChatGPTClient.js
image
image
后续我看作者也会支持代理了,临时改改

@yuwangi
Copy link
Contributor Author

yuwangi commented Mar 3, 2023

@flyoverGu thanks~ I have solved it in other ways

@clippers1
Copy link

@yuwangi how to solve

@yuwangi
Copy link
Contributor Author

yuwangi commented Mar 3, 2023

Forwarding through a three-party server by socket

@pfeducode
Copy link

i have same probelm, what's reason? i try to use vpn but it does not work.
Uploading image.png…

@waylaidwanderer
Copy link
Owner

Proxy support has been added in https://github.com/waylaidwanderer/node-chatgpt-api/releases/tag/v1.26.0 which should fix this.

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

6 participants