question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GET request 411 error on zuul proxy for eureka clients.

See original GitHub issue

After 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:closed
  • Created 6 years ago
  • Comments:15 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
ryanjbaxtercommented, Apr 26, 2017

@beku8 please open a separate issue

1reaction
spencergibbcommented, Apr 3, 2017

Cherry-picked to master 62408af5eae2c02e3391146bf67082a85e3d8a62

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found