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

May 2018
Yogendra Mishra
May 04 2018 04:31 UTC
Hi All, What is difference between RefreshScopeRefreshedEvent and EnvironmentChangeEvent. My understanding for EnvironmentChangeEvent is that it triggers when we change anything on ConfigService. it manages to update RefreshScope. But I am not aware what is the use of RefreshScopeRefreshedEvent??
May 04 2018 06:48 UTC
team can we put both EnableEurekaServer and EnableZuulProxy on one class, till now whatever examples I have seen were having different applications for eurekaserver and zuulproxy can we make eureka server itself a zuul proxy
May 04 2018 07:12 UTC
it works
Jon McEwen
May 04 2018 09:20 UTC

Hi all. I added Spring Cloud Config client to my app via spring-cloud-starter-config. I'm seeing the following log output twice during startup:

2018-05-04 09:16:31.450  INFO 4241 --- [  XNIO-2 task-2] c.c.c.ConfigServicePropertySourceLocator : Fetching config from server at:
2018-05-04 09:16:31.645  INFO 4241 --- [  XNIO-2 task-2] c.c.c.ConfigServicePropertySourceLocator : Located environment: name=neworderprocessor, profiles=[devvm], label=master, version=null, state=null

once at the beginning, where I would expect, but again at the end of start-up. Is this normal?

It's working OK though :-)
Andrew Fitzgerald
May 04 2018 10:25 UTC
This message was deleted
May 04 2018 11:49 UTC
Can you test the spring cloud /config endpoint using curl or postman?
May 04 2018 14:55 UTC

Hi folks, I use zuul gateway
and I'm facing a problem

Approximately in 10 percent of cases Zuul responds with a status of 500 and with an empty body
I investigated this and found that the cause of the problem is

o.a.h.NoHttpResponseException: <Host>:<port> failed to respond
    at o.a.h.i.c.DefaultHttpResponseParser.parseHead(
    at o.a.h.i.c.DefaultHttpResponseParser.parseHead(
    at o.a.h.i.i.AbstractMessageParser.parse(
    at o.a.h.i.DefaultBHttpClientConnection.receiveResponseHeader(
    at o.a.h.i.c.CPoolProxy.receiveResponseHeader(
    at o.a.h.p.HttpRequestExecutor.doReceiveResponse(
    at o.a.h.p.HttpRequestExecutor.execute(
    at o.a.h.i.e.MainClientExec.execute(
    at o.a.h.i.e.ProtocolExec.execute(
    at o.a.h.i.e.RetryExec.execute(
    at o.a.h.i.e.RedirectExec.execute(
    at o.a.h.i.c.InternalHttpClient.doExecute(
    at o.a.h.i.c.CloseableHttpClient.execute(
    at o.a.h.i.c.CloseableHttpClient.execute(
    at o.a.h.i.c.CloseableHttpClient.execute(
    ... 7 frames excluded
    at c.n.c.AbstractLoadBalancerAwareClient$
    at c.n.l.r.LoadBalancerCommand$3$
    at c.n.l.r.LoadBalancerCommand$3$
    at r.i.u.ScalarSynchronousObservable$
    at r.i.u.ScalarSynchronousObservable$
    ... 3 frames excluded
    at c.n.l.r.LoadBalancerCommand$
    at c.n.l.r.LoadBalancerCommand$
    ... 9 frames excluded
    at r.o.BlockingObservable.blockForSingle(
    ... 166 common frames omitted
Wrapped by: j.l.RuntimeException: org.apache.http.NoHttpResponseException: <Host>:<port> failed to respond
    at r.o.BlockingObservable.blockForSingle(
    at r.o.Blocking...

I found some issues in apache http client
for example :
it seems to be fixed, but commentors have problems after fixing
Has anyone else had a problem of this kind?

Spencer Gibb
May 04 2018 15:18 UTC
@imyom25 different events for different things. If you post to /actuator/refresh you will get a refresh event. If there was an environment change, you would get the other.
@vikrantch-hk I wouldn't combine zuul and eureka server especially if zuul lives on the edge of your infrastructure. Eureka shouldn't be public