建议自己在url后面加一个debug=1,把hint值拿出来查下最终的入参 https://developer.work.weixin.qq.com/document/path/95359 可能入参的secret不是对应的环境的(我的是用生产的secret访问测试环境了)
如何解决invalid credential, access_token is invalid ?{"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下载文件,其中只有穿插着一两次是成功的。上面这些都报失败
2022-03-01