These are chat archives for spring-cloud/spring-cloud

19th
Feb 2018
ghoddg
@ghoddg
Feb 19 2018 10:42
Hi...I am getting the Read Time Out error while using Zuul with Eureka
Caused by: java.lang.RuntimeException: java.net.SocketTimeoutException: Read timed out
at rx.exceptions.Exceptions.propagate(Exceptions.java:58) ~[rxjava-1.2.0.jar:1.2.0]
at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:464) ~[rxjava-1.2.0.jar:1.2.0]
at rx.observables.BlockingObservable.single(BlockingObservable.java:341) ~[rxjava-1.2.0.jar:1.2.0]
at com.netflix.client.AbstractLoadBalancerAwareClient.executeWithLoadBalancer(AbstractLoadBalancerAwareClient.java:112) ~[ribbon-loadbalancer-2.2.4.jar:2.2.4]
... 127 common frames omitted
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method) ~[na:1.8.0_131]
at java.net.SocketInputStream.socketRead(SocketInputStream.java:116) ~[na:1.8.0_131]
at java.net.SocketInputStream.read(SocketInputStream.java:171) ~[na:1.8.0_131]
at java.net.SocketInputStream.read(SocketInputStream.java:141) ~[na:1.8.0_131]
at org.apache.http.impl.io.SessionInputBufferImpl.streamRead(SessionInputBufferImpl.java:137) ~[httpcore-4.4.8.jar:4.4.8]
I am using, Edgware.SR1 in my api-gateway-service
I uave tried to disable the timeout with command
hystrix:
command:
default:
execution:
timeout:
enabled: false
but still the issue is coming
please help
ghoddg
@ghoddg
Feb 19 2018 14:55
Can you please tell someone ..how to update the route?
zuul:
ignoredServices: ""
routes:
platoapi:
path: /api/*

serviceId: api-gateway-ref
stripPrefix: true
Here, when my request come like /api/message, it should go to api-gateway-ref/service-client/message
Dave Syer
@dsyer
Feb 19 2018 14:59
Please use fences (``` on a line by itself) to format code and logs
There's a markdown cheat sheet down below and to the right of where you type
ghoddg
@ghoddg
Feb 19 2018 15:07
@dsyer my client is deployed on weblogic
which is registered to service discovery which is also deployed on weblogic
now i have api gateway implemented which is also registered to service discovry and i can see that in UI
when i request client through api gatway, i am getting exception...time out exception
i think the routes which i define is not proper
this is what i am trying to hit
this is where the client is deployed
can you help me?
ghoddg
@ghoddg
Feb 19 2018 15:37
@dsyer , @spencergibb my client MS is deployed on weblogic and giving me result at http://localhost:7001/api-gateway-ref/message
my api-gateway is started at http://localhost:8765
http://localhost:8765/routes provides me {
"/platoapi/": "plato-api-gateway-ref",
"/plato-api-gateway-ref/
": "plato-api-gateway-ref"
}
i didnt understood how to define my routes
Ingo Griebsch
@ingogriebsch
Feb 19 2018 21:16
Hello, a quick question regarding using spring boot and spring cloud together: We are just about updating our services from 1.4/Camden.SR4 to 1.5.x and asking ourself if to use spring cloud Dalston or Edgware? We googled a little bit but found no detailed answer what version one should use in which case. We also found nothing that explains in more detail what the difference is. The spring cloud page only explains that both are made for spring boot 1.5.x. It looks like they are having different minor versions of several used dependencies. But what to respect if we are using the one or the other train? Therefore it would be nice to get a recommendation what to use or a hint where to find some more background information about the differences and how to decide which version to use. :)
Neil McKeown
@NeilMcKeown
Feb 19 2018 21:20
Edgware is the latest, it's alphabetical. (A)ngel, (B)rixton, (C)amden, (D)alston, (E)dgware
Neil McKeown
@NeilMcKeown
Feb 19 2018 21:27
There's links to the reference documentation for each here: http://projects.spring.io/spring-cloud/