We sync with another platform, ERROR 504


#1

We sync to various online accounting system providers.
Our site syncs fine all the time, but after a few seconds the cloudflare error screen 504 arrives. In the background the sync continues flawless, but this error screen is something we would like to have removed.
We have excluded the specific address also from cloudflare, but that does not help.

Any idea how to solve this?


#2

A 504 error generally occurs when your origin server responds with that error code.

About timeouts:

  • Cloudflare will wait for a response for up to 100 seconds. If a timeout occurs before that, it means that your origin server has responded with a timeout (error 504).
  • If Cloudflare doesn’t get a response within 100 seconds, it will return with a 524.

Since you are getting a 504, you may want to look at adjusting the timeouts at your origin server. Cloudflare can’t do anything about this, and doesn’t offer any customisation regarding timeouts (unless on Enterprise plan).

For use cases like this, I recommend looking into a background queuing system instead.


#3

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