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

29th
Mar 2017
Amin Abu-Taleb
@aabutaleb
Mar 29 2017 09:58
Hi guys, have any of you had problems with zuul ignoring the Accept-Encoding headers when receiving a request? If I hit the service directly it returns it compressed, but through Zuul, everything comes in plain text
Dave Syer
@dsyer
Mar 29 2017 10:04
Did you try through the ZuulServlet directly (/zuul/**)?
I'm not sure if that works, but if it does it gives you a clue as to what is happening
In general I wouldn't be surprised though, if encoding was changed in the proxy.
Zuul, in principle, can change the content completely, so if it changes the encoding I would not be surprised.
Amin Abu-Taleb
@aabutaleb
Mar 29 2017 10:40
I just tried (didn't know of that btw) but still returning plain text, I googled it and it should be ok but it's somehow ignoring it...
Dave Syer
@dsyer
Mar 29 2017 10:43
If you open a ticket in github we can talk about it there
It might not be something we can fix easily though
Maybe you should look for a strategy that doesn't rely on it?
Amin Abu-Taleb
@aabutaleb
Mar 29 2017 10:56
I'll open the ticket
Is https://github.com/spring-cloud/spring-cloud-netflix/ the right repository to open the issue?
Dave Syer
@dsyer
Mar 29 2017 11:01
yes
Amin Abu-Taleb
@aabutaleb
Mar 29 2017 11:02
thanks
Amin Abu-Taleb
@aabutaleb
Mar 29 2017 13:58
spring-cloud/spring-cloud-netflix#1818
Ryan Baxter
@ryanjbaxter
Mar 29 2017 17:42
@aabutaleb if u can provide a project that reproduced the problem as well that would be great
Tapio Rautonen
@trautonen
Mar 29 2017 22:13
Is there a simple way to enable service discovery with zipkin http span sender? The autoconfiguration sets up its own RestTemplate, which of course ignores ribbon: https://github.com/spring-cloud/spring-cloud-sleuth/blob/master/spring-cloud-sleuth-zipkin/src/main/java/org/springframework/cloud/sleuth/zipkin/ZipkinAutoConfiguration.java
I find this kind of weird, because few lines after it uses discovery client to fetch information about the service itself, but is not able to use discovery to send the spans :(
Spencer Gibb
@spencergibb
Mar 29 2017 22:19
Sleuth, not sleu :-)
Tapio Rautonen
@trautonen
Mar 29 2017 22:20
ok, thanks, will ask there