Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

502 Bad Gateway: What It Means and What You Can Do

Learn why a website returns a 502, what to try as a visitor, and which upstream logs to check if you run the site.

Table of Contents

A 502 Bad Gateway error means a gateway or proxy received an invalid response from another server it relies on. It’s usually a problem along the website’s server path. Clearing all your browser data or testing your internet speed is rarely the first useful step.

If you’re visiting the website

  1. Wait briefly, then reload once. If the error followed a payment or form submission, check for a receipt or confirmation before submitting again.
  2. Open a different website. If only one site fails, check its status page or try again later. You can also use the HTTP status checker in the TipsMake tools directory for a second view of a public URL.
  3. Try a private window if the site works for other people but consistently fails in your regular browser. If that helps, troubleshoot that site’s data or extensions before deleting your full browsing history.

If you manage the website

Find the failed request in the gateway or reverse proxy logs and match its time or request ID with the upstream application logs. Verify that the upstream service is running and reachable from the proxy. If the failures began after a deployment, compare the upstream hostname, port, and protocol with the last working configuration. See the MDN reference for HTTP 502.

Older Chrome screenshots

These screenshots show where earlier Chrome versions stored browsing history and site-data controls. Use them only if testing points to a browser-specific problem.

Error 502 Bad Gateway and how to fix it Picture 1

Error 502 Bad Gateway and how to fix it Picture 2

Error 502 Bad Gateway and how to fix it Picture 3

Error 502 Bad Gateway and how to fix it Picture 4

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.