springcloud微信小程序登录报错

发布于 2021-09-06 15:28:13

微信小程序登录,后台报错,3个报错点随机出现;

微信小程序端发起登录,截图

一、后端报错点1:

1)、Auth服务打印信息:

2021-09-06 15:02:25 DEBUG yshop-auth http-nio-9200-exec-9 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#getUserInfo] <--- END HTTP (91-byte body)

2021-09-06 15:02:25 ERROR yshop-auth http-nio-9200-exec-9 co.yixiang.common.security.handler.GlobalExceptionHandler null

org.springframework.security.authentication.InternalAuthenticationServiceException: null

at org.springframework.security.authentication.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:108)

(该处省略报错信息)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)

at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.NullPointerException: null

at co.yixiang.common.security.service.UsernameUserDetailService.getUser(UsernameUserDetailService.java:36)

at co.yixiang.common.security.service.BaseUserDetailService.loadUserByUsername(BaseUserDetailService.java:38)

at org.springframework.security.authentication.dao.DaoAuthenticationProvider.retrieveUser(DaoAuthenticationProvider.java:93)

... 99 common frames omitted

2、mall服务打印信息:

2021-09-06 15:02:25 INFO  yshop-mall http-nio-9202-exec-9 co.yixiang.common.tenant.interceptor.TenantContextHandlerInterceptor requestUrl:/api/auth/getUserInfo/NONE_PROVIDED

Creating a new SqlSession

SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@3f993dbc] was not registered for synchronization because synchronization is not active

original SQL: SELECT  uid,username,password,real_name,birthday,card_id,mark,partner_id,group_id,nickname,avatar,phone,add_ip,last_ip,now_money,brokerage_price,integral,sign_num,status,level,spread_uid,spread_time,user_type,is_promoter,pay_count,spread_count,addres,adminid,login_type,wx_profile,create_time,update_time,is_del  FROM yx_user 

 WHERE  is_del=0

AND (username = ?)

SQL to parse, SQL: SELECT  uid,username,password,real_name,birthday,card_id,mark,partner_id,group_id,nickname,avatar,phone,add_ip,last_ip,now_money,brokerage_price,integral,sign_num,status,level,spread_uid,spread_time,user_type,is_promoter,pay_count,spread_count,addres,adminid,login_type,wx_profile,create_time,update_time,is_del  FROM yx_user 

 WHERE  is_del=0

AND (username = ?)

parse the finished SQL: SELECT uid, username, password, real_name, birthday, card_id, mark, partner_id, group_id, nickname, avatar, phone, add_ip, last_ip, now_money, brokerage_price, integral, sign_num, status, level, spread_uid, spread_time, user_type, is_promoter, pay_count, spread_count, addres, adminid, login_type, wx_profile, create_time, update_time, is_del FROM yx_user WHERE is_del = 0 AND (username = ?) AND tenant_id = 'mytest1'

JDBC Connection [HikariProxyConnection@1885588996 wrapping com.mysql.cj.jdbc.ConnectionImpl@465b3e66] will not be managed by Spring

==>  Preparing: SELECT uid, username, password, real_name, birthday, card_id, mark, partner_id, group_id, nickname, avatar, phone, add_ip, last_ip, now_money, brokerage_price, integral, sign_num, status, level, spread_uid, spread_time, user_type, is_promoter, pay_count, spread_count, addres, adminid, login_type, wx_profile, create_time, update_time, is_del FROM yx_user WHERE is_del = 0 AND (username = ?) AND tenant_id = 'mytest1'

==> Parameters: NONE_PROVIDED(String)

<==      Total: 0

Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@3f993dbc]

3)weixin服务打印信息:

2021-09-06 15:02:24 INFO  yshop-weixin http-nio-8001-exec-6 co.yixiang.common.tenant.interceptor.TenantContextHandlerInterceptor requestUrl:/weixinOauth/wxMaOauth

2021-09-06 15:02:25 ERROR yshop-weixin http-nio-8001-exec-6 co.yixiang.common.security.handler.GlobalExceptionHandler java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:226)

at com.google.gson.Gson.fromJson(Gson.java:932)

at com.google.gson.Gson.fromJson(Gson.java:897)

at com.google.gson.Gson.fromJson(Gson.java:846)

at com.google.gson.Gson.fromJson(Gson.java:817)

at cn.binarywang.wx.miniapp.bean.WxMaUserInfo.fromJson(WxMaUserInfo.java:27)

at cn.binarywang.wx.miniapp.api.impl.WxMaUserServiceImpl.getUserInfo(WxMaUserServiceImpl.java:35)

at co.yixiang.weixin.biz.service.WxOauthService.wxMaOauthService(WxOauthService.java:42)

at co.yixiang.weixin.biz.controller.WeixinOauthController.wxMaOauth(WeixinOauthController.java:25)

(该处省略报错信息)

at java.lang.Thread.run(Thread.java:748)

Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

at com.google.gson.stream.JsonReader.beginObject(JsonReader.java:384)

at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:215)

... 96 common frames omitted

二、后端报错点2:

1)、auth服务打印:

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] ---> POST http://yshop-mall/api/auth/wxapp/auth HTTP/1.1

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] accept: */*

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] accept-encoding: gzip, deflate, br

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] Content-Length: 534

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] Content-Type: application/json

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] Content-Type: application/json;charset=UTF-8

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] forwarded: proto=http;host="127.0.0.1:8081";for="127.0.0.1:58577"

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] host: 192.168.43.147:9200

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] referer: https://servicewechat.com/wxde778243298c3c23/devtools/page-frame.html

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] sec-fetch-dest: empty

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] sec-fetch-mode: cors

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] sec-fetch-site: same-site

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] tenantid: mytest1

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] user-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1 wechatdevtools/1.05.2102010 MicroMessenger/7.0.4 Language/zh_CN webview/

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] x-forwarded-for: 127.0.0.1

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] x-forwarded-host: 127.0.0.1:8081

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] x-forwarded-port: 8081

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] x-forwarded-prefix: /auth

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] x-forwarded-proto: http

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] 

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] {"code":"073Yhoml29veH74Tt7ml2cEwDM2YhomC","spread":"","encryptedData":"/IHmKvwW7QJ8ZXpXWECR8fZXcUqBlGHAJ9DGbRzEvNzZw+jV0LM6YZ+1Eutbyf/UbqGjapsUs/48FQfJyG/a+jzRJlfaEVgoIkNu2imW+y4jMhkVtBX/fGJG/1Q1OQYC3G95ppYQ+6M7O+zojFsGckSHJI9b6MFs34jA6/2an0vbJgrFC5wp987S9SPGns3sBUuNjq03/kX3+H0LKB3vNSawLfpkeUJp6i+9ZYf4YmvA92m3Kgw+bHjDDhQC+bVG0slrpdMZRBUxnltZbv9qcRl+NFSXJyBO8xomIMsDAD/oWlSo/GhNrYABjIkKWG4mku/2isyAP4gvJN/0IupbRpnNg0mTjyaEVyPGumP6JFwzvP+hG4Cw2ONW7VP0PSf2on3tJt4Y8QFGVYuLhd+RklvG0mVvYs4Th5t95aOFHAo=","iv":"2q0czOuTX3+wEyK/6RHQ1g=="}

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] ---> END HTTP (534-byte body)

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] <--- HTTP/1.1 400  (3ms)

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] connection: close

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] content-language: en

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] content-length: 435

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] content-type: text/html;charset=utf-8

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] date: Mon, 06 Sep 2021 07:07:45 GMT

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] 

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] <!doctype html><html lang="en"><head><title>HTTP Status 400 – Bad Request</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 400 – Bad Request</h1></body></html>

2021-09-06 15:07:45 DEBUG yshop-auth http-nio-9200-exec-1 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#wxappLogin] <--- END HTTP (435-byte body)

2021-09-06 15:07:45 ERROR yshop-auth http-nio-9200-exec-1 co.yixiang.common.security.handler.GlobalExceptionHandler [400 ] during [POST] to [http://yshop-mall/api/auth/wxapp/auth] [RemoteMemberUserService#wxappLogin(LoginParam)]: [<!doctype html><html lang="en"><head><title>HTTP Status 400 – Bad Request</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;... (435 bytes)]

feign.FeignException$BadRequest: [400 ] during [POST] to [http://yshop-mall/api/auth/wxapp/auth] [RemoteMemberUserService#wxappLogin(LoginParam)]: [<!doctype html><html lang="en"><head><title>HTTP Status 400 – Bad Request</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;... (435 bytes)]

at feign.FeignException.clientErrorStatus(FeignException.java:195)

(该处省略报错信息)

at java.lang.Thread.run(Thread.java:748)

2)mall服务打印:

3)weixin服务打印:

三、后端报错点3

1)auth服务打印信息:

--------------------loadPermissionByUser:oyGzd4pHUnLa-RcnmSdrpX81GMsA---------------------

2021-09-06 15:11:35 INFO  yshop-auth http-nio-9200-exec-6 co.yixiang.auth.handler.AuthenticationSuccessEventHandler 用户:oyGzd4pHUnLa-RcnmSdrpX81GMsA 登录成功

auth2AccessToken.getValue():188474e8-da6c-4c81-8c77-84ce8d14fffc

yxUserApiResult.getData():YxUser(uid=6, username=oyGzd4pHUnLa-RcnmSdrpX81GMsA, password=$2a$10$GnsOG8i.5ds3sr5jdig/ReUPOyT.J10RWcakTlzrJH7gBJv73GwyG, realName=, birthday=0, cardId=, mark=, partnerId=0, groupId=0, nickname=123, avatar=https://thirdwx.qlogo.cn/mmopen/vi_32/rUymMplw8T4sqKS5tOBI7SySeRfDJ3EFGtjhcIxQDDibP9SF1uUDKXI8TwK00WfxlNqx3sqVPEzjCBXQXiaDBAfA/132, phone=null, addIp=127.0.0.1, lastIp=127.0.0.1, nowMoney=0.00, brokeragePrice=0.00, integral=0.00, signNum=0, status=1, level=0, spreadUid=0, spreadTime=null, userType=routine, isPromoter=0, payCount=0, spreadCount=0, addres=, adminid=0, loginType=, wxProfile=co.yixiang.mall.common.mall.dto.WechatUserDto@35744dc5, token=null)

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] ---> POST http://yshop-mall/api/auth/saveLoginOnUser HTTP/1.1

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] accept: */*

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] accept-encoding: gzip, deflate, br

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] Content-Length: 770

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] Content-Length: 534

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] Content-Type: application/json

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] Content-Type: application/json;charset=UTF-8

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] forwarded: proto=http;host="127.0.0.1:8081";for="127.0.0.1:58577"

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] host: 192.168.43.147:9200

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] referer: https://servicewechat.com/wxde778243298c3c23/devtools/page-frame.html

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] sec-fetch-dest: empty

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] sec-fetch-mode: cors

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] sec-fetch-site: same-site

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] tenantid: mytest1

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] user-agent: Mozilla/5.0 (iPhone; CPU iPhone OS 11_0 like Mac OS X) AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1 wechatdevtools/1.05.2102010 MicroMessenger/7.0.4 Language/zh_CN webview/

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] x-forwarded-for: 127.0.0.1

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] x-forwarded-host: 127.0.0.1:8081

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] x-forwarded-port: 8081

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] x-forwarded-prefix: /auth

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] x-forwarded-proto: http

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] 

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] {"createTime":"2021-09-02 11:44:11","updateTime":"2021-09-06 15:11:35","uid":6,"username":"oyGzd4pHUnLa-RcnmSdrpX81GMsA","password":"$2a$10$GnsOG8i.5ds3sr5jdig/ReUPOyT.J10RWcakTlzrJH7gBJv73GwyG","realName":"","birthday":0,"cardId":"","mark":"","partnerId":0,"groupId":0,"nickname":"123","avatar":"https://thirdwx.qlogo.cn/mmopen/vi_32/rUymMplw8T4sqKS5tOBI7SySeRfDJ3EFGtjhcIxQDDibP9SF1uUDKXI8TwK00WfxlNqx3sqVPEzjCBXQXiaDBAfA/132","phone":null,"addIp":"127.0.0.1","lastIp":"127.0.0.1","nowMoney":0.00,"brokeragePrice":0.00,"integral":0.00,"signNum":0,"status":1,"level":0,"spreadUid":0,"spreadTime":null,"userType":"routine","isPromoter":0,"payCount":0,"spreadCount":0,"addres":"","adminid":0,"loginType":"","wxProfile":null,"token":"188474e8-da6c-4c81-8c77-84ce8d14fffc"}

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] ---> END HTTP (770-byte body)

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] <--- HTTP/1.1 400  (4ms)

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] connection: close

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] content-language: en

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] content-length: 435

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] content-type: text/html;charset=utf-8

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] date: Mon, 06 Sep 2021 07:11:35 GMT

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] 

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] <!doctype html><html lang="en"><head><title>HTTP Status 400 – Bad Request</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;} h1 {font-size:22px;} h2 {font-size:16px;} h3 {font-size:14px;} p {font-size:12px;} a {color:black;} .line {height:1px;background-color:#525D76;border:none;}</style></head><body><h1>HTTP Status 400 – Bad Request</h1></body></html>

2021-09-06 15:11:35 DEBUG yshop-auth http-nio-9200-exec-6 co.yixiang.mall.common.feign.RemoteMemberUserService [RemoteMemberUserService#saveLoginOnUser] <--- END HTTP (435-byte body)

2021-09-06 15:11:35 ERROR yshop-auth http-nio-9200-exec-6 co.yixiang.common.security.handler.GlobalExceptionHandler [400 ] during [POST] to [http://yshop-mall/api/auth/saveLoginOnUser] [RemoteMemberUserService#saveLoginOnUser(YxUser)]: [<!doctype html><html lang="en"><head><title>HTTP Status 400 – Bad Request</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;... (435 bytes)]

feign.FeignException$BadRequest: [400 ] during [POST] to [http://yshop-mall/api/auth/saveLoginOnUser] [RemoteMemberUserService#saveLoginOnUser(YxUser)]: [<!doctype html><html lang="en"><head><title>HTTP Status 400 – Bad Request</title><style type="text/css">body {font-family:Tahoma,Arial,sans-serif;} h1, h2, h3, b {color:white;background-color:#525D76;... (435 bytes)]

at feign.FeignException.clientErrorStatus(FeignException.java:195)

(该处省略报错信息)

at java.lang.Thread.run(Thread.java:748)

2)mall服务打印信息

==>  Preparing: SELECT uid, username, password, real_name, birthday, card_id, mark, partner_id, group_id, nickname, avatar, phone, add_ip, last_ip, now_money, brokerage_price, integral, sign_num, status, level, spread_uid, spread_time, user_type, is_promoter, pay_count, spread_count, addres, adminid, login_type, wx_profile, create_time, update_time, is_del FROM yx_user WHERE is_del = 0 AND (username = ?) AND tenant_id = 'mytest1'

==> Parameters: oyGzd4pHUnLa-RcnmSdrpX81GMsA(String)

<==    Columns: uid, username, password, real_name, birthday, card_id, mark, partner_id, group_id, nickname, avatar, phone, add_ip, last_ip, now_money, brokerage_price, integral, sign_num, status, level, spread_uid, spread_time, user_type, is_promoter, pay_count, spread_count, addres, adminid, login_type, wx_profile, create_time, update_time, is_del

<==        Row: 6, oyGzd4pHUnLa-RcnmSdrpX81GMsA, $2a$10$GnsOG8i.5ds3sr5jdig/ReUPOyT.J10RWcakTlzrJH7gBJv73GwyG, , 0, , , 0, 0, 123, https://thirdwx.qlogo.cn/mmopen/vi_32/rUymMplw8T4sqKS5tOBI7SySeRfDJ3EFGtjhcIxQDDibP9SF1uUDKXI8TwK00WfxlNqx3sqVPEzjCBXQXiaDBAfA/132, null, 127.0.0.1, 127.0.0.1, 0.00, 0.00, 0.00, 0, 1, 0, 0, null, routine, 0, 0, 0, , 0, , <<BLOB>>, 2021-09-02 11:44:11, 2021-09-06 15:11:36, 0

<==      Total: 1

Closing non transactional SqlSession [org.apache.ibatis.session.defaults.DefaultSqlSession@31a0ecc]

3)weixin服务打印信息

2021-09-06 15:11:35 INFO  yshop-weixin http-nio-8001-exec-1 co.yixiang.common.tenant.interceptor.TenantContextHandlerInterceptor requestUrl:/weixinOauth/wxMaOauth

查看更多

关注者
1
被浏览
935
2 个回答
15597849955
15597849955 2021-09-06
这家伙很懒,什么也没写!
登录后查看是否有阅读权限
yshop-技术1
yshop-技术1 认证专家 2021-09-06
这家伙很懒,什么也没写!
登录后查看是否有阅读权限

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览