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.

First request through Zuul/Euruka will always timeout. Subsequent requests then behave as expected (no timeouts).

See original GitHub issue

Hi all,

Hoping to receive some advice about a timeout issue we’re repeatedly experiencing.

We have a number of microservices that are integrated with Eureka and Zuul. Whenever we start up our services (including the Eureka and Zuul services), the first request that hits Zuul will always timeout. This timeout will occur regardless of how long we wait (i.e. the timeout will occur even if we wait 15 mins after starting up). After this first request, Zuul/Eureka then seem to wake up and all subsequent requests will work as expected. Has anyone else experienced this?

This file contains the full Zuul stack trace we experience on the first request. The pertinent parts of the stack trace are also pasted below:

com.netflix.zuul.exception.ZuulException: Forwarding error
 	at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.handleException(RibbonRoutingFilter.java:170)
 	at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.forward(RibbonRoutingFilter.java:145)
 ....
Caused by: com.netflix.hystrix.exception.HystrixRuntimeException: my-service-id timed-out and no fallback available.
 	at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:805)
 	at com.netflix.hystrix.AbstractCommand$22.call(AbstractCommand.java:790)
....
Caused by: java.util.concurrent.TimeoutException: null
 	at com.netflix.hystrix.AbstractCommand.handleTimeoutViaFallback(AbstractCommand.java:980)
 	at com.netflix.hystrix.AbstractCommand.access$500(AbstractCommand.java:59)
 	at com.netflix.hystrix.AbstractCommand$12.call(AbstractCommand.java:595)
 	at com.netflix.hystrix.AbstractCommand$12.call(AbstractCommand.java:587)
 	at rx.internal.operators.OperatorOnErrorResumeNextViaFunction$4.onError(OperatorOnErrorResumeNextViaFunction.java:140)

Thank you.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

5reactions
indraneelb1903commented, Jun 1, 2018

@nestramix @ryanjbaxter As he says his problem is only on the first hit, ribbon eager loading should help - ribbon.eager-load.enabled = true

3reactions
ryanjbaxtercommented, Jan 7, 2019

The clients

Read more comments on GitHub >

github_iconTop Results From Across the Web

Receiving "The request timed out." when using NSURLSession
Hi all,. I'm facing a very strange problem in my application. In particular, using the application when a request receives a timeout message, ......
Read more >
Why does WebRequest timeout always on the first request, but ...
You're not disposing of the web response, so the connection pool for the second request is going to time out waiting to get...
Read more >
Request Timeout | Heroku Dev Center
Subsequent requests may then be routed to the same process which will be unable to respond (depending on the concurrency behavior of the ......
Read more >
Common Timeouts effecting Web Services, HTTP and SOAP ...
Resolving The Problem. Client Timers, connectionIdleTimeout and syncTimeout: HttpOutboundC 1 WSWS3228E: Error: Exception: java.io.
Read more >
Taking a Timeout from Poor Performance | APIs You Won't Hate
In a system-oriented architecture, it is crucial to communicate with other systems, sometimes synchronously. Broker patterns, proxies, etc., ...
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