【WeChat applet】---- Solve request:fail url not in domain list

1. Error picture

Enter a picture description

2. Error reporting scene

In the online formal environment, the interface request of the big data buried point reports an error! ! !

3. Error analysis

  1. Unconfigured domain name: Configure the domain name of the request in the background of the WeChat public platform login applet;
  2. The configuration domain name tool is not refreshed: in the upper right corner of the tool = "Details = "Project Configuration = "Refresh, until the configured domain name is refreshed;
  3. Cache of the trial version or real device: directly delete the trial version or development version, and scan the code again to enter;
  4. Do not configure a domain name, and hope to access normally: In the upper right corner of the tool = "Details = "Local Settings = "Do not verify the legal domain name, check it.

4. No domain name configured

4.1 Development Management

Enter a picture description

4.2 Development Settings

Enter a picture description

4.3 Server domain name

Enter a picture description

4.4 Note: Ports can be configured

Enter a picture description

NOTE: Ports can be configured! ! ! Ports can be configured! ! ! Ports can be configured! ! ! Because my mistake is here, only the domain name is configured, and the error caused by the port is not configured.

5. Not refreshed

Enter a picture description

6. Trial version or real machine cache

Solution : Delete directly and scan the code again!

7. Do not verify legal domain names

Enter a picture description

8. Summary

  1. When you see an error, you know that the domain name is not configured, so configure the domain name directly without reading the document carefully, and the port number also needs to be configured;
  2. Various problems, certificates, etc. have been tested, and found no problems, and finally found that the port number is not configured;
  3. Please read the documentation carefully during development. If you are familiar with it, configure it directly according to experience, and do not read the documentation carefully.

Guess you like

Origin blog.csdn.net/m0_38082783/article/details/132411243