After authorizing the public account, refer to the public platform document to call the public account interface, and the prompt "40001 invalid credential, access_token is invalid or not latest hint: [EGO0oA0536vr47!]
" error, access_token has just been authorized It is obtained at the time, and it is normal to do web page authorization, but it fails to actively call the official account interface
For example: getting the user list
HTTP GET: https://api.weixin.qq.com/cgi-bin/user/get?access_token= HTTP RESPONSE: {"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest hint: [EGO0oA0536vr47!]"}
It was not considered that the access_token is too long, the received length is 138 characters, and the length reserved when creating the data table is not enough, and the stored access_token is incomplete,