Many times you came across an error message showing “ Bad Gateway Error 502” on your web browser while surfing the internet. And at that instant, you have no clue what does that means or what went wrong with your site. It is the most common error which any user has to face while browsing and there are plenty of solutions available on the web, in which some of them are for developers and the easiest solutions are for users. First, you need to understand what is Bad Gateway error 502 or error 502 mean?



What is Error 502?

 Error 502 is another HTTPS status code that generates when a server receives an invalid response from the other server when they try to communicate. This Error mostly generates from the servers, and there is nothing to do with your Personal Computer. It can generate on any device from which you can access the internet such as Smartphones, Tablets, laptops, etc. For a different type of Web browsers like Google chrome, safari, firefox, etc. and Operating systems you can modify it as per your requirements.

 

Possible reasons for the error 502

There are plenty of reasons can trigger Error 502, But the most common possible reasons are as follows:

 

  • 1. Your System Firewalls
  • 2. CDN
  • 3. Problem with your DNS
  • 4. The issue between two servers

 

What can you do to fix Error 502?

 

  • Refresh the webpage- One of the most generally perceived and focal techniques a user can do is to resuscitate a web page at whatever point he/she experiences an error page on a browser. From this time forward, by far most of the HTTP 502 errors are temporary in nature in this way it will, in general, be eliminated by essentially doing a restart or refresh the site page. To do this, you ought to just tap on the refresh button on the upper left side of your browser where you insert the URL. Or you can also try combination keys to refresh your webpage, just press the Ctrl+R button.

 

  • Restart your internet devices-  To restart your internet devices/modem, the essential thing you need to do is switch off or unplug the power supply of your device and hold up until the LED lights absolutely turn off. Hold on for around 10-15 seconds and Replug the string and turn it on. Besides, believe that your PC will develop a Connection again.

 

  • Check DNS settings- Something different you can do is check your DNS records which can help with taking out Error 502. To a great extent, a Bad Gateway Error can happen related to your DNS records. It is in like manner possible you have not changed your DNS records, by then, you should check IP records and check if there is an error with it or not.
  • Remove Cache files and cookies- You likewise need to flush or erase your browser cookies and cache memory since it is additionally conceivable that your browser has put away Corrupt or obsolete information, which in result showing you up Bad gateway error message on your page. You should simply go to your browser settings and pick the choice to clear browser history wherein you will get an alternative to erase browser cookies and cache memory.