【Java异常】feign.FeignException: status 400 reading xxx#xxxx(String); content:

我不是女神ヾ 2022-12-10 07:20 207阅读 0赞

今天在使用Feign调用其他项目接口的时候,后台报错如下:

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NDI5OTAyNw_size_16_color_FFFFFF_t_70

解决办法:

watermark_type_ZmFuZ3poZW5naGVpdGk_shadow_10_text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3dlaXhpbl80NDI5OTAyNw_size_16_color_FFFFFF_t_70 1

完结!

以下内容不用看,记录日志使用的:

feign.FeignException: status 400 reading ProductApi#get(Integer,Integer); content:
{“timestamp”:”2020-09-24T09:06:39.608+0000”,”status”:400,”error”:”Bad Request”,”message”:”Required Integer parameter ‘spuId’ is not present”,”path”:”/product/get”}

at feign.FeignException.errorStatus(FeignException.java:60) ~[feign-core-9.7.0.jar:na]
at feign.codec.ErrorDecoder$Default.decode(ErrorDecoder.java:89) ~[feign-core-9.7.0.jar:na]
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:143) ~[feign-core-9.7.0.jar:na]
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:77) ~[feign-core-9.7.0.jar:na]
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:102) ~[feign-core-9.7.0.jar:na]
at com.sun.proxy.$Proxy533.get(Unknown Source) ~[na:na]
at com.uiotsoft.pwfm.context.process.service.impl.ProductApplicationServiceImpl.getProductResponseByProductId(ProductApplicationServiceImpl.java:566) ~[classes/:na]
at com.uiotsoft.pwfm.context.process.service.impl.ProductApplicationServiceImpl.saveV3ToMiddleGoods(ProductApplicationServiceImpl.java:464) ~[classes/:na]
at com.uiotsoft.pwfm.context.process.service.impl.ProductApplicationServiceImpl.saveSkuToMiddleGoods(ProductApplicationServiceImpl.java:447) ~[classes/:na]
at com.uiotsoft.pwfm.context.process.service.impl.ProductApplicationServiceImpl.workflowService(ProductApplicationServiceImpl.java:288) ~[classes/:na]
at com.uiotsoft.pwfm.context.process.service.impl.ProductApplicationServiceImplFastClassBySpringCGLIB4837649f.invoke() ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) [spring-core-5.0.4.RELEASE.jar:5.0.4.RELEASE]

发表评论

表情:
评论列表 (有 0 条评论,207人围观)

还没有评论,来说两句吧...

相关阅读