Quantcast
Channel: nodejs request, loop & promise - Stack Overflow
Viewing full articles (2 articles)
Browse article index
↧

Answer by marton for nodejs request, loop & promise

$
0
0

You need toreturn request.get({... instead of just request.get({

The way you have it now your function(pveId) returns undefined so your Promise.map just registers a bunch of undefined's instead of actual promises.

You should also not mix promises with callbacks, use request-promise instead of request.

↧

Viewing full articles (2 articles)
Browse article index

Latest Images

Trending Articles



Latest Images