mayooear / gpt4-pdf-chatbot-langchain

GPT4 & LangChain Chatbot for large PDF docs
https://www.youtube.com/watch?v=ih9PBGVVOO4
14.83k stars 3.01k forks source link

Running error:ETIMEDOUT #335

Closed YongjiangXu closed 8 months ago

YongjiangXu commented 1 year ago

I have something error, but i can't solve this, hope someone could help me: error Error: connect ETIMEDOUT 108.160.163.117:443 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) { errno: -4039, code: 'ETIMEDOUT', syscall: 'connect', address: '108.160.163.117', port: 443, config: { transitional: { silentJSONParsing: true, forcedJSONParsing: true, clarifyTimeoutError: false }, adapter: [Function: httpAdapter], transformRequest: [ [Function: transformRequest] ], transformResponse: [ [Function: transformResponse] ], timeout: 0, xsrfCookieName: 'XSRF-TOKEN', xsrfHeaderName: 'X-XSRF-TOKEN', maxContentLength: -1, maxBodyLength: -1, validateStatus: [Function: validateStatus], headers: { Accept: 'application/json, text/plain, /', 'Content-Type': 'application/json', 'User-Agent': 'OpenAI/NodeJS/3.2.1', Authorization: 'Bearer sk-xxx', 'Content-Length': 56 }, method: 'post', data: '{"model":"text-embedding-ada-002","input":"who are you"}', url: 'https://api.openai.com/v1/embeddings' },

JiqiY commented 1 year ago

got the same issue, checked everything not sure what went run. It seems like connection to OpenAI API is not successful

YongjiangXu commented 1 year ago

I succeeded later. I changed the agent to TUN mode. You can try it, I hope it will help you.

PinzheLiu commented 1 year ago

. I changed the agent to TUN mode

so how do you change the agent to TUN mode?

damonLi22 commented 12 months ago

I succeeded later. I changed the agent to TUN mode. You can try it, I hope it will help you.

I used vpn of clash, I enable the tun mode with clash gui. But the issue don't sovled. so how do you setup with tun mode?

damonLi22 commented 12 months ago

I succeeded later. I changed the agent to TUN mode. You can try it, I hope it will help you.

I used vpn of clash, I enable the tun mode with clash gui. But the issue don't sovled. so how do you setup with tun mode?

I succeeded . I changed the mode to tun mode with clash for windows.

dosubot[bot] commented 8 months ago

Hi, @YongjiangXu,

I'm helping the gpt4-pdf-chatbot-langchain team manage their backlog and am marking this issue as stale. The issue involves a connection timeout error (ETIMEDOUT) when making a POST request to the OpenAI API with specific configuration and data. It seems that changing the agent to TUN mode resolved the issue for some users, but there are follow-up questions about how to change the agent to TUN mode and set it up with specific VPN software.

Could you please confirm if this issue is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository? If it is, please let the gpt4-pdf-chatbot-langchain team know by commenting on the issue. Otherwise, feel free to close the issue yourself, or the issue will be automatically closed in 7 days.

Thank you for your understanding and cooperation.