Quantcast
Channel: nodejs request, loop & promise - Stack Overflow
Browsing index pages (2 articles)

nodejs request, loop & promise

I'm just starting with NodeJS. I try to do with NodeJS a loop and only then : send my result to an express template.I tried many lib and promises but none of them worked. Node do "then" before ending...

View Article


Answer by marton for nodejs request, loop & promise

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...

View Article

Browsing index pages (2 articles)


Latest Images