I have this problem on my own server
Normally 504 gateway timeout error is an HTTP status code that appears when one server does not receive a timely response from another server that acts as a gateway or proxy. In short, it means the server was unable to complete your request within the given time frame. Could you countercheck this with your IT personnel and see if there is an issue with how your servers are set up.
I could resolve that!