为什么会出现 code 被使用两次了(这是debug.log打印的日志,搞了好久呀)- -

来源:10-4 微信测试号的申请与连接下

hahhahhhh

2018-01-21

2018-01-21 15:49:21.707 [http-nio-80-exec-15] DEBUG com.gray.util.wechat.WechatU                           til - user info :{"openid":"or62C0-o-8ppLNj4quVoLuk6msJo","nickname":"wei zeng",                           "sex":1,"language":"zh_CN","city":"","province":"阿雅克修","country":"法国","hea                           dimgurl":"http:\/\/wx.qlogo.cn\/mmopen\/vi_32\/3iaia0j0v4U27tlm57eaa7rdiaNkmHa12                           x5aqlkGWJ6mSduAGnibJbJJRUuAWGF9TryD7Oic3nfd5ibibiaV1J9JgRGSVg\/132","privilege":                           []}

2018-01-21 15:49:21.708 [http-nio-80-exec-15] DEBUG com.gray.controller.wechat.W                           echatLoginController - weixin login user:openId:or62C0-o-8ppLNj4quVoLuk6msJo,nik                           ename:wei zeng

2018-01-21 15:49:21.896 [http-nio-80-exec-14] DEBUG com.gray.controller.wechat.W                           echatLoginController - weixin login get...

2018-01-21 15:49:21.897 [http-nio-80-exec-14] DEBUG com.gray.controller.wechat.W                           echatLoginController - weixin login  code:011DpGPk0xxg1k1P8QQk02vpPk0DpGPH

2018-01-21 15:49:21.897 [http-nio-80-exec-14] DEBUG com.gray.util.wechat.WechatU                           til - appId:wx0f14e4808796195e

2018-01-21 15:49:21.897 [http-nio-80-exec-14] DEBUG com.gray.util.wechat.WechatU                           til - secret:0d2c493d4f376465a7955ba1ecf987c9

2018-01-21 15:49:22.043 [http-nio-80-exec-14] DEBUG com.gray.util.wechat.WechatU                           til - https buffer:{"errcode":40163,"errmsg":"code been used, hints: [ req_id: 2                           fv2Ha0962th21 ]"}

2018-01-21 15:49:22.043 [http-nio-80-exec-14] DEBUG com.gray.util.wechat.WechatU                           til - userAccessToken:{"errcode":40163,"errmsg":"code been used, hints: [ req_id                           : 2fv2Ha0962th21 ]"}

2018-01-21 15:49:22.045 [http-nio-80-exec-14] DEBUG com.gray.util.wechat.WechatU                           til - Unrecognized field "errcode" (class com.gray.dto.UserAccessToken), not mar                           ked as ignorable (5 known properties: "expires_in", "scope", "refresh_token", "a                           ccess_token", "openid"])

 at [Source: {"errcode":40163,"errmsg":"code been used, hints: [ req_id: 2fv2Ha0                           962th21 ]"}; line: 1, column: 17] (through reference chain: com.gray.dto.UserAcc                           essToken["errcode"])

2018-01-21 15:49:22.045 [http-nio-80-exec-14] DEBUG com.gray.controller.wechat.W                           echatLoginController - weixin login token:accessToken:null,openId:null

2018-01-21 15:49:22.173 [http-nio-80-exec-14] DEBUG com.gray.util.wechat.WechatU                           til - https buffer:{"errcode":40001,"errmsg":"invalid credential, access_token i                           s invalid or not latest, hints: [ req_id: PxhGNa0962s159 ]"}

2018-01-21 15:49:22.173 [http-nio-80-exec-14] DEBUG com.gray.util.wechat.WechatU                           til - user info :{"errcode":40001,"errmsg":"invalid credential, access_token is                            invalid or not latest, hints: [ req_id: PxhGNa0962s159 ]"}

2018-01-21 15:49:22.175 [http-nio-80-exec-14] DEBUG com.gray.controller.wechat.W                           echatLoginController - weixin login user:openId:null,nikename:null

2018-01-21 15:49:29.439 [http-nio-80-exec-17] DEBUG com.gray.controller.wechat.W                           echatLoginController - weixin login get...

2018-01-21 15:49:29.439 [http-nio-80-exec-17] DEBUG com.gray.controller.wechat.W                           echatLoginController - weixin login  code:011DpGPk0xxg1k1P8QQk02vpPk0DpGPH

2018-01-21 15:49:29.439 [http-nio-80-exec-17] DEBUG com.gray.util.wechat.WechatU                           til - appId:wx0f14e4808796195e

2018-01-21 15:49:29.439 [http-nio-80-exec-17] DEBUG com.gray.util.wechat.WechatU                           til - secret:0d2c493d4f376465a7955ba1ecf987c9

2018-01-21 15:49:29.575 [http-nio-80-exec-17] DEBUG com.gray.util.wechat.WechatU                           til - https buffer:{"errcode":40163,"errmsg":"code been used, hints: [ req_id: r                           VT0969th36 ]"}

2018-01-21 15:49:29.575 [http-nio-80-exec-17] DEBUG com.gray.util.wechat.WechatU                           til - userAccessToken:{"errcode":40163,"errmsg":"code been used, hints: [ req_id                           : rVT0969th36 ]"}

2018-01-21 15:49:29.577 [http-nio-80-exec-17] DEBUG com.gray.util.wechat.WechatU                           til - Unrecognized field "errcode" (class com.gray.dto.UserAccessToken), not mar                           ked as ignorable (5 known properties: "expires_in", "scope", "refresh_token", "a                           ccess_token", "openid"])

 at [Source: {"errcode":40163,"errmsg":"code been used, hints: [ req_id: rVT0969                           th36 ]"}; line: 1, column: 17] (through reference chain: com.gray.dto.UserAccess                           Token["errcode"])

2018-01-21 15:49:29.577 [http-nio-80-exec-17] DEBUG com.gray.controller.wechat.W                           echatLoginController - weixin login token:accessToken:null,openId:null

2018-01-21 15:49:29.695 [http-nio-80-exec-17] DEBUG com.gray.util.wechat.WechatU                           til - https buffer:{"errcode":40001,"errmsg":"invalid credential, access_token i                           s invalid or not latest, hints: [ req_id: 2mMvba0969s179 ]"}

2018-01-21 15:49:29.695 [http-nio-80-exec-17] DEBUG com.gray.util.wechat.WechatU                           til - user info :{"errcode":40001,"errmsg":"invalid credential, access_token is                            invalid or not latest, hints: [ req_id: 2mMvba0969s179 ]"}

2018-01-21 15:49:29.698 [http-nio-80-exec-17] DEBUG com.gray.controller.wechat.W                           echatLoginController - weixin login user:openId:null,nikename:null


写回答

3回答

街边七号

2018-06-10

老哥你解决了吗我这也是老说code两个  errorCode:40163

0
0

yuhange

2018-04-10

同学你好,我也遇到这个问题了!请问你现在解决了吗?

0
0

翔仔

2018-01-21

同学好,可以参照视频里的远程调试追踪下问题。并且请问这样影响使用么,不影响可以继续,有可能是微信回调url的时候返回了两次

0
0

Java双版本(SSM到SpringBoot)校园商铺全栈开发

SSM商铺V1.0,解决毕设痛点;SpringBoot商铺V2.0,满足工作刚需

5113 学习 · 8144 问题

查看课程