How to fix Error 502 Bad Gateway in Chrome γ€‘πŸ‘‰

Learn how to fix the 502 Bad Gateway error in Chrome. Try these working solutions to remove the Bad Gateway alert and load the website.

The other day I was trying to access a website through Chrome, but I always got the error message 502 Bad Gateway . In trying to better understand this query, I stumbled across this one and found that I wasn’t the only one struggling with this issue. So what led to this error?

Well, when an invalid request is sent from your browser to the web server (acting as a proxy/gateway), the latter will in turn give the response in terms of HTTP Code 502. In the end, you will be greeted with the message 502 Bad Gateway error.

So how could this problem be rectified? Well, in most cases, the problem comes from the server side. And dealing with these upstream servers is not something that is under your control. The website administrator should fix the problem.

That said, sometimes the problem could be related to your browser or internet settings, which you could easily modify and thus fix the 502 Bad Gateway error.

And this guide will make you aware of that. So without further ado, let’s get started.

Check website server status

First of all, you need to verify that the site is up and running. For that, you can take the help of a third party site like DownDetector or try a different web browser. If there are no server issues, try reloading the website in question.

For that, use the Ctrl + R shortcut key combinations or click the one to the left of the Omnibox. If the problem persists, it’s time to try other solutions listed below.

Identify and remove extensions via incognito mode

is used for a safe browsing experience. Apart from that, it also provides a close stock experience by disabling all third-party trackers and extensions by default.

See also  What is IPFS? IPFS support to Chrome, Brave and Firefox

Consequently, if the problem is due to any of these plugins, it would not appear in this private mode. Use the shortcut key combinations Ctrl + Shift + N to open a new incognito window.

Now try to access the site. If the site works normally now, then it’s time to say goodbye to one of those extensions.

Here are the steps to disable and remove the culprit extension from Chrome :

  • Open a normal window and go to chrome://extensions/page.
  • Now disable the toggle next to each of the extensions until you can no longer re-create the problem.
  • Hit the Remove next to the last extension that came out as the culprit.

While these extensions end up adding more to the overall productivity, but if it points to a bug then it is better to remove them in that very case.

Clear browser cache and cookies

If a lot of temporary data accumulates over time, it could conflict with the proper functioning of the PC.

While not network side related, some users were able to rectify the issue 502 Bad Gateway after doing this solution.

Here are the quick steps to clear Chrome browsing data :

start the .

  • visit the page Clear browsing data by entering the following URL
  • chrome://settings/clearBrowserData
  • Now select Cookies and other site data and Cached images and files .
  • Hit the Delete data and wait for the process to complete.

Now check whether you can visit that site or not.

While this tweak has worked for some, it turned out to be a temporary fix. Users had to clear their browser cache and data every few days, which in turn ended up disrupting their normal workflow.

See also  How to protect your privacy online with Tor Browser πŸ₯‡

Clear DNS cache

The domain server cache stores temporary data related to the websites you visit. Since the browser can directly fetch the cache data, it results in faster loading speed of these sites.

However, even if the cache data gets corrupted, this would have negative consequences. So the best option is to delete the DNS cache.

Here are the steps to clear DNS cache of Windows operating system :

  • go to start menu and search for CMD.
  • Then start this window symbol of the system What administrator .

Now type the following command and hit Enter to clear all cache related to

DNS.ipconfig /flushdns

As soon as it is done, restart the browser and check if it fixed the 502 Bad Gateway error or not.

Clearing the DNS cache can slow down the loading speed of the website when it is first opened. But if it fixes the 502 Bad Gateway problem, then it’s worth the compromise.

Change network DNS addresses

Your ISP provides you with the default DNS, however there is always the option to change to another. And this is what we would be doing here.

By switching to Google Public DNS, we could verify if the problem was related to our default DNS or not.

Here are the steps to change DNS address in Windows OS :

Right-click on the wifi icon present on the taskbar and select Open network and internet settings .

Select the options Change adapter and it will take you to the list of available networks.

Right click on the connected network and select Properties.

See also  How to browse in incognito mode in Chrome πŸ₯‡γ€γ€‘

Now scroll down to the section Internet Protocol version 4 and clickProperties.

Then select the option Use the following DNS server addresses .

Type 8.8.8.8 for Preferred DNS Address and 8.8.4.4 for Alternate DNS Address.

Finally hit okay to save the changes and try to access the site.

If you can do it now, it is recommended to stick with this DNS, at least for the time being.

Please note that this change is at the device level and will only be adopted by the device (laptop/PC) on which you have performed the steps. All other devices connected to this network will continue to use the original DNS.

Bottom line: Fix 502 Bad Gateway Nginx

On that note, we completed this guide on how to fix the Error 502 Bad Gateway Nginx in Chrome. We have shared different types of solutions that could point you to success.

While the problem usually stems from the website server, in some cases the aforementioned browser-side tweaks end up fixing the problem.

In my case, I first checked the website on a to check if the problem was on my side. And yes, the page was loading in the Edge browser. So I cleared the Chrome browser browsing data as well as the DNS cache which fixed the issue.

In addition to discovering how to fix 502 Bad Gateway Error in Chromebelow you can see more related topics of related to this article:

Loading Facebook Comments ...
Loading Disqus Comments ...