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

Timeout was reached: [api.openai.com] Failed to connect to api.openai.com port 443 #61

Open
Eos-halo opened this issue Apr 14, 2024 · 4 comments

Comments

@Eos-halo
Copy link

res <- gptcelltype(markers, model = 'gpt-4')
[1] "Note: OpenAI API key found: returning the cell type annotations."
Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached: [api.openai.com] Failed to connect to api.openai.com port 443 after 10002 ms: Timeout was reached

Can anyone help me to solve the problem? Thanks a lot!

@yuanG2000
Copy link

hello,i got the same problem, would you find find the solution? thanks a lot

@CorradoLanera
Copy link

same as in #42 , It happens to me using gpt-4/-turbo models only... and quite always. For the moment, I have solved using Python library through {reticulate}... (I was not able to solve the issue trying any package or any direct call to curl endpoint, even tuning various timeouts settings... I decide it is an issue with R, or a preference on official python libraries from openai's server side...)

@Chen0907-colson
Copy link

same as in #42 , It happens to me using gpt-4/-turbo models only... and quite always. For the moment, I have solved using Python library through {reticulate}... (I was not able to solve the issue trying any package or any direct call to curl endpoint, even tuning various timeouts settings... I decide it is an issue with R, or a preference on official python libraries from openai's server side...)

Hi, bro. May I know how you connect it to Python? I also cannot solve this issue...

@CorradoLanera
Copy link

@Chen0907-colson, you can find my solution switching to Python here (which require a configured system, I assured by https://github.com/CorradoLanera/gpteasyr/blob/main/R/setup_py.R).

Anywhay, I have found a possible solution (@irudnyts) using connecttimeout_ms (as implemented here, which solved the same issue I had for file upload).

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

4 participants