
[Solution] 502 Bad Gateway Error
- Try loading the URL again by pressing F5 or Ctrl+R (Command+R on a Mac) on your keyboard, or by selecting the refresh/reload button.
- Start a new browser session by closing all open browser windows and then opening a new one.
- Clear your browser's cache.
- Delete your browser's cookies.
How to solve 502 Bad Gateway issues?
- Perform a hard refresh in your browser. On Macs, this is done by pressing Cmd + Shift + R.
- Clear your browser cache and delete cookies. Your browser may be holding on to certain files that were saved once you visited the website with a 502 error.
- Restart your computer/networking equipment
- Change your DNS servers. ...
How to resolve a 502 Bad Gateway error?
How to resolve 502 Bad Gateway Error?
- b) Clear Browser Cache. If the first step does not resolve the issue, then there is a chance that a specific cached file is causing the issue.
- c) Try a Different Browser. Checking the connection using a different browser or incognito mode is also a great idea. ...
- d) Flush DNS. ...
- e) Check Error Logs. ...
- f) PHP Timeout. ...
What does a 502 Bad Gateway mean?
The 502 Bad Gateway error is an HTTP status code that means that one server on the internet received an invalid response from another server. 502 Bad Gateway errors are completely independent of your particular setup, meaning that you could see one in any browser, on any operating system, and on any device.
What does 502 Bad Gateway error mean?
The 502 or “Bad Gateway” error means that a server received an invalid response from another server further upstream. Basically, something went wrong somewhere and the upstream server couldn't fulfill the request. The domain name is not resolvable (for instance, because of recent changes to your DNS server)
Why is my 502 bad gateway?
What Causes a 502 Bad Gateway Error?
Why is my browser saying 502?
What is HTTP error 502.1?
What is the error 502?
What does 502 mean?
What to do if you get 502 error?
See 4 more
About this website

How do you fix a 502 Bad gateway?
How to Fix a 502 Bad Gateway ErrorReload the page.Look for server connectivity issues.Check for any DNS changes.Sift through your logs.Fix faulty firewall configurations.Comb through your website's code to find bugs.Contact your host.
Is a 502 Bad gateway my fault?
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 fix 502 bad gateway in Chrome?
How to Fix 502 Bad Gateway ErrorRefresh the Page. The first solution is a fairly simple one – wait around for a minute or two and refresh the web page you're on. ... Clear Browser Cache. ... Try in Incognito Mode. ... Flush DNS Servers. ... Test on Another Device. ... Check Error Log. ... Check Plugins and Themes. ... Check CDNs.More items...•
What causes 504 gateway Time Out?
A 504 Gateway Timeout Error means your web server didn't receive a timely response from another server upstream when it attempted to load one of your web pages. Put simply, your web servers aren't communicating with each other fast enough.
What does can't contact gateway mean?
This error indicates that Sense is able to see the address of the gateway, but is unable to communicate with it. This is usually caused by: Local network connectivity problems: One or more of the links in your local network may be malfunctioning, or may be saturated by traffic, or may have low signal strength.
How do I clear my browser cache in Google Chrome?
In the Chrome appOn your Android phone or tablet, open the Chrome app .At the top right, tap More .Tap History. Clear browsing data.At the top, choose a time range. To delete everything, select All time.Next to "Cookies and site data" and "Cached images and files," check the boxes.Tap Clear data.
What is an error 500 internal server error?
The HTTP status code 500 is a generic error response. It means that the server encountered an unexpected condition that prevented it from fulfilling the request. This error is usually returned by the server when no other error code is suitable.
What do you mean by gateway Timeout?
The 504 (Gateway Timeout) status code indicates that the server while acting as a gateway or proxy, did not receive a timely response from an upstream server it needed to access in order to complete the request. The error may be a temporary occurrence due to too much traffic toward the server or site.
Network Security Group, User Defined Route, Or Custom DNS Issue
If access to backend is blocked due to presence of NSG, UDR or custom DNS, Application Gateway instances will not be able to reach the backend pool...
Problems With Default Health Probe
502 errors can also be frequent indicators that the default health probe is not able to reach back-end VMs. When an Application Gateway instance is...
Problems With Custom Health Probe
Custom health probes allow additional flexibility to the default probing behavior. When using custom probes, users can configure the probe interval...
Unhealthy Instances in Backendaddresspool
If all the instances of BackendAddressPool are unhealthy, then Application Gateway would not have any back-end to route user request to. This could...
How to Fix 502 Bad Gateway Error Easily? - Cigati Solutions Blog
Mukul Tripathi is a Technical Expert at Cigati Solutions. He is a technical expert in the field of Email Migration and Data Recovery. He loves to troubleshoot Email Clients related to Microsoft Exchange/Outlook issues.
How to Solve 502 Bad Gateway Issues? - KeyCDN Support
Having issues with a 502 Bad Gateway error? This guide gives you practical tips to solve origin not reachable problems.
What is a 502 Bad Gateway Error, and How to Solve It?
Related Posts: Integrating Stripe Connect Payment Gateway in Mobile Apps; Proxy Server: Complete Guidelines for Using Proxy Server; What is the Distinction between a Website and a Portal?
502 Bad Gateway: What Is It and How to Fix It - Exai
Sometimes, 502 Bad Gateway errors are caused by DNS problems. Although this happens rarely, it wouldn't hurt to try. Your DNS servers are most likely set by your ISP. You can easily change them to a third-party DNS server like Google DNS or OpenDNS.
What is a 502 Bad Gateway Error?
A 502 Bad Gateway Error means that the web server you’ve connected to is acting as a proxy for relaying information from another server, but it has gotten a bad response from that other server. It’s called a 502 error because that’s the HTTP status code that the webserver uses to describe that kind of error.
Why is my browser saying 502 bad gateway?
It’s possible that an issue with your browser might be causing the 502 Bad Gateway error. One easy way to check this out is to use a different browser and see if it works. You can use Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge. If you can see the error in the new browser as well, then you know it’s not a browser issue, and you should try another solution.
Why is my browser 502?
If trying a different browser works, it’s possible that your main browser has cached outdated or corrupt files that might be causing the 502 error . Removing these cached files and trying to open the website could solve the problem.
How to fix 502 error?
Most browsers allow you to refresh the page by pressing Ctrl+R on Windows or Cmd+R on Mac, and also provide a Refresh button somewhere on the address bar.
What is error 502?
502 Server Error: The server encountered a temporary error and could not complete your request
What browsers can I use to fix my browser error?
You can use Google Chrome, Mozilla Firefox, Apple Safari, or Microsoft Edge . If you can see the error in the new browser as well, then you know it’s not a browser issue, and you should try another solution.
What to do if you can't reach a website?
Whenever you fail to reach a site (for whatever reason), you can also check if it’s just you that’s having a problem connecting, or if other people are having the same trouble. There are lots of tools out there for this, but our favorites are isitdownrightnow.com and downforeveryoneorjustme.com. Both work pretty much the same. Type in the URL you want to check, and you’ll get a result like this.
What is a 502 bad gateway error?
In the case of a 502 bad gateway error, the server acting as the gateway, or proxy, received an invalid response from the main server that’s upstream.
Why are you seeing a 502 error?
There are a handful of possibilities as to why the 502 error message is appearing on the website you’re trying to access.
What to do if you have a 502 error?
If you previously visited a site with a 502 error and the files were saved, clearing your cache and cookies is a smart idea. Keep in mind that cookies keep track of where you’ve been on a site, what you like on the site, etc. Cache equates to speed so when you clear it, loading time should be faster.
What is error 502?
A 502 error is one of many HTTP status codes and it’s also fairly common. You might also see it show up as: 1 error 502 2 502 error 3 HTTP 502 4 502 service temporarily overloaded 5 502 bad gateway NGINX
What is a 502 Bad Gateway Error?
The 502 Bad Gateway error specifically means that the server received an invalid response from an inbound server.
How to fix 502 bad gateway?
One of the easiest and first things you should try when encountering a 502 bad gateway error is to simply wait a minute or so and reload the page (F5 or Ctrl + F5) . It could be that the host or server is simply overloaded and the site will come right back. While you’re waiting, you could also quickly try a different browser to rule that out as an issue.
What happens if you get 502 error?
Unlike 503 errors, which are used for WordPress maintenance mode and tell Google to check back at a later time, a 502 error can have a negative impact on SEO if not fixed right away. If your site is only down for say 10 minutes and it’s being crawled consistently a lot of times the crawler will simply get the page delivered from cache. Or Google might not even have a chance to re-crawl it before it’s back up. In this scenario, you’re completely fine.
Why is my WordPress site not responding to 502 gateway?
A 502 gateway error could also be because of a DNS issue, such as the domain is not resolving to the correct IP, or the DNS server is not responding. If you have just migrated your WordPress site to a new host, is it important to wait for things to fully propagate, which can take up to 24 hours in some cases.
What is 502 in web server?
And here is yet another variation. “502 – Web server received an invalid response while acting as a gateway or proxy server. There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.”
What does 500 error code mean?
These indicate that the request was accepted, but the server prevented the fulfillment of the request.
Where to find error logs on Kinsta?
You should also take advantage of your error logs. If you are a Kinsta client, you can easily see errors in the log viewer in the MyKinsta dashboard. This can help you quickly narrow down the issue, especially if it’s resulting from a plugin on your site.
Why is my gateway not reaching the backend pool?
If access to the backend is blocked because of an NSG, UDR, or custom DNS, application gateway instances can't reach the backend pool. This causes probe failures, resulting in 502 errors.
What happens if a gateway has no VMs?
If the application gateway has no VMs or virtual machine scale set configured in the back-end address pool, it can't route any customer request and sends a bad gateway error.
How does a user request work in a gateway?
When a user request is received, the application gateway applies the configured rules to the request and routes it to a back-end pool instance. It waits for a configurable interval of time for a response from the back-end instance. By default, this interval is 20 seconds. In Application Gateway v1, if the application gateway does not receive a response from back-end application in this interval, the user request gets a 502 error. In Application Gateway v2, if the application gateway does not receive a response from the back-end application in this interval, the request will be tried against a second back-end pool member. If the second request fails the user request gets a 502 error.
What happens if backend address pool is unhealthy?
If all the instances of BackendAddressPool are unhealthy, then the application gateway doesn't have any back-end to route user request to. This can also be the case when back-end instances are healthy but don't have the required application deployed.
What is the host name of a gateway?
If the application gateway is configured for a single site, by default the Host name should be specified as 127.0.0.1, unless otherwise configured in custom probe.
What is application gateway?
Application Gateway allows you to configure this setting via the BackendHttpSetting, which can be then applied to different pools. Different back-end pools can have different BackendHttpSetting, and a different request time-out configured.
What to do if the preceding steps don't resolve the issue?
If the preceding steps don't resolve the issue, open a support ticket.
Why is my 502 bad gateway?
The second most common reason for “502 bad gateway” in Nginx is high load average in backend servers. Load spikes cause services to not respond. Sudden spike in website traffic (can be seasonal or marketing / promotional). Malware infection on the server.
Why is my web server showing a scary looing error?
If your web server logs show a scary looing error like this, it is possible that our application code is incompatible with the server version.
What are the problems with Nginx?
Some configuration issues that we’ve seen are: 1 DNS resolver misconfigured in Nginx causing domain lookups to fail. 2 DB login details set incorrectly after a recent migration, restore or upgrade. 3 Apache firewall settings (mod_security) syntax error causing Apache to crash. 4 Incorrect memory or file limits set for PHP applications. 5 Capacity limits (like no: of connections per IP) set too restrictively causing legit visits to fail. 6 ..and more
Why does Nginx say 3 word error?
3 word error message – because Nginx doesn’t love you. That’s why.
What is a service port blocked in firewall?
Service port blocked in firewall. Firewalls are the bedrock of server security. But if not setup right, these firewalls can cause legitimate requests to be blocked or services to fail. For instance, in Linux servers that run Plesk automation suite, Nginx runs on port 80, and Apache runs on port 7080.
What to do if you find a non-standard port?
and if we find any service running in non-standard ports, we either change the service configuration to change it to a standard port, or edit firewall config to allow the non-standard port.
What causes a service failure?
The reasons for service failure can range from traffic spikes and resource limits to disk errors and DDoS attacks.
What is a 502 bad gateway?
A 502 bad gateway error is typically a problem with the network/server, however, it can also be a client-side issue. So we’ll dive into a little of both. Check out these common causes and ways to fix the 502 bad gateway error to and get back up and running.
How to fix Gateway error?
To fix this issue All you have to do is Just Restart your browser or Refresh your website page by essentially tapping on the Refresh button. Or on the other hand, to restart your browser you simply close the present browser and revive it after some time. To invigorate the site page you can likewise press the F5 key or Ctrl+R button.
How to invigorate a site?
To invigorate the site page you can likewise press the F5 key or Ctrl+R button. Restart your internet Device- In some cases, this error likewise produces because of a problem with your internet modem and it should be checked and appropriately configured.
How to fix internet modem not working?
You should simply, restart it, Just switch off the force wellspring of your web modem and hang tight for some time except if the Led lights on modem appropriately turn off. In the wake of sitting tight for around 10 to 15 seconds again turn on the force supply and check in the event that it works or not.
What does '502 bad gateway' mean?
The hypertext transfer protocol (HTTP), a set of rules that regulate the web released by the Internet Engineering Task Force (IETF), governs every internet transaction. In the HTTP system, problems have numbers.
What happens if you wait a moment to reload a website?
Reload. Simple traffic problems may fade if you wait a moment and try the site again.
How to test if a server is accessible?
Testing. Use a ping or traceroute to determine if your server is even accessible.
What are the three tasks of troubleshooting?
Troubleshooting can be divided into three distinct tasks, in sequential order: Observe and monitor application behavior. Collect data. Mitigate the issue. App Service gives you various options at each step. 1. Observe and monitor application behavior.
How to access App Service Diagnostics?
To access App Service diagnostics, navigate to your App Service app or App Service Environment in the Azure portal. In the left navigation, click on Diagnose and solve problems.
Why is my 502 bad gateway?
Contact your internet service provider. If your browser, computer, and network are all working and the website reports that the page or site is working for them , the 502 Bad Gateway issue could be caused by a network issue that your ISP is responsible for.
What Causes a 502 Bad Gateway Error?
Bad Gateway errors are often caused by issues between online servers that you have no control over. However, sometimes, there is no real issue but your browser thinks there's one thanks to a problem with your browser, an issue with your home networking equipment, or some other in-your-control reason.
Why is my browser saying 502?
It's possible that the 502 error you received was due to an issue on your computer that occurred sometime during this use of your browser. A simple restart of the browser program itself could solve the problem.
What is HTTP error 502.1?
An HTTP Error 502.1 - Bad Gateway error refers to a CGI application timeout problem and is better to troubleshoot as a 504 Gateway Timeout issue.
What is the error 502?
Twitter's famous "fail whale" error that says Twitter is over capacity is actually a 502 Bad Gateway error (even though a 503 Error would make more sense).
What does 502 mean?
The 502 Bad Gateway error is an HTTP status code that means that one server on the internet received an invalid response from another server.
What to do if you get 502 error?
If you'd rather not clear all of your cookies, you could first try removing only those cookies related to the site you're getting the 502 error on. It's best to remove them all but it won't hurt to try the clearly applicable one (s) first.

What Is A 502 Bad Gateway Error?
How to Fix The 502 Bad Gateway Error
- A 502 bad gateway error is typically a problem with the network/server, however, it can also be a client-side issue. So we’ll dive into a little of both. Check out these common causes and ways to fix the 502 bad gateway error to and get back up and running.
Summary
- As you can see there are quite a few things you can do to troubleshoot and fix a 502 gateway error on your WordPress site. Typically this is not on the client-side, but rather an issue with your host. Third-party plugins and themes with bad code or unoptimized queries are also things to watch out for. Was there anything we missed? Perhaps you have another tip on troubleshooting …
FAQ
- What Is a 502 Bad Gateway Error?
The 502 Bad Gateway error indicates that the serverreceived an invalid responsefrom an inbound server. - What Causes the 502 Error?
The 502 bad gateway error is typically caused by issues related to the network/server, however, it can also be caused by client-side issues.