access_token 4001是怎么回事?查看失效时间还有5000多秒
描述:双机服务,获取token都从Redis获取,偶发性事件,token不定时会40001
调用接口:https://api.weixin.qq.com/wxa/business/getuserphonenumber
报错信息及时间:
2022-05-10 18:28:08.378 {"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 627a3e38-2e9cfa50-4125fed3"}
参数如下:{"access_token":"56_u_3ygL7z0XcXr5JAA26gf2yV2ULafSg0Dqpc1Zw6hvyDrLu2Z_gKZAhY9gtiZ8j_gQm_9oIObxBsAN0tYWh6SgIQcXC1VVVQLMz6zKLmb_p33q14WeFYU9b2obrvpKyOyOs0M9PwNs0ym9dCQQWjAHAJJP","code":"53d2b89677723ace2685f162ecec5f2bf5ad9536e5b3904004129f90dc2e493a"}
2022-05-10 18:29:05.606 {"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 627a3e71-11bfbf1e-5f5b7c19"}
参数如下:{"access_token":"56_u_3ygL7z0XcXr5JAA26gf2yV2ULafSg0Dqpc1Zw6hvyDrLu2Z_gKZAhY9gtiZ8j_gQm_9oIObxBsAN0tYWh6SgIQcXC1VVVQLMz6zKLmb_p33q14WeFYU9b2obrvpKyOyOs0M9PwNs0ym9dCQQWjAHAJJP","code":"2966e1ba45133ff24823305125a38192b234799081e3cb88af11875fb9540997"}
查看redis:
RW-SIM:11>get 'invest:redis_weixin_token'
"56_u_3ygL7z0XcXr5JAA26gf2yV2ULafSg0Dqpc1Zw6hvyDrLu2Z_gKZAhY9gtiZ8j_gQm_9oIObxBsAN0tYWh6SgIQcXC1VVVQLMz6zKLmb_p33q14WeFYU9b2obrvpKyOyOs0M9PwNs0ym9dCQQWjAHAJJP"
RW-SIM:11>ttl 'invest:redis_weixin_token'
"5147"