收藏
回答

网页授权 获取用户信息,errcode : 40001 , invalid credential,

请求 https://api.weixin.qq.com/sns/userinfo,间歇报错,token无效,大概从20年1月份开始有这个错误,有没有官方客服帮忙查询一下,下面的req_id的具体路径和错误原因


content:2021-02-20 15:15:24,101 [DubboServerHandler-172.16.1.251:20880-thread-530] INFO  [gateway] [TID: 25562.856.16138053239726229] PROVIDER : 响应entity:{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest, hints: [ req_id: hhJAv0I2e-9Qkj4a ]"},响应statusCode:200

content:2021-02-20 15:15:03,386 [DubboServerHandler-172.16.1.251:20880-thread-571] INFO  [gateway] [TID: 25561.934.16138053031926661] PROVIDER : 响应entity:{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest, hints: [ req_id: hhJAFe8FE-bJ2vra ]"},响应statusCode:200

content:2021-02-20 15:15:00,668 [DubboServerHandler-172.16.1.250:20880-thread-568] INFO  [gateway] [TID: 25560.1034.16138053002892611] PROVIDER : 响应entity:{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest, hints: [ req_id: hhJA0mnre-jtnp5 ]"},响应statusCode:200

content:2021-02-20 15:12:59,913 [DubboServerHandler-172.16.1.250:20880-thread-521] INFO  [gateway] [TID: 25561.986.16138051797636485] PROVIDER : 响应entity:{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest, hints: [ req_id: FhJA0mnre-jOCP6a ]"},响应statusCode:200

content:2021-02-20 15:12:35,464 [DubboServerHandler-172.16.1.81:20880-thread-591] INFO  [gateway] [TID: 25560.996.16138051553022297] PROVIDER : 响应entity:{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest, hints: [ req_id: FhJAoymoRa-o_LTSA ]"},响应statusCode:200




回答关注问题邀请回答
收藏

1 个回答

  • Listen
    Listen
    2021-02-20

    这种问题一般都是别的地方把你线上的access_token顶掉了。最有效的方法就是重置密钥

    2021-02-20
    有用
    回复 1
    • 👏卑微桃桃
      👏卑微桃桃
      2021-02-20
      这个是个人的access_token,不是应用级别的access_token,code换取access_token的时候是没问题的,但是access_token换取用户信息的时候就出问题,最有可能的就是,前端连续请求了两次授权导致
      2021-02-20
      回复
登录 后发表内容
问题标签