GET request 411 error on zuul proxy for eureka clients.
See original GitHub issueAfter updating to Camden release, previously reported issue #1042 (411 content length required) is appearing again for GET
requests.
I’ve following config on my small demo app. :
zuul:
ignoredServices: '*'
routes:
rs: /api/rs/**
httpbin:
path: /api/httpbin/**
url: http://httpbin.org
I’ve 2 routes: eureka client rs
and direct proxy for httpbin
.
Eureka client was throwing 411 error on GET requests. The difference was eureka client is setting unnecessary additional Transfer-Encoding: chunked
header.
If we can’t remove this header, I think we can set Content-Length: 0
, as it was handled previously.
My config app is running with simple default config (no custom RibbonCommandFactory
):
@SpringBootApplication
@EnableZuulProxy
@EnableDiscoveryClient
public class Zuul411Application {
public static void main(String[] args) {
SpringApplication.run(Zuul411Application.class, args);
}
}
p.s This issue is only apparent for certain network and ISPs.
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (10 by maintainers)
Top Results From Across the Web
Request with large files to netflix-zuul, will be routed to eureka ...
I find out that the reason is that not enough heap size. I think that files will be corrupted if heap size is...
Read more >Table of Contents - Spring Cloud
Spring Cloud provides tools for developers to quickly build some of the common patterns in distributed systems (e.g. configuration management, service.
Read more >When A Request Sent To A Zuulproxy I Got - ADocLib
Spring Cloud has created an embedded Zuul proxy to ease the development of The preceding example ... GET request 411 error on zuul...
Read more >2016-June.txt - Jboss List Archives
What can cause that error ? ... Maybe it causes issues with > Apache HTTP client. ... Zuul Proxy (Spring Boot in Tomcat)...
Read more >Spring Cloud - Indico
Spring Cloud provides tools for developers to quickly build some of the common patterns in distributed systems (e.g. configuration management, service.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@beku8 please open a separate issue
Cherry-picked to master 62408af5eae2c02e3391146bf67082a85e3d8a62