[WeChat Mini Program] Error {"errcode":41002,"errmsg":"appid missing, rid: 64e55770-67c1fb7e-027c5a70"}:


1. Error details:

(1) Backend:
insert image description here
(2) Frontend:
insert image description here

2. The reason for the error:

(1) The appids used by the front and back ends are inconsistent (WeChat Developer Tools/HBuilderX)
(2) Repeated requests, the incoming codes are inconsistent

3. Obtain WeChat appid and secret:

[WeChat public account platform] https://mp.weixin.qq.com/
[WeChat official document] https://developers.weixin.qq.com/miniprogram/dev/OpenApiDoc/user-login/code2Session.html

Guess you like

Origin blog.csdn.net/weixin_53791978/article/details/132445292