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

Dec 2016
Shen Xianyi
Dec 16 2016 07:29
@dsyer I'm using a tool called Hoverfly. It's basically a proxy.
Dave Syer
Dec 16 2016 07:38
So how does that work. You have to set -Dhttp.proxy?
Gim Lyu
Dec 16 2016 08:06
How to access spring cloud "Microservice RESTful API” via Gateway use whitelist or unused authorization ? ( the gateway used JWT )
Dieter Hubau
Dec 16 2016 08:56
when a FeignClient receives a 404 from the remote service, it doesnt seem to trigger the Hystrix fallback, but it rather propagates an error 500 containing the error 404 message
how can I trigger the fallback on a 404 as well?
Dieter Hubau
Dec 16 2016 09:03
nevermind, a setting in a specific profile disabled hystrix, my bad
Thibaud Lepretre
Dec 16 2016 10:45
I didn't try myself but since Camden Zuul does not use anymore Ribbon http client, does the following documentation is always up-to-date? because doc talks about
  ConnectTimeout: 3000
  ReadTimeout: 60000
Dave Syer
Dec 16 2016 10:55
Good point.
But it does use ribbon still
Are those settings not valid?
Thibaud Lepretre
Dec 16 2016 10:57
I will try it, I need to create a sample app. In fact is more after reading that I was asking myself what will be the possible regressions
because I'm currently using ribbon properties for other things. I will try to test them all after Camden update and open issue if necessary
@dsyer other question not directly related but many Netflix properties like ribbon.ReadTimeout (using Brixton sorry I do not upgrade to Camden yet) seems to be not relaxed so case sensitive
Thibaud Lepretre
Dec 16 2016 11:02
Do you think is hard work to handle it with relaxed binder? Could be a easy community contribution?
I didn't know how Core netflix works (I think is about Archaius) but it may need a hardcoded mapping (to say read-timeout or any other relaxed version should be ReadTimeout before injecting to Archaius) because Archaius is case sensitive
Thibaud Lepretre
Dec 16 2016 11:36
I will create a sample app before creating an issue
Dave Syer
Dec 16 2016 11:40
I don't think it's possible to bind those properties in the "relaxed" style
They are not Spring Boot configuration properties
Precisely because of what you said
Unless you have an idea about automating somehow the case adjustments before injecting into Archaius.
Thibaud Lepretre
Dec 16 2016 11:42
I will document myself more about Archaius before spec anything and thinking about, because I see many people around me that don't understant why their props do not work (because they used relaxed version of an Archaius properties).
Dave Syer
Dec 16 2016 11:43
I think people rely too much on relaxed binding then
and I wish we had never made kebab-case the default in the docs and tools
it only encourages people to use it in places it doesn't work (like this)
But anyway, we are where we are.
Thibaud Lepretre
Dec 16 2016 11:44
yes is not about documentation is just more about Spring-boot philosophy (magic everywhere) that we need to take care when dealing with Spring cloud netflix
Personally I'm always adding comment on yml to inform futur dev, user that property is case sensitive
Thibaud Lepretre
Dec 16 2016 13:58
forget everything! Everything works even on Camden
Derek Wyatt
Dec 16 2016 15:32
@spencergibb @dcg. Finally got back on this (I'm trying out a ton of reverse proxies currently). It looks like I'm on Brooklyn.SR1.
Dec 16 2016 18:39
Hi - using Camden.SR2. In zuul, is there anyway I can customize the hostname verifier that ribbon creates for all the zuul proxy connections to other services ? Caused by: Host name '' does not match the certificate subject provided by the peer (CN=my-ssl-test, OU=xxx, O=omg, L=dc, ST=dc, C=us) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname( at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket( at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket( at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect( at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect( at org.apache.http.impl.execchain.MainClientExec.establishRoute( at org.apache.http.impl.execchain.MainClientExec.execute( at org.apache.http.impl.execchain.ProtocolExec.execute( at org.apache.http.impl.execchain.RetryExec.execute( at org.apache.http.impl.execchain.RedirectExec.execute( at org.apache.http.impl.client.InternalHttpClient.doExecute( at org.apache.http.impl.client.CloseableHttpClient.execute( at org.apache.http.impl.client.CloseableHttpClient.execute( at org.apache.http.impl.client.CloseableHttpClient.execute( at at at$ at$3$ at$3$ at rx.internal.util.ScalarSynchronousObservable$ ... 201 common frames omitted
RibbonLoadBalancingHttpClient seems to just create a new HttpClientBuilder with no customizations to the HostnameVerifier
Spencer Gibb
Dec 16 2016 20:41
extend RibbonLoadBalancingHttpClient and override createDelegate()?