504 Gateway


Hi guys

We have received an error on OB-One "504 Gateway timeout". After reading up this is what I've found:

""The 504 Gateway Timeout error is an HTTP status code that means that one server did not receive a timely response from another server that it was accessing while attempting to load the web page or fill another request by the browser. Most of the time, this means that the other server is down or not working properly."

We are on our own infrastructure on AWS.

Could this be an AWS issue?


Hi Jean,

Although that's not exactly an OutSystems related issue, in principle it is possible the issue is related to Amazon's Load Balancer but it's very unlikely. Proxy and firewalls are a more likely cause.

A 504 Gateway Timeout happens when one of the network elements (load balancer, proxy, firewall...) is configured to wait for less time then the required for the request to executed on the server. 

The OutSystems Platform is configured by default to have a 120 seconds max request time, and  I never saw a 504 gateway timeout on AWS's load balancers so they should be configured to wait more than that.

Hence, it's likely the timeout is occurring on another network element in the path between the computer that's making the request and AWS being proxys and firewalls the most commons culprits.