N
The Daily Insight

How do you fix a 502 Bad Gateway

Author

Lucas Hayes

Updated on April 21, 2026

Refresh the page. … Start a new browser session or load the site on a different browser. … Restart your computer and networking equipment. … Clear your cache and cookies. … Change your DNS server. … Contact the website administrator or your internet service provider.

What can cause 502 Bad Gateway?

What causes a 502 Bad Gateway error? Server overload: An overloaded server is one of the most common causes of a 502 error. This is where the server has reached its memory capacity, often activated by an unusually high number of visitors trying to access the same website.

How do I fix Error 502 on Google?

  1. Check Website Server Status.
  2. Identify and Remove Extensions via Incognito Mode.
  3. Clear Browser Cache and Cookies.
  4. Clear DNS Cache.
  5. Change Network DNS Addresses.
  6. Bottom Line: Fix 502 Bad Gateway Nginx.

Is 502 Bad Gateway a virus?

Mostly, the 502 errors are the result of bugs in the PHP or the Server configuration or network error among servers. There is nothing wrong with your computer or your internet connectivity.

What do 502 and 504 status code mean?

502 and 504 errors are related to a bad gateway, meaning that while the reverse proxy server is operational, something it needs to collect from the origin server is not working, or the connection between the reverse proxy server and the origin server is broken.

What is Apple's 502 Bad gateway?

A 502 HTTP error code would indicate that a server, that is acting as a gateway/proxy, got an invalid response from another another server upstream of it. You mentioned that you are only having this issue when using a VPN through McAfee’s SafeConnect app.

What is a 502 proxy Error?

What’s an HTTP 502 An 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. … The timeout of the proxy was reached prior to the request completion. If the connection proxy > server drops.

How do I increase my gateway timeout?

  1. Open NGINX configuration file. Open terminal and run the following command to open NGINX configuration file in a text editor. …
  2. Increase Request Timeout in NGINX. …
  3. Restart NGINX.

How do I fix 502 Bad Gateway nginx?

  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.
Is 502 a timeout error?

What is 502 Gateway timeout error? A HTTP response code “502 gateway timeout” error indicates an invalid response from a back-end server to the edge server. … In addition, it may happen due to incorrect DNS settings, firewall blocks proxy server request and back-end server down.

Article first time published on

What are 503 errors?

The HyperText Transfer Protocol (HTTP) 503 Service Unavailable server error response code indicates that the server is not ready to handle the request. Common causes are a server that is down for maintenance or that is overloaded.

What causes 504 Gateway Time Out?

A 504 Gateway Timeout error indicates that the web server is waiting too long to respond from another server and “timing out.” There can be many reasons for this timeout: the other server is not functioning properly, overloaded, or down. The other server need not always be external (e.g. CDN, API gateway).

How do you clear your cookies on an iPhone?

  1. To clear your history and cookies, go to Settings > Safari, and tap Clear History and Website Data. …
  2. To clear your cookies and keep your history, go to Settings > Safari > Advanced > Website Data, then tap Remove All Website Data.

How do I empty the cache on my iPhone?

  1. Go to Settings (the app with the gear icon).
  2. Scroll down until you see Safari. Tap it. …
  3. Tap on Clear History and Website Data.
  4. A message will appear warning you that clearing your cache will remove history, cookies and other browsing data. Tap on “Clear History and Data.”

How do I stop and start nginx?

  1. sudo systemctl start nginx sudo systemctl stop nginx sudo systemctl restart nginx.
  2. sudo service nginx start sudo service nginx stop sudo service nginx restart.
  3. sudo /etc/init.d/nginx start sudo /etc/init.d/nginx stop sudo /etc/init.d/nginx restart.

What does nginx?

NGINX is open source software for web serving, reverse proxying, caching, load balancing, media streaming, and more. … In addition to its HTTP server capabilities, NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse proxy and load balancer for HTTP, TCP, and UDP servers.

How do I fix timeout error?

  1. Clear Browser Cache.
  2. Restart Internet Router.
  3. Check and Update Browser.
  4. Run Compatibility Mode.
  5. Disable Faulty Extensions.
  6. Use Browser’s Default Settings.
  7. Unblock Blacklisted Sites.
  8. Adjust the Lan Settings.

What is Proxy_send_timeout?

proxy_send_timeout Sets a timeout for transmitting a request to the proxied server. The timeout is set only between two successive write operations, not for the transmission of the whole request. If the proxied server does not receive anything within this time, the connection is closed.

What does error code 504 mean on Hulu?

This app gives unmatched video and best live TV streaming services and became more popular with the newer generation due to its stable and user-friendly interface and we can’t let an error ruin it.In simpler words, the Hulu error code 504 means that a server will not receive a timely response from another server while

What is the difference between 502 and 504?

A 502 bad gateway means that the server acting as the gateway received an invalid response from the main server. A 504 gateway timeout means that the server acting as the gateway didn’t receive a response at all from the main server.

What is 501 not implemented?

The HyperText Transfer Protocol (HTTP) 501 Not Implemented server error response code means that the server does not support the functionality required to fulfill the request. … 501 is the appropriate response when the server does not recognize the request method and is incapable of supporting it for any resource.

What does code 200 mean?

Successful. 200 – OK. The 200 status code is by far the most common returned. It means, simply, that the request was received and understood and is being processed.

What means 404 not found?

The HTTP 404 Not Found response status code indicates that the server cannot find the requested resource. Links that lead to a 404 page are often called broken or dead links and can be subject to link rot. A 404 status code only indicates that the resource is missing: not whether the absence is temporary or permanent.

How do I avoid 404 error?

  1. Redirect on-site. …
  2. Redirect from the host. …
  3. Submit new pages to the search engines. …
  4. Keep an eye on your page listings. …
  5. Get organised with updates.

Is a 504 Gateway Timeout my fault?

They are no fault of the client. Your request is good, but the server can not generate the requested resource. The 504 Gateway Timeout error indicates that your web server didn’t get a response on time from another server that it was accessing while trying to load the page.

How do I fix 504 Gateway Timeout error in Postman?

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.

How do I fix a 504 Gateway Timeout error in WordPress?

  1. Wait and Reload. …
  2. Turn off VPN. …
  3. Turn off Website Firewall. …
  4. Disable Your Network Proxy. …
  5. Change Your DNS Servers. …
  6. Clean up your WordPress Database. …
  7. Deactivate WordPress Plugins and Switch to Default Theme.

Can iPhone get viruses?

iPhone can’t get viruses, because iOS viruses are still only theoretical. It’s much more likely that you may need to delete malware from your Mac, remove viruses from a PC, or get rid of malware from your Android phone. If your iPhone says it has a virus, it’s probably something else.

What happens if I block all cookies?

Block cookies from other sites Tip: All cookies and site data from other sites will be blocked, even if the site is on your exceptions list.

Are cookies bad for iPhone?

And some privacy advocates recommend blocking cookies entirely, so that websites can’t glean personal information about you. That said, while occasionally clearing cookies can be beneficial, we recommend leaving your cookies enabled because blocking them leads to an inconvenient and unsatisfying web experience.

How do I clean my cache?

  1. On your Android phone or tablet, open the Chrome app .
  2. At the top right, tap More .
  3. Tap History Clear browsing data.
  4. At the top, choose a time range. To delete everything, select All time.
  5. Next to “Cookies and site data” and “Cached images and files,” check the boxes.
  6. Tap Clear data.