This particular request fails, because the server sends a request to a proxy, and gets a timeout error. Your server reports this back to you as status 504. The only way to fix it is to fix the proxy (make it respond in a timely manner), or to change the server to not rely on that proxy.
For More Information Please Refer:
You May Also Like to Read: