Hello

For some time now I'm struggling with configuration of my Zuul proxy service and Eureka discrovery service. When I'm trying to call any endpoint through zuul i'm receiving an error:

2018-04-21T19:33:04.175102+00:00 app[web.1]: com.netflix.zuul.exception.ZuulException: Forwarding error
2018-04-21T19:33:04.175104+00:00 app[web.1]:    at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.handleException(RibbonRoutingFilter.java:189) ~[spring-cloud-netflix-zuul-2.0.0.M7.jar!/:2.0.0.M7]
2018-04-21T19:33:04.175105+00:00 app[web.1]:    at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.forward(RibbonRoutingFilter.java:164) ~[spring-cloud-netflix-zuul-2.0.0.M7.jar!/:2.0.0.M7]
2018-04-21T19:33:04.175107+00:00 app[web.1]:    at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.run(RibbonRoutingFilter.java:112) ~[spring-cloud-netflix-zuul-2.0.0.M7.jar!/:2.0.0.M7]
2018-04-21T19:33:04.175109+00:00 app[web.1]:    at com.netflix.zuul.ZuulFilter.runFilter(ZuulFilter.java:117) ~[zuul-core-1.3.1.jar!/:1.3.1]
2018-04-21T19:33:04.175111+00:00 app[web.1]:    at com.netflix.zuul.FilterProcessor.processZuulFilter(FilterProcessor.java:193) ~[zuul-core-1.3.1.jar!/:1.3.1]
2018-04-21T19:33:04.175112+00:00 app[web.1]:    at com.netflix.zuul.FilterProcessor.runFilters(FilterProcessor.java:157) ~[zuul-core-1.3.1.jar!/:1.3.1]
2018-04-21T19:33:04.175113+00:00 app[web.1]:    at com.netflix.zuul.FilterProcessor.route(FilterProcessor.java:118) ~[zuul-core-1.3.1.jar!/:1.3.1]
2018-04-21T19:33:04.175115+00:00 app[web.1]:    at com.netflix.zuul.ZuulRunner.route(ZuulRunner.java:96) ~[zuul-core-1.3.1.jar!/:1.3.1]
2018-04-21T19:33:04.175116+00:00 app[web.1]:    at com.netflix.zuul.http.ZuulServlet.route(ZuulServlet.java:116) ~[zuul-core-1.3.1.jar!/:1.3.1]
2018-04-21T19:33:04.175117+00:00 app[web.1]:    at com.netflix.zuul.http.ZuulServlet.service(ZuulServlet.java:81) ~[zuul-core-1.3.1.jar!/:1.3.1]
2018-04-21T19:33:04.175118+00:00 app[web.1]:    at org.springframework.web.servlet.mvc.ServletWrappingController.handleRequestInternal(ServletWrappingController.java:165) [spring-webmvc-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175120+00:00 app[web.1]:    at org.springframework.cloud.netflix.zuul.web.ZuulController.handleRequest(ZuulController.java:44) [spring-cloud-netflix-zuul-2.0.0.M7.jar!/:2.0.0.M7]
2018-04-21T19:33:04.175121+00:00 app[web.1]:    at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:52) [spring-webmvc-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175123+00:00 app[web.1]:    at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:991) [spring-webmvc-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175124+00:00 app[web.1]:    at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:925) [spring-webmvc-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175126+00:00 app[web.1]:    at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:978) [spring-webmvc-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175127+00:00 app[web.1]:    at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:870) [spring-webmvc-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175128+00:00 app[web.1]:    at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175129+00:00 app[web.1]:    at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:855) [spring-webmvc-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175131+00:00 app[web.1]:    at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175132+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175133+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175135+00:00 app[web.1]:    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) [tomcat-embed-websocket-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175136+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175137+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175139+00:00 app[web.1]:    at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:158) [spring-boot-actuator-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]
2018-04-21T19:33:04.175140+00:00 app[web.1]:    at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.filterAndRecordMetrics(WebMvcMetricsFilter.java:126) [spring-boot-actuator-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]
2018-04-21T19:33:04.175141+00:00 app[web.1]:    at org.springframework.boot.actuate.metrics.web.servlet.WebMvcMetricsFilter.doFilterInternal(WebMvcMetricsFilter.java:111) [spring-boot-actuator-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]
2018-04-21T19:33:04.175148+00:00 app[web.1]:    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175149+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175150+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175152+00:00 app[web.1]:    at org.springframework.boot.actuate.web.trace.servlet.HttpTraceFilter.doFilterInternal(HttpTraceFilter.java:84) [spring-boot-actuator-2.0.0.RELEASE.jar!/:2.0.0.RELEASE]
2018-04-21T19:33:04.175153+00:00 app[web.1]:    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175155+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175156+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175157+00:00 app[web.1]:    at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99) [spring-web-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175159+00:00 app[web.1]:    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175160+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175161+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175163+00:00 app[web.1]:    at org.springframework.web.filter.HttpPutFormContentFilter.doFilterInternal(HttpPutFormContentFilter.java:109) [spring-web-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175164+00:00 app[web.1]:    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175165+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175166+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175168+00:00 app[web.1]:    at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:81) [spring-web-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175169+00:00 app[web.1]:    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175170+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175172+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175173+00:00 app[web.1]:    at org.springframework.cloud.sleuth.instrument.web.TraceFilter.doFilter(TraceFilter.java:162) [spring-cloud-sleuth-core-2.0.0.M7.jar!/:2.0.0.M7]
2018-04-21T19:33:04.175174+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175176+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175177+00:00 app[web.1]:    at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:200) [spring-web-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175178+00:00 app[web.1]:    at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107) [spring-web-5.0.4.RELEASE.jar!/:5.0.4.RELEASE]
2018-04-21T19:33:04.175180+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175181+00:00 app[web.1]:    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175182+00:00 app[web.1]:    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175184+00:00 app[web.1]:    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175188+00:00 app[web.1]:    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175190+00:00 app[web.1]:    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175191+00:00 app[web.1]:    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175192+00:00 app[web.1]:    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175194+00:00 app[web.1]:    at org.apache.catalina.valves.RemoteIpValve.invoke(RemoteIpValve.java:677) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175195+00:00 app[web.1]:    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175196+00:00 app[web.1]:    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175197+00:00 app[web.1]:    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175199+00:00 app[web.1]:    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175200+00:00 app[web.1]:    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175201+00:00 app[web.1]:    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175202+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [na:1.8.0_161-heroku]
2018-04-21T19:33:04.175204+00:00 app[web.1]:    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [na:1.8.0_161-heroku]
2018-04-21T19:33:04.175205+00:00 app[web.1]:    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) [tomcat-embed-core-8.5.28.jar!/:8.5.28]
2018-04-21T19:33:04.175206+00:00 app[web.1]:    at java.lang.Thread.run(Thread.java:748) [na:1.8.0_161-heroku]
2018-04-21T19:33:04.175208+00:00 app[web.1]: Caused by: com.netflix.client.ClientException: null
2018-04-21T19:33:04.175209+00:00 app[web.1]:    at com.netflix.client.AbstractLoadBalancerAwareClient.executeWithLoadBalancer(AbstractLoadBalancerAwareClient.java:118) ~[ribbon-loadbalancer-2.2.4.jar!/:2.2.4]
2018-04-21T19:33:04.175211+00:00 app[web.1]:    at org.springframework.cloud.netflix.zuul.filters.route.support.AbstractRibbonCommand.run(AbstractRibbonCommand.java:186) ~[spring-cloud-netflix-zuul-2.0.0.M7.jar!/:2.0.0.M7]
2018-04-21T19:33:04.175212+00:00 app[web.1]:    at org.springframework.cloud.netflix.zuul.filters.route.support.AbstractRibbonCommand.run(AbstractRibbonCommand.java:51) ~[spring-cloud-netflix-zuul-2.0.0.M7.jar!/:2.0.0.M7]
2018-04-21T19:33:04.175213+00:00 app[web.1]:    at com.netflix.hystrix.HystrixCommand$2.call(HystrixCommand.java:302) ~[hystrix-core-1.5.12.jar!/:1.5.12]
2018-04-21T19:33:04.175215+00:00 app[web.1]:    at com.netflix.hystrix.HystrixCommand$2.call(HystrixCommand.java:298) ~[hystrix-core-1.5.12.jar!/:1.5.12]
2018-04-21T19:33:04.175216+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:46) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175217+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175218+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175220+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175221+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175222+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175224+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175225+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175226+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175227+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175229+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175230+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175231+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175232+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175234+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175238+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175239+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175240+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175242+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175243+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175244+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175245+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175247+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175248+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175249+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175250+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175252+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175253+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175254+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175256+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175257+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175258+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175259+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175261+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175262+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175264+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175265+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:48) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175266+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeMap.call(OnSubscribeMap.java:33) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175267+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175269+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175270+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175271+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175273+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175274+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175275+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:41) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175276+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDoOnEach.call(OnSubscribeDoOnEach.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175278+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175279+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:51) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175280+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeDefer.call(OnSubscribeDefer.java:35) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175281+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175283+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175284+00:00 app[web.1]:    at rx.Observable.subscribe(Observable.java:10352) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175285+00:00 app[web.1]:    at rx.Observable.subscribe(Observable.java:10319) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175287+00:00 app[web.1]:    at rx.internal.operators.BlockingOperatorToFuture.toFuture(BlockingOperatorToFuture.java:51) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175288+00:00 app[web.1]:    at rx.observables.BlockingObservable.toFuture(BlockingObservable.java:410) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175289+00:00 app[web.1]:    at com.netflix.hystrix.HystrixCommand.queue(HystrixCommand.java:378) ~[hystrix-core-1.5.12.jar!/:1.5.12]
2018-04-21T19:33:04.175293+00:00 app[web.1]:    at com.netflix.hystrix.HystrixCommand.execute(HystrixCommand.java:344) ~[hystrix-core-1.5.12.jar!/:1.5.12]
2018-04-21T19:33:04.175295+00:00 app[web.1]:    at org.springframework.cloud.sleuth.instrument.zuul.TraceRibbonCommandFactory$2.execute(TraceRibbonCommandFactory.java:86) ~[spring-cloud-sleuth-core-2.0.0.M7.jar!/:2.0.0.M7]
2018-04-21T19:33:04.175296+00:00 app[web.1]:    at org.springframework.cloud.sleuth.instrument.zuul.TraceRibbonCommandFactory$2.execute(TraceRibbonCommandFactory.java:80) ~[spring-cloud-sleuth-core-2.0.0.M7.jar!/:2.0.0.M7]
2018-04-21T19:33:04.175298+00:00 app[web.1]:    at org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter.forward(RibbonRoutingFilter.java:159) ~[spring-cloud-netflix-zuul-2.0.0.M7.jar!/:2.0.0.M7]
2018-04-21T19:33:04.175299+00:00 app[web.1]:    ... 69 common frames omitted
2018-04-21T19:33:04.175301+00:00 app[web.1]: Caused by: java.lang.RuntimeException: org.apache.http.conn.HttpHostConnectException: Connect to *****.prvt.dyno.rt.heroku.com:40768 [*****.prvt.dyno.rt.heroku.com/*.*.*.115, *****.prvt.dyno.rt.heroku.com/*.*.*.42, *****.prvt.dyno.rt.heroku.com/*.*.*.20, *****.prvt.dyno.rt.heroku.com/*.*.*.255, *****.prvt.dyno.rt.heroku.com/*.*.*.82, *****.prvt.dyno.rt.heroku.com/*.*.*.52, *****.prvt.dyno.rt.heroku.com/*.*.*.84, *****.prvt.dyno.rt.heroku.com/*.*.*.161] failed: Connection refused (Connection refused)
2018-04-21T19:33:04.175303+00:00 app[web.1]:    at rx.exceptions.Exceptions.propagate(Exceptions.java:57) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175304+00:00 app[web.1]:    at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:463) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175305+00:00 app[web.1]:    at rx.observables.BlockingObservable.single(BlockingObservable.java:340) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175307+00:00 app[web.1]:    at com.netflix.client.AbstractLoadBalancerAwareClient.executeWithLoadBalancer(AbstractLoadBalancerAwareClient.java:112) ~[ribbon-loadbalancer-2.2.4.jar!/:2.2.4]
2018-04-21T19:33:04.175308+00:00 app[web.1]:    ... 133 common frames omitted
2018-04-21T19:33:04.175310+00:00 app[web.1]: Caused by: org.apache.http.conn.HttpHostConnectException: Connect to *****.prvt.dyno.rt.heroku.com:40768 [*****.prvt.dyno.rt.heroku.com/*.*.*.115, *****.prvt.dyno.rt.heroku.com/*.*.*.42, *****.prvt.dyno.rt.heroku.com/*.*.*.20, *****.prvt.dyno.rt.heroku.com/*.*.*.255, *****.prvt.dyno.rt.heroku.com/*.*.*.82, *****.prvt.dyno.rt.heroku.com/*.*.*.52, *****.prvt.dyno.rt.heroku.com/*.*.*.84, *****.prvt.dyno.rt.heroku.com/*.*.*.161] failed: Connection refused (Connection refused)
2018-04-21T19:33:04.175311+00:00 app[web.1]:    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:159) ~[httpclient-4.5.5.jar!/:4.5.5]
2018-04-21T19:33:04.175312+00:00 app[web.1]:    at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:373) ~[httpclient-4.5.5.jar!/:4.5.5]
2018-04-21T19:33:04.175314+00:00 app[web.1]:    at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381) ~[httpclient-4.5.5.jar!/:4.5.5]
2018-04-21T19:33:04.175315+00:00 app[web.1]:    at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237) ~[httpclient-4.5.5.jar!/:4.5.5]
2018-04-21T19:33:04.175316+00:00 app[web.1]:    at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) ~[httpclient-4.5.5.jar!/:4.5.5]
2018-04-21T19:33:04.175317+00:00 app[web.1]:    at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) ~[httpclient-4.5.5.jar!/:4.5.5]
2018-04-21T19:33:04.175319+00:00 app[web.1]:    at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) ~[httpclient-4.5.5.jar!/:4.5.5]
2018-04-21T19:33:04.175320+00:00 app[web.1]:    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83) ~[httpclient-4.5.5.jar!/:4.5.5]
2018-04-21T19:33:04.175321+00:00 app[web.1]:    at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108) ~[httpclient-4.5.5.jar!/:4.5.5]
2018-04-21T19:33:04.175323+00:00 app[web.1]:    at org.springframework.cloud.netflix.ribbon.apache.RibbonLoadBalancingHttpClient.execute(RibbonLoadBalancingHttpClient.java:81) ~[spring-cloud-netflix-ribbon-2.0.0.M7.jar!/:2.0.0.M7]
2018-04-21T19:33:04.175327+00:00 app[web.1]:    at org.springframework.cloud.netflix.ribbon.apache.RibbonLoadBalancingHttpClient.execute(RibbonLoadBalancingHttpClient.java:44) ~[spring-cloud-netflix-ribbon-2.0.0.M7.jar!/:2.0.0.M7]
2018-04-21T19:33:04.175328+00:00 app[web.1]:    at com.netflix.client.AbstractLoadBalancerAwareClient$1.call(AbstractLoadBalancerAwareClient.java:104) ~[ribbon-loadbalancer-2.2.4.jar!/:2.2.4]
2018-04-21T19:33:04.175329+00:00 app[web.1]:    at com.netflix.loadbalancer.reactive.LoadBalancerCommand$3$1.call(LoadBalancerCommand.java:303) ~[ribbon-loadbalancer-2.2.4.jar!/:2.2.4]
2018-04-21T19:33:04.175331+00:00 app[web.1]:    at com.netflix.loadbalancer.reactive.LoadBalancerCommand$3$1.call(LoadBalancerCommand.java:287) ~[ribbon-loadbalancer-2.2.4.jar!/:2.2.4]
2018-04-21T19:33:04.175332+00:00 app[web.1]:    at rx.internal.util.ScalarSynchronousObservable$3.call(ScalarSynchronousObservable.java:231) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175333+00:00 app[web.1]:    at rx.internal.util.ScalarSynchronousObservable$3.call(ScalarSynchronousObservable.java:228) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175334+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175336+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeConcatMap$ConcatMapSubscriber.drain(OnSubscribeConcatMap.java:286) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175337+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeConcatMap$ConcatMapSubscriber.onNext(OnSubscribeConcatMap.java:144) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175338+00:00 app[web.1]:    at com.netflix.loadbalancer.reactive.LoadBalancerCommand$1.call(LoadBalancerCommand.java:185) ~[ribbon-loadbalancer-2.2.4.jar!/:2.2.4]
2018-04-21T19:33:04.175340+00:00 app[web.1]:    at com.netflix.loadbalancer.reactive.LoadBalancerCommand$1.call(LoadBalancerCommand.java:180) ~[ribbon-loadbalancer-2.2.4.jar!/:2.2.4]
2018-04-21T19:33:04.175341+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175342+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeConcatMap.call(OnSubscribeConcatMap.java:94) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175344+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeConcatMap.call(OnSubscribeConcatMap.java:42) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175345+00:00 app[web.1]:    at rx.Observable.unsafeSubscribe(Observable.java:10256) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175346+00:00 app[web.1]:    at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber$1.call(OperatorRetryWithPredicate.java:127) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175347+00:00 app[web.1]:    at rx.internal.schedulers.TrampolineScheduler$InnerCurrentThreadScheduler.enqueue(TrampolineScheduler.java:73) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175349+00:00 app[web.1]:    at rx.internal.schedulers.TrampolineScheduler$InnerCurrentThreadScheduler.schedule(TrampolineScheduler.java:52) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175350+00:00 app[web.1]:    at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber.onNext(OperatorRetryWithPredicate.java:79) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175351+00:00 app[web.1]:    at rx.internal.operators.OperatorRetryWithPredicate$SourceSubscriber.onNext(OperatorRetryWithPredicate.java:45) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175353+00:00 app[web.1]:    at rx.internal.util.ScalarSynchronousObservable$WeakSingleProducer.request(ScalarSynchronousObservable.java:276) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175354+00:00 app[web.1]:    at rx.Subscriber.setProducer(Subscriber.java:209) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175355+00:00 app[web.1]:    at rx.internal.util.ScalarSynchronousObservable$JustOnSubscribe.call(ScalarSynchronousObservable.java:138) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175356+00:00 app[web.1]:    at rx.internal.util.ScalarSynchronousObservable$JustOnSubscribe.call(ScalarSynchronousObservable.java:129) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175358+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175359+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175360+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175368+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175370+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:48) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175371+00:00 app[web.1]:    at rx.internal.operators.OnSubscribeLift.call(OnSubscribeLift.java:30) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175372+00:00 app[web.1]:    at rx.Observable.subscribe(Observable.java:10352) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175373+00:00 app[web.1]:    at rx.Observable.subscribe(Observable.java:10319) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175375+00:00 app[web.1]:    at rx.observables.BlockingObservable.blockForSingle(BlockingObservable.java:443) ~[rxjava-1.3.6.jar!/:1.3.6]
2018-04-21T19:33:04.175376+00:00 app[web.1]:    ... 135 common frames omitted
2018-04-21T19:33:04.175377+00:00 app[web.1]: Caused by: java.net.ConnectException: Connection refused (Connection refused)
2018-04-21T19:33:04.175382+00:00 app[web.1]:    at java.net.PlainSocketImpl.socketConnect(Native Method) ~[na:1.8.0_161-heroku]
2018-04-21T19:33:04.175383+00:00 app[web.1]:    at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350) ~[na:1.8.0_161-heroku]
2018-04-21T19:33:04.175384+00:00 app[web.1]:    at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206) ~[na:1.8.0_161-heroku]
2018-04-21T19:33:04.175385+00:00 app[web.1]:    at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188) ~[na:1.8.0_161-heroku]
2018-04-21T19:33:04.175386+00:00 app[web.1]:    at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392) ~[na:1.8.0_161-heroku]
2018-04-21T19:33:04.175388+00:00 app[web.1]:    at java.net.Socket.connect(Socket.java:589) ~[na:1.8.0_161-heroku]
2018-04-21T19:33:04.175392+00:00 app[web.1]:    at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:339) ~[httpclient-4.5.5.jar!/:4.5.5]
2018-04-21T19:33:04.175393+00:00 app[web.1]:    at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142) ~[httpclient-4.5.5.jar!/:4.5.5]
2018-04-21T19:33:04.175394+00:00 app[web.1]:    ... 177 common frames omitted

It looks like Zuul is receiving correct (internal) hostname of my service but my request simply cannot by forwarded.

When I'm calling the same endpoint directly everything works perfectly. Also when I'm running all services locally (config service, Eureka service, Zuul proxy, other services) there are no problems with forwarding.

I assumed that SSL validation may be causing these, but setting zuul.sslHostnameValidationEnabled to false (and changing other properties) wouldn't fix this problem.

This is cofiguration that I've ended up with:

bootstap.yml (zuul proxy)

spring:
  cloud:
    config:
      uri: https://****.herokuapp.com

zuul:
  sslHostnameValidationEnabled: false
  routes:
    core:
      path: /example/**
      sensitiveHeaders:
      serviceId: example-service

ribbon:
  ReadTimeout: 5000
  IsSecure: true

hystrix:
  command:
    default:
      execution:
        isolation:
          thread:
            timeoutInMilliseconds: 12000

management:
  endpoint:
    env:
      enabled: true
  endpoints:
    web:
      exposure:
        include: env

bootstrap.yml (eureka service)

spring:
  cloud:
    config:
      uri: https://*****.herokuapp.com

eureka:
  instance:
    nonSecurePortEnabled: false
    securePortEnabled: true
    securePort: ${server.port}
    homePageUrl: ${eureka.instance.hostname}:${server.port}/
    secureVirtualHostName: ${spring.application.name}

management:
  endpoint:
    env:
      enabled: true
  endpoints:
    web:
      exposure:
        include: env

application.yml (from config service)

logging:
  level:
    org:
      springframework:
        security: INFO

eureka:
  client:
    serviceUrl:
      defaultZone: http://*****.herokuapp.com/eureka

authentication:
  jwt:
    signing-key: *******

spring:
  cloud:
    config:
      allowOverride: true
      overrideNone: true

management:
  endpoint:
    env:
      enabled: true

eureka-service.yml (from config service)

eureka:
  instance:
    hostname: https://*******.herokuapp.com
    nonSecurePort: 80
    prefer-ip-address: true
  client:
    register-with-eureka: false
    fetch-registry: false

pom.xml (every service)

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

    <!--...-->

    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.0.0.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <java.version>1.8</java.version>
        <spring-cloud.version>Finchley.M8</spring-cloud.version>
    </properties>

    <dependencies>
        <!--...-->
    </dependencies>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring-cloud.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>


</project>


**Comment From: ryanjbaxter**

It does not seem like an SSL error to me.  Just seems like Zuul cant reach that URL.  I am not sure what to say to help since it seems like something specific to your environment.

**Comment From: nitineman**

@kpodkalicki 

Were you able to find any resolution for this? I am getting a similar exception with service-id(spring application name which is visible in the eureka page as well). I am using localhost and non-SSL.

**Comment From: ryanjbaxter**

If you are getting a connection refused error this is most certainly something to do with your environment

**Comment From: kpodkalicki**

@nitineman 
Unfortunately I wasn't able to resolve this issue. I tried many sets of configuration but nothing have seemed to work.

It seems that your problem is a bit different than mine. I'm only seeing these errors with my zuul service deployed on heroku. I think there's a problem with validation of certification that heroku is using internally. I have tried to disable this validation, but no success.
On localhost everything works perfectly fine.

**Comment From: ryanjbaxter**

That is not really something we can help with if it is specific to heroku.  The certificate will need to be included in the jvm in order for zuul to trust it.

**Comment From: kpodkalicki**

@ryanjbaxter 
Shouldn't `zuul.sslHostnameValidationEnabled=false` disable certificate validation? 

**Comment From: goro-7**

I am also facing same issue. Everything works fine on local but issue happens when I host my entire set up of config server, Eureka, Zuul and micro service on heroku. Anyone solved this problem?

**Comment From: ryanjbaxter**

As I said above it most likely an error in your configuration or deployment on Heroku.

**Comment From: skpd05**

It happens in docker container swarm on local system ZUUL+EUREKA+SPRING BOOT APPs.  The setup works on local system. If created as docker containers, Zuul won't find the respective apps. This is due to the local IPs created by containers which seems to be not accessible but it works intermittently which is surprising me. Debugging on it....

**Comment From: HgJack**

Anything new , witch the issuse?
I've got the same problem.

**Comment From: longlivetmj**

Any update on above error got same issue in docker

**Comment From: vimala55**

Any Update  on this issue. 
Same problem for me also

**Comment From: kaushikveluru**

same problem for me also. Have been trying to figure out the issue for many hours now. 

**Comment From: deafjava**

I'm facing same issue. Any updates?

**Comment From: Sammy2005**

Same issue here on zuul. I am not using heroku


**Comment From: hamedmirzaei**

I've faced with this exception as well. According to [this](https://stackoverflow.com/questions/15546589/what-causes-httphostconnectexception), in general `connection refused` is because of the following two reasons:
1. the server you are talking to is going up and down, OR
2. there is something between your client and the proxy that is intermittently sending requests to a non-functioning host, or something.
In my case my back-end service was a Apache Camel rest service which I added this line of code to make it more clear:
`restConfiguration().port(8764).host("localhost");`
I don't know exactly why but after removing the host part, it worked. It seems that Eureka gives some ip to registered services.
`restConfiguration().port(8764);`
All I want to say is that to resolve this exception you should take a good look at your back-end service.

**Comment From: deshpandeamrut**

@kpodkalicki Any update on this issue? Facing the same issue.

**Comment From: NovaxSS**

@kpodkalicki Any update on this issue? Facing the same issue.

**Comment From: RamanAnand**

i also faced this issue. I could check from logs that clients tried to register but registration status: 204.
in order to resolve you should restart the eureka and your clients. Such issue was faced when there was network connectivity lost.

**Comment From: Blarc**

It's important you don't have your eureka hostname set as localhost on Heroku, cause you'll get this wierd heroku address, which heroku uses.

eureka: instance: hostname: ${DOMAIN_NAME:localhost}