Feign status 400 reading 问题分析】的更多相关文章

背景:项目使用的是微服务架构,采用springboot来开发,所有的服务都是基于内嵌tomcat来运行 问题:项目部署到测试环境之后,偶尔在后台日志会看到这样的日志:Feign status 400 reading XXXX content: 调查后发现是get请求参数太长的缘故,将参数打印出来,发现最长的有12KB,而内嵌tomcat对参数的默认限制是8K,在tomcat的org.apache.coyote.http11.AbstractHttp11Protocol类中定义了其默认值,如下:…
feign.FeignException: status 400 reading : 请求方调用报错: 服务方被调用报错: 用fegin给redis设置缓存时报错,刚好 卡到8k这个临界点 ,就一直报错...springboot内置tomcat的参数限制是8k /** * Maximum size of the HTTP message header. */ private DataSize maxHttpHeaderSize = DataSize.ofKilobytes(8); 默认配置: s…
首先看feign client代码: @FeignClient(name = "SPRING-CLOUD-WEB-PROVIDER-GROUP2", url = "http://localhost:8761/") public interface SongFeignClientWithUrl { /*@GetMapping("/call/{id}") public Object getSongInfo(@PathVariable("id…
SpringCloud使用Feign调用其他客户端带参数的接口,传入参数为null或报错status 405 reading IndexService#del(Integer); 第一种方法: 如果你的API为Restful 方式的可以在Client接口参数中加注解@PathVariable @FeignClient(name = "PRODUCT") @Component public interface ProductClient { @PostMapping("/pro…
1.前言 出现报错 feign.FeignException$MethodNotAllowed: status 405 reading XXXXX 需要检查 接口的请求参数是否一致 请求参数是否正确添加映射 2.解决 (1)远程接口  ,该端口8001 (2)本地端口9001  , feign接口如下…
UcenterClient#getUserInfoOrder(String) failed and no fallback available.解决过程 报错内容: com.netflix.hystrix.exception.HystrixRuntimeException: UcenterClient#getUserInfoOrder(String) failed and no fallback available. at com.netflix.hystrix.AbstractCommand$…
HTTP Status 400 - Required String parameter 'userName' is not present 错误 先mark  有时间详细写 参考链接: https://yq.aliyun.com/articles/29107…
转载:http://blog.csdn.net/xu_zh_h/article/details/2294233 4 请求失败4xx 4xx应答定义了特定服务器响应的请求失败的情况.客户端不应当在不更改请求的情况下重新尝试同一个请求.(例如,增加合适的认证信息).不过,同一个请求交给不同服务器也许就会成功. 4.1 400 Bad Request 请求中的语法错误.Reason-Phrase应当标志这个详细的语法错误,比如”Missing Call-ID header field”. 4.2 40…
SpringMVC中,如果直接为Date类型的属性赋值,服务器有可能会报HTTP Status [400] – [Bad Request] Type Status Report Description The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid re…
HTTP Status 400 - type Status report message description The request sent by the client was syntactically incorrect. 参数类型不对引起的. @RequestParam long lo , 需要的是 long, 我实际传递的是 abc. 所以.…