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.

Hystrix - Caused by: java.util.concurrent.TimeoutException:

See original GitHub issue

I am on Spring Cloud Edgware.RELEASE trail. I am using ribbon with Eureka. I have @EnableFeignClients annotation on my API Gateway. I am overriding the timeout configurations as below. `

ribbon.ReadTimeout=30000 ribbon.ConnectTimeout=30000 hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=100000

` Even then, APIGateway is throwing the timeout exception. The service is processing the request in good time only but API Gateway is not considering it. This happens like once in 2 requests. Very random.

Please suggest if I miss any configuration.

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
dulimittacommented, Jan 24, 2018

Upgrading Zuul alone improved the connectivity issue. But still, I am getting the below exceptions in Zuul server.

` Caused by: org.apache.http.conn.ConnectTimeoutException: Connect to 172.31.47.91:8000 [/172.31.47.91] failed: connect timed out

I Have the below configs in Zuul now. ribbon.eureka.enabled=true zuul.host.connectTimeoutMillis=600000 zuul.host.socketTimeoutMillis=600000

#30 seconds timeout ribbon.ReadTimeout=30000 ribbon.ConnectTimeout=30000 hystrix.command.default.execution.isolation.thread.timeoutInMilliseconds=100000 `

1reaction
dulimittacommented, May 10, 2018

Hi @rodrite , the issue was not with Spring Cloud. The APIGateway had access issues connecting to client services. I fixed the access issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hystrix command fails with "timed-out and no fallback available"
This is a Hystrix Command Timeout, this timeout is enabled by default per each command, you define the value using the property:.
Read more >
How to expand timeout in Hystrix - Google Groups
HystrixRuntimeException: openDocumentInServer timed-out and fallback failed.] with root cause. java.util.concurrent.TimeoutException: null.
Read more >
"java.util.concurrent.TimeoutException" while invoking a sub ...
The cloud process fails with the following error while invoking an agent process after 5 minutes. The agent process completes fine. "java.util.
Read more >
Caused by: java.util.concurrent.TimeoutException
Intermittently, Einstein implementations will throw errors for Observable onError due to a TimeoutException. When this occurs shoppers will not ...
Read more >
com.netflix.hystrix.exception.HystrixRuntimeException
This page shows Java code examples of com.netflix.hystrix.exception. ... getMessage(), cause instanceof HystrixRuntimeException); Assert.assertTrue((System.
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