'
What does 502 mean:
The error is 502 Bad Gateway, indicating that the request is a problem after reaching the mini program's server, so Excluding external problems such as DNS resolution and network, based on the characteristics of 502, it is believed that the back-end application service cluster is down.
Possible reasons for service downtime:
Too many visitors: Due to this factor, generally when a few people are using it, they can log in normally. If there are more than a dozen people, dozens of people will be logged in. .
Solution:
There are many reasons for nginx to appear 502, but most of the reasons can be attributed to insufficient resources.
Needs to be redeployed.
Power outage, equipment damage: Usually load balancing (nginx) is used for high availability, such as common keepalive virtual IP drift, and back-end web services basically use clusters, and multiple devices are damaged at the same time. The probability is still extremely low, and the possibility is basically ruled out.
Release function: I believe that many programmers and classmates have encountered it, and have even dug such a hole once. The functional test environment verified that it was normal, but as soon as it was released, the entire system failed. The reason for the failure. Various, depending on different environments, different packages, inconsistent configurations, logic errors, etc. This seems to be the most likely, because this kind of thing is too familiar_
Recommended tutorial: " WeChat Mini Program》
The above is the detailed content of What does WeChat Mini Program 502 mean?. For more information, please follow other related articles on the PHP Chinese website!