502 error gateway

Hi All,
Do you know why do I receive this (below)? website was working fine today.

A 502 error? For a 502 error, include 502 in your post & click 502 for a 502 CommunityTip. Of :search: for 502

The 502/504 errors are caused by a problem connecting to an upstream server - meaning your server is trying to initiate a process and this fails to work as expected or times out. In most cases of 502 / 504 errors, back-end servers are not communicating correctly. When this happens, you will see color page with Cloudflare branding and the Error 502 Bad Gateway or Error 504 Gateway Timeout. Review this Community Tip for fixing 502 or 504 gateway errors.

Thank you, so I have domain - hosting - cloudflare. You are saying that this 502 is coming from the hosting and not the cloudflare (dns records)?

Most likely, particularly if it’s a “pretty” (in color) error page as opposed to this not as nice page we present if it’s a cf error
Screenshot 2023-10-18 at 3.59.17 PM

I’d start with your origin (hosting) server logs and see if your host can help to identify the errors. Problem with these errors is that any device along the way can throw the error, they are always difficult to troubleshoot.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.