Cloudflare returns 504 on long polling endpoint

What is the name of the domain?

Not relevant

What is the error number?

504

What is the error message?

Gateway time-out

What is the issue you’re encountering

Cloudflare is returning HTTP 504 on my long polling endpoint requests

What are the steps to reproduce the issue?

I have an API which has an endpoint for long polling (other options such as web sockets are not possible). However as my endpoint makes the request hang for 60s before responding cloudflare is returning a 504 error. Is there a way to avoid this without lowering my timeout or upgrading to the enterprise plan?

This topic was automatically closed after 15 days. New replies are no longer allowed.