企业微信登录报如下错误,:
{errcode=50001.0, errmsg=redirect_uri unauthorized, hint: [1686110469354960069441853], from ip: 218.3.137.177, more info at https://open.work.weixin.qq.com/devtool/query?e=50001}
这个错误的意思是使用的access_token已经过期了,这时候你要检查一下你使用的access_token是否过期,过期了就要重新获取,检验是否过期地址:错误码查询工具 | 企业微信;
过期校验图:
沒有过期校验图:
如果过期了,就要重新获取 access_token了,access_token获取后过期时间是2个小时,要写一个方法定期更换access_token,否则就会报上面的错误,当然 ,你可以每次调用接口都去获取一下access_token,这样是肯定不会过期的,但是这种方法不推荐使用。