Baidu Encyclopedia
A popular explanation.
1. What is 502 Bad Gateway error
In short, 502 is an error-type code bad gateway.
2. Causes of Errors
Connection Timeout We send a request to the server because the server is currently linked too much, causing the server to not give the normal response, resulting in such an error
3. Means of salvation
The best solution, of course, is to do it on the server, which is unlikely for everyone.
So what can we do to save it?
Frankly, it's simple.
IS-- refresh (not a general refresh OH)
The principle of refreshing: Many people may not know that there are two types of refreshes.
The so-called refresh is actually downloading data from the server to the local memory or hard disk buffer,
Then read the data from the local memory or hard disk to the browser to show us.
① Basic Refresh: Click Refresh or use F5 shortcut keys
A basic refresh might simply fetch data from the local hard disk to the browser, and not necessarily make a request to the server again.
Most users are often so refreshed, encountered 502 of the error will have no effect.
② from the server: If you re-click on the link you want to browse, you will find that the page that displays the "502 Bad Gateway" error message can be viewed normally after clicking the link.
Understand the truth. When you click on the page you want to browse the link, it will be downloaded from the server data.
The workaround is to refresh from the server: shortcut key Ctrl+f5, which is to resend the request to the server.
If the server can give you a normal response you can see the page.