How do I fix a bad gateway error?

How to Fix a 502 Bad Gateway Error
  1. Reload the page.
  2. Look for server connectivity issues.
  3. Check for any DNS changes.
  4. Sift through your logs.
  5. Fix faulty firewall configurations.
  6. Comb through your website’s code to find bugs.
  7. Contact your host.

What does a bad gateway error mean?

The HyperText Transfer Protocol (HTTP) 502 Bad Gateway server error response code indicates that the server, while acting as a gateway or proxy, received an invalid response from the upstream server.

What is the reason for 502 Bad gateway?

A 502 Bad Gateway Error occurs when you try to visit a web page, but one web server gets an invalid response from another. Normally, the problem is on the website itself, and there’s nothing you can do. Other times, this error occurs because of a problem with your computer or networking equipment.

How do I get rid of 502 bad gateway on Mac?

How to solve 502 errors as a visitor
  1. Perform a hard refresh in your browser. On Macs, this is done by pressing Cmd + Shift + R .
  2. Clear your browser cache and delete cookies. …
  3. Restart your computer/networking equipment.
  4. Change your DNS servers.

Is 502 Bad Gateway a virus?

There’s more than one reason you’re seeing a 502 Bad Gateway error. Most likely, it’s because the origin server your computer is communicating with is down completely. … Think of your firewall as a security system protecting your computer from harmful outsiders such as viruses, hackers, malware, and other dangers.