title: Eureka client exception com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
body: <p>I am new to microservices. I'm trying to create one small application for learning purpose. Here is my code:
  EurekaServer - application.yml</p>
  
  <pre><code>    spring:
       application:
        name: EurekaServer
  
      server:
       port: 8080
       servlet:
        context-path: /EurekaServer
  
      eureka:
       client:
        fetch-registry: false
        register-with-eureka: false 
  </code></pre>
  
  <p>Eureka Server is working fine and I am able to see the dashboard at <a href="http://localhost:8080/EurekaServer/" rel="nofollow noreferrer">http://localhost:8080/EurekaServer</a></p>
  
  <p>EmployeeClient: application.yml is below:</p>
  
  <pre><code>    spring:
       application:
        name: EmployeeClient
  
      server:
       port: 8586
  
      eureka:
       client: 
        serviceUrl:
         defaultZone: http://localhost:8080/EurekaServer
  </code></pre>
  
  <p>In last line I need to write serviceUrl explicitly as on pressing ctrl+space in sts it doesnot show option serviceUrl but it shows service-url, hyphen sign. And same with defaultZone. Am I missing some jar or specific version?</p>
  
  <p>My EmployeeClientApplication.java</p>
  
  <pre><code>    @EnableEurekaClient
      @SpringBootApplication
      public class EmployeeClientApplication {
  
         public static void main(String[] args) {
            SpringApplication.run(EmployeeClientApplication.class, args);
         }
      }
  </code></pre>
  
  <p>when I try to run EmployeeClientApplication.java it gives me below exception:</p>
  
  <pre><code>    com.netflix.discovery.shared.transport.TransportException: Cannot execute request on any known server
  </code></pre>
  
  <p>I also tried using @EnableDiscoveryClient in place of @EnableEurekaClient, but with no luck.</p>
  
  <p>A part of EmployeeClient pom.xml is below:</p>
  
  <pre><code>    &lt;parent&gt;
         &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
         &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
         &lt;version&gt;2.0.3.RELEASE&lt;/version&gt;
         &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
  
      &lt;properties&gt;
        &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
        &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
        &lt;java.version&gt;1.8&lt;/java.version&gt;
        &lt;spring-cloud.version&gt;Finchley.RELEASE&lt;/spring-cloud.version&gt;
      &lt;/properties&gt;
  
     &lt;dependencies&gt;
       &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-config&lt;/artifactId&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.springframework.cloud&lt;/groupId&gt;
          &lt;artifactId&gt;spring-cloud-starter-netflix-eureka-client&lt;/artifactId&gt;
      &lt;dependency&gt;
  </code></pre>
  
  <p>Where I'm making a mistake?</p>