ZuulException: forward error with Zuul-Eureka
<p>I'm facing a <code>ZuulException: forward error</code>  when routing with Zuul and Eureka.</p>

<p>The error not occur during the first minutes but after 1 or 2 mn I get this weird error. </p>

<p>I'm using <strong>spring boot 1.4</strong> and <strong>spring cloud Camden</strong> </p>

<p>If you want to reproduce the error or see my project: <a href="https://github.com/Seb69/Spring-demo-ZuulException/tree/master" rel="nofollow">https://github.com/Seb69/Spring-demo-ZuulException/tree/master</a></p>

<p>Eureka config:</p>

<pre><code>server:
    port: 9999

spring:
    application:
        name: eureka-server
eureka:
   instance:
     hostname: localhost
   client:
     registerWithEureka: false
     fetchRegistry: false
     serviceUrl:
       defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
</code></pre>

<p>Service-Gateway config (Zuul): </p>

<pre><code>server:
    port: 1111
spring:
    application:
        name: service-gateway

# ZUUL (Load balancing)
zuul:
    ignoredServices: '*'
    routes:
        service-server:
            stripPrefix: true
            path: /api/**
            serviceId:  SERVICE-SERVER


# EUREKA (Service registry)
eureka:
    instance:
        leaseRenewalIntervalInSeconds: 1
        leaseExpirationDurationInSeconds: 2
    client:
        serviceUrl:
            defaultZone: http://localhost:9999/eureka/
</code></pre>

<p>Service config:</p>

<pre><code>server:
    port: 8095
spring:
    application:
        name: service-server

eureka:
    instance:
        leaseRenewalIntervalInSeconds: 1
        leaseExpirationDurationInSeconds: 2
    client:
        serviceUrl:
            defaultZone: http://localhost:9999/eureka/
</code></pre>

<p>Here is a short version of my stack trace:</p>

<blockquote>
  <p>com.netflix.zuul.exception.ZuulException: Forwarding error</p>
  
  <p>Caused by: com.netflix.client.ClientException: Number of retries on
  next server exceeded max 1 retries, while making a call for:
  mbp-de-andre:8095</p>
  
  <p>Caused by: java.net.UnknownHostException: mbp-de-andre</p>
</blockquote>