title: NodeJS / request promise : the promise is resolved automatically
body: <p>I use the <code>request-promise</code>  node module as following :</p>
  
  <pre><code>let rp = require('request-promise');
  </code></pre>
  
  <p>I have the following promises chain :</p>
  
  <pre><code>getData().then( data =&gt; {
    return getUser(data);
  })
  .then( data =&gt; {
    return getProfiles(data);
  }).then( data =&gt; {
    updateAddresses(data);
  });
  </code></pre>
  
  <p>The <code>updateAddresses</code> is as following :</p>
  
  <pre><code>function updateAddresses(data){
     var promises = data.map( (aProfile) =&gt; {
        var options = {url:'http://example.com', method:'POST'};
        return rp(options);
     });
  
     // Promise.all(promises).then(...);
  }
  </code></pre>
  
  <p>So I'm preparing a promise (request-promise) for each element of the array.</p>
  
  <p>The problem is that those promises are firing even when I remove <code>Promise.all</code> !</p>
  
  <p>How is that possible ? How can I make the promise not firing ?</p>
  
  <p>Regards.</p>