100 second timeout for long waiting respond probably due to cloudflare http request #6082
Replies: 2 comments 4 replies
-
maybe can add a ping/keepalive mechanism to prevent the timeout? |
Beta Was this translation helpful? Give feedback.
-
If Cloudflare is severing the connection at the network level, there's unfortunately no client-side code that can prevent this |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
When using reasoning models like gpt o1, o3 mini. Or long response model like perplexity deep research. Users need to wait for very long. Typically around a bit more than 100 seconds.
It will return a message "error connecting to server, try refreshing the page"
I found when I use it locally it, it won't happen.
I also tried not using my cloudflare domain, using ip directly from the digital ocean server. It works as well. It's able to generate response even after couple minutes.
It seems like the issue is due to cloudflare. I did some research and found it has a 100 second time out for http response, and to increase the time out limit I need a enterprise plan which is super expensive.
I found other proxy provider has this limit as well typically. Most not going to be long enough for long reasoning or deep research.
Version Information
Using via Docker on Ubuntu 22.04 remote hosting on digital ocean
ghcr.io/danny-avila/librechat-dev-api latest cc3a32f30b70 23 hours ago
ghcr.io/danny-avila/librechat-dev latest 81d75551748c 4 months ago
ghcr.io/danny-avila/librechat-rag-api-dev-lite latest 1acf95644082 4 months ago
Steps to Reproduce
step 1: use a proxy service like cloudflare. use librechat through domain
step 2: use a model that requires long waiting time to generate response. perplexity new deep research api seems to be easiest to reproduce. gpt o1, o3 on hard task can as well.
step 3: wait more than 100 second, the timeout error appears
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
Code of Conduct
Beta Was this translation helpful? Give feedback.
All reactions