远程feign 向blade_user表中新增一条数据,失败

Blade 未结 1 1051
alice.li
alice.li 剑童 2021-01-08 17:36

一、该问题的重现步骤是什么?

1. 在自己创建的业务调用远程feign 向blade_user表中新增一条数据

2. 实现注册功能

3.


二、你期待的结果是什么?实际看到的又是什么?

希望可以返回true,实际返回的是false

三、你正在使用的是什么产品,什么版本?在什么操作系统上?

2.7.0

四、请提供详细的错误堆栈信息,这很重要。

================  Request Start  ================

===> POST: /corp/saveuser Parameters: {"user":{"id":null,"createUser":null,"createDept":null,"createTime":null,"updateUser":null,"updateTime":null,"status":null,"isDeleted":null,"tenantId":null,"code":null,"userType":null,"account":null,"password":null,"name":null,"realName":null,"avatar":null,"email":null,"phone":null,"birthday":null,"sex":null,"roleId":null,"deptId":null,"postId":null}}

===Headers===  X-Forwarded-Prefix: /tpaas-demand

===Headers===  Accept: */*

===Headers===  User-Agent: PostmanRuntime/7.26.8

===Headers===  X-Forwarded-Proto: http

===Headers===  X-Forwarded-Host: 192.168.5.1

===Headers===  Accept-Encoding: gzip, deflate, br

===Headers===  X-Forwarded-Port: 80

===Headers===  Authorization: Basic c3dvcmQ6c3dvcmRfc2VjcmV0

===Headers===  Tenand-Id: 000000

===Headers===  Forwarded: proto=http;host=192.168.5.1;for="192.168.5.1:50437"

===Headers===  host: 192.168.5.1:9101

===Headers===  X-Forwarded-For: 192.168.5.1

===Headers===  Postman-Token: a0a80bfd-71a5-4046-8998-05d8fe378245

===Headers===  Content-Length: 676

===Headers===  Blade-Auth: bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZW5hbnRfaWQiOiIwMDAwMDAiLCJ1c2VyX25hbWUiOiJhZG1pbiIsInJlYWxfbmFtZSI6IueuoeeQhuWRmCIsImF2YXRhciI6Imh0dHBzOi8vZ3cuYWxpcGF5b2JqZWN0cy5jb20vem9zL3Jtc3BvcnRhbC9CaWF6ZmFueG1hbU5Sb3h4VnhrYS5wbmciLCJhdXRob3JpdGllcyI6WyJhZG1pbmlzdHJhdG9yIl0sImNsaWVudF9pZCI6InN3b3JkIiwicm9sZV9uYW1lIjoiYWRtaW5pc3RyYXRvciIsImxpY2Vuc2UiOiJwb3dlcmVkIGJ5IGJsYWRleCIsInBvc3RfaWQiOiIxMTIzNTk4ODE3NzM4Njc1MjAxIiwidXNlcl9pZCI6IjExMjM1OTg4MjE3Mzg2NzUyMDEiLCJyb2xlX2lkIjoiMTEyMzU5ODgxNjczODY3NTIwMSIsInNjb3BlIjpbImFsbCJdLCJuaWNrX25hbWUiOiLnrqHnkIblkZgiLCJvYXV0aF9pZCI6IiIsImRldGFpbCI6eyJ0eXBlIjoid2ViIn0sImV4cCI6MTYxMDEwMTY2NiwiZGVwdF9pZCI6IjExMjM1OTg4MTM3Mzg2NzUyMDEiLCJqdGkiOiIxOGI4ODE3YS1jOWNiLTRmOTItOTliYi01YTliM2VhYmQzODQiLCJhY2NvdW50IjoiYWRtaW4ifQ.-u_7UJjTVNQDlCNctNPVCixcIx9K3pAzicuuRP8O7Cw

===Headers===  Content-Type: application/json

================   Request End   ================


2021-01-08 17:29:50.720 ERROR 18296 --- [ HystrixTimer-2] o.s.core.cloud.feign.BladeFeignFallback  : BladeFeignFallback:[org.springblade.system.user.feign.IUserClient.saveUser] serviceId:[blade-user] message:[null]

2021-01-08 17:29:50.725  INFO 18296 --- [  XNIO-1 task-4] o.s.core.log.aspect.RequestLogAspect     : 


================  Response Start  ================

===Result===  {"code":500,"success":false,"data":null,"msg":null}

<=== POST: /corp/saveuser (5010 ms)

================   Response End   ================

五、若有更多详细信息,请在下面提供。

1条回答
  • 你看下用户服务有没有报错日志。

    作者追问:2021-01-09 14:58

    远程连接失败.png

    今天再测试接口就是这个结果,应该是请求发过去了,验证也通过了,但是保存的时候无法调用远程的,因为远程的地址给的是服务器本地的。那我应该怎么解决呢?

    0 讨论(0)
提交回复