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

16th
Dec 2016
Shen Xianyi
@shenxy
Dec 16 2016 07:29
@dsyer I'm using a tool called Hoverfly. It's basically a proxy.
Dave Syer
@dsyer
Dec 16 2016 07:38
So how does that work. You have to set -Dhttp.proxy?
Gim Lyu
@lvguanming
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
@Turbots
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
@Turbots
Dec 16 2016 09:03
nevermind, a setting in a specific profile disabled hystrix, my bad
Thibaud Lepretre
@kakawait
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? http://cloud.spring.io/spring-cloud-static/Camden.SR3/#_uploading_files_through_zuul because doc talks about
ribbon:
  ConnectTimeout: 3000
  ReadTimeout: 60000
Dave Syer
@dsyer
Dec 16 2016 10:55
Good point.
But it does use ribbon still
Are those settings not valid?
Thibaud Lepretre
@kakawait
Dec 16 2016 10:57
I will try it, I need to create a sample app. In fact is more after reading that https://github.com/spring-cloud/spring-cloud-netflix/issues/1290#issuecomment-242204614 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
@kakawait
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
@kakawait
Dec 16 2016 11:36
I will create a sample app before creating an issue
Dave Syer
@dsyer
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
@kakawait
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
@dsyer
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
@kakawait
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
:p
Thibaud Lepretre
@kakawait
Dec 16 2016 13:58
forget everything! Everything works even on Camden
Derek Wyatt
@derekwyatt
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.
bitsofinfo
@bitsofinfo
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: javax.net.ssl.SSLPeerUnverifiedException: Host name '192.168.0.148' 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(SSLConnectionSocketFactory.java:465) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:395) at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353) at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134) at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353) at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380) at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236) at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184) at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88) at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110) at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) at org.springframework.cloud.netflix.ribbon.apache.RibbonLoadBalancingHttpClient.execute(RibbonLoadBalancingHttpClient.java:75) at org.springframework.cloud.netflix.ribbon.apache.RibbonLoadBalancingHttpClient.execute(RibbonLoadBalancingHttpClient.java:35) at com.netflix.client.AbstractLoadBalancerAwareClient$1.call(AbstractLoadBalancerAwareClient.java:109) at com.netflix.loadbalancer.reactive.LoadBalancerCommand$3$1.call(LoadBalancerCommand.java:303) at com.netflix.loadbalancer.reactive.LoadBalancerCommand$3$1.call(LoadBalancerCommand.java:287) at rx.internal.util.ScalarSynchronousObservable$3.call(ScalarSynchronousObservable.java:231) ... 201 common frames omitted
RibbonLoadBalancingHttpClient seems to just create a new HttpClientBuilder with no customizations to the HostnameVerifier
Spencer Gibb
@spencergibb
Dec 16 2016 20:41
extend RibbonLoadBalancingHttpClient and override createDelegate()?