Cannot execute request on any known server

I am very new to the microservices and trying to run the code from link: . When I simply run the code I see the following error comes.

What is the issue ? Cannot execute request on any known server
    at ~[eureka-client-1.4.12.jar:1.4.12]
    at ~[eureka-client-1.4.12.jar:1.4.12]
    at$6.execute( ~[eureka-client-1.4.12.jar:1.4.12]
    at ~[eureka-client-1.4.12.jar:1.4.12]
    at ~[eureka-client-1.4.12.jar:1.4.12]
    at [eureka-client-1.4.12.jar:1.4.12]
    at [eureka-client-1.4.12.jar:1.4.12]
    at [eureka-client-1.4.12.jar:1.4.12]
    at$ [eureka-client-1.4.12.jar:1.4.12]
    at java.util.concurrent.Executors$ Source) [na:1.8.0_144]
    at Source) [na:1.8.0_144]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.8.0_144]
    at java.util.concurrent.ThreadPoolExecutor$ Source) [na:1.8.0_144]
    at Source) [na:1.8.0_144]

2017-09-09 18:53:11.909 ERROR 16268 --- [tbeatExecutor-0] c.n.d.s.t.d.RedirectingEurekaHttpClient  : Request execution error

I have not installed anything special on to the system. Please let me know what do I need to install?


I find I have to add these two applications to the,it can work.Only one is not enough.



This particular message is just a warning. Your application is attempting to register with Eureka but Eureka is not responding. You can either start an instance of Eureka or disable the automatic registration by adding the following to your application.yml.

    register-with-eureka: false

You need to create Eureka Registry Server which is another microservice. It's main class incase of an SpringBoot application, should have @EnableEurekaServer annotation.

Then in your Eureka Client you will have to mention the Registry server URL in appliation.yml as below :

    name: stock-service

  port: 8083

    registerWithEureka: true
    fetchRegistry: true
      defaultZone: http://localhost:8084/eureka/
    hostname: localhost

where defaultzone should hold the value of your Eureka Registry.

Once you do all these configurations you need to Get the Eureka Registry microservice up and then you can get the Eureka client up. Once your Registry is up you will not face this exception.

This is happening because it is trying to connect to any known server, so to stop that error, a known server is eureka server on port 8761 which is its default port, you will have to update the with following


To avoid eureka from registering itself, you add this to the


Ensure that EurekaServer is enabled, for example using spring boot you write the below on the main class.


Please pardon me providing solution using .properties file but that is what i work with but .yml configurations shouldn't be too different.

Make sure your ribbon client is correct

package com.in28minutes.microservices.currencyconversionservice;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name="curreenter code herency-exchange-service")
public interface CurrencyExchangeServiceProxy { 
    public CurrencyConversionBean retrieveExchangeValue
        (@PathVariable("from") String from, @PathVariable("to") String to); //mention correct pathvariables

Need Your Help

Variadic Template conversion to std::function<R(ARGS...)> works with GCC and not MSVC2013, why?

c++ c++11 variadic-templates c++14

If this is a duplicate I appologize. I couldn't find anything in my searches though.

How to tell CRAN to install package dependencies automatically?

r cran r-forge

I develop a package in R and when I check and build it in my local computer it works properly. But when I tried it in CRAN, I get a package dependencies error. My package depends on two functions of