Getting 504 error on my website

Inside CF panel, change orange cloud to gray for your website. This will remove CF proxy and you just connect to your website directly. Test with gray icon and see what happens.

Still a client issue is on the top of the list. Here are few things to do to resolve error 504 at client side (just the first part).