How to solve 502 bad gateway

藏色散人
Release: 2019-03-06 14:36:28
Original
102692 people have browsed it


502 Bad Gateway error is an HTTP status code that indicates that one server on the Internet received an invalid response from another server.

How to solve 502 bad gateway

In the previous article, I have given you a detailed introduction to what 502 bad gateway means and some of the reasons for this error. Summarize.

So how do we solve the 502 bad gateway error?

502 Bad Gateway error is usually a network error between servers on the Internet, or because there is a problem with your computer or Internet connection.

So we can try the following solutions:

1, Try loading the URL again by pressing F5 or Ctrl-R on the keyboard or clicking the refresh/reload button .

While a 502 Bad Gateway error usually indicates a network error outside of your control, it may be temporary. Trying the page again usually succeeds.

2. Close all open browser windows, then open a new window and start a new browser session. Then try opening the web page again.

The 502 error you receive may be due to a problem on your computer that occurs while you are using the browser. Simply restarting the browser program itself may resolve the issue.

3, Clear the browser’s cache. Expired or corrupted files stored by the browser can cause 502 Bad Gateway issues.

If this is the cause, deleting these cached files and trying the page again will resolve the issue.

4, Delete browser cookies. For similar reasons to cache files above, clearing stored cookies may fix 502 errors.

If you don't want to clear all cookies, you can first try deleting the cookies associated with the website where you received the 502 error. It's best to delete them all, but it won't hurt to try to figure out which one applies first.

5, Start the browser in safe mode. Running the browser in safe mode means running the browser with default settings, without add-ons or extensions (including toolbars).

If you no longer get 502 errors when running your browser in safe mode, you know that some browser extension or setting is causing the problem. Restore browser settings to defaults and/or selectively disable browser extensions to find the root cause and permanently resolve the issue.

The browser's safe mode is similar to the safe mode in Windows, but it is not the same thing. You don't need to start Windows in Safe Mode to run any browser in its specific "Safe Mode".

6, Try other browsers. Popular browsers include Firefox, Chrome, Internet Explorer, and Safari, among others.

If the alternate browser does not produce a 502 Bad Gateway error, you now know that the original browser is the source of the problem. Assuming you've followed the troubleshooting advice above, it's time to reinstall the browser and see if that resolves the issue.

7, Restart the computer. Some temporary issues with your computer and how it connects to your network can cause a 502 error, especially if you see the error on multiple websites. In these cases, a reboot can help.

8, Restart the network device. Problems with your modem, router, switch, or other network equipment can cause 502 Bad Gateway or other 502 errors. Simply restarting these devices may help.

The order in which you turn off these devices is not particularly important, but be sure to turn them back on.

9, Change the DNS server on the router or computer or device. Some bad gateway errors are caused by temporary problems with the DNS server.

Unless you have changed them before, the DNS servers you configure now are probably the ones automatically assigned by your ISP.

10, Contact the website directly. There may be a problem with the website program. Just contact the website administrator and ask them to correct the cause of the 502 Bad Gateway error.

11, Contact your Internet service provider. If your browser, computer, and network are all working properly, and the website is reporting that the page or site is working for them, then the 502 Bad Gateway issue may be caused by a network issue that your ISP is responsible for.

This article is about how to solve the 502 bad gateway error. I hope it will be helpful to friends in need!


The above is the detailed content of How to solve 502 bad gateway. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!