{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 60882f1f-676dc618-710dc5ca"}
{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 60882f11-240b1cf2-685b33b2"}
{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 60882f04-4d7f8e11-709f9f56"}
{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 60882ef8-53c9a80a-36b9ddc7"}
{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 60882ebe-55b0c6e3-50702744"}
{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 60882eb0-1d1cadb3-7ffdf9cb"}
{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 60882e71-79d7525a-4bad1fdf"}
{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 60882e62-5feaf2d3-020d5dd2"}
{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 60882e53-27b482ff-3c89254a"}
三四分钟内连续调了十多次https://api.weixin.qq.com/cgi-bin/media/get下载文件,其中只有穿插着一两次是成功的。上面这些都报失败
如果多个环境公用一个appId,是不是可能导致缓存下来的access_token也会失效
access_token 失效了吧
建议自己在url后面加一个debug=1,把hint值拿出来查下最终的入参
https://developer.work.weixin.qq.com/document/path/95359
可能入参的secret不是对应的环境的(我的是用生产的secret访问测试环境了)
可参考 https://www.jianshu.com/p/2474a375666f
微信Post请求发生错误!错误代码:40001,说明:invalid credential, access_token is invalid or not latest rid: 60df5898-08a374cd-0d7cd2a