title: Spring Cloud Netflix Eureka doesn't find eureka-js instances
body: <p>I have 3 microservices in Spring:</p>
  
  <ul>
  <li>Netflix Eureka</li>
  <li>A Producer</li>
  <li>A Consumer</li>
  </ul>
  
  <p>And another microservice written in NodeJs with Eureka-js-client</p>
  
  <ul>
  <li>node-microservice</li>
  </ul>
  
  <p>Spring Eureka dashboard lists all of them
  <a href="https://i.stack.imgur.com/jNjE3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/jNjE3.png" alt="instances"></a></p>
  
  <p>Until now everything looks OK, but the problem is when I try to read my <strong>node-microservice</strong> instance in eureka server. While I successfully find employee-producer instance in this way</p>
  
  <pre><code>List&lt;ServiceInstance&gt; instances=discoveryClient.getInstances("employee-producer");
      ServiceInstance serviceInstance=instances.get(0);
  </code></pre>
  
  <p>I'm not able to find my node-microservice</p>
  
  <pre><code>List&lt;ServiceInstance&gt; instances=discoveryClient.getInstances("node-microservice");
      ServiceInstance serviceInstance=instances.get(0);
  </code></pre>
  
  <p>From debug the result is <a href="https://i.stack.imgur.com/ik08D.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ik08D.png" alt="node-microservice not found"></a></p>
  
  <p><strong>node-microservice</strong></p>
  
  <pre><code>const Eureka = require('eureka-js-client').Eureka;
  const express = require('express');
  const server = express();
  server.use(express.json());
  server.use(function(req, res, next) {
      res.header("Access-Control-Allow-Origin", "*");
      res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
      next();
  });
  server.listen(3001);
  server.get('/', function (req, res) {
      res.send("CIaooo");
  });
  
  
  
  // example configuration
  const client = new Eureka({
      // application instance information
      instance: {
          app: 'node-microservice',
          hostName: 'localhost',
          ipAddr: '127.0.0.1',
          port:  {
              '$': 3001,
              '@enabled': 'true',
          },
          vipAddress: 'jq.test.something.com',
          statusPageUrl: 'http://localhost:3001/info',
          dataCenterInfo:  {
              '@class': 'com.netflix.appinfo.InstanceInfo$DefaultDataCenterInfo',
              name: 'MyOwn',
          }
      },
      eureka: {
          // eureka server host / port
          host: 'localhost',
          port: 8761,
          servicePath: '/eureka/apps/'
      },
  });
  
  client.logger.level('debug');
  
  client.start(function(error){
      console.log(error || 'complete')});
  </code></pre>
  
  <p>Other strange thing is that from spring debug I can list services, where also node-microservice is listed</p>
  
  <p><a href="https://i.stack.imgur.com/ihxiS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ihxiS.png" alt="enter image description here"></a></p>
  
  <p>What's wrong with my code?</p>