search

Home  >  Q&A  >  body text

How to solve this pitfall of WeChat Mini Program 40029

WeChat applet pays to get openid and {"errcode":40029,"errmsg":"invalid code, hints: [ req_id: PJo8ra07453119 ]"} appears. How to solve it

长路漫漫,代码作伴长路漫漫,代码作伴2283 days ago1857

reply all(2)I'll reply

  • 小公

    小公2018-09-04 21:12:23

    During the development process of WeChat, when obtaining snsapi_userinfo based on the callback code, an error message {"errcode":40029,"errmsg":"invalid code"} was encountered. Later, it was found that the reason was because during the debugging process of its own internal service, the error message was The code is used twice, causing this error to be prompted. So, if anyone encounters this prompt, please be sure to check whether the code is used twice.

    reply
    0
  • 长路漫漫,代码作伴

    The background processing is based on the website video. How can the code in the PHP sdk downloaded by the modified (WeChat payment) appear and be used twice?

    长路漫漫,代码作伴 · 2018-09-05 11:16:25
  • Cancelreply