Questions tagged [request-promise]

NodeJS simplified HTTP request client 'request' with Promise support. Powered by Bluebird.

NodeJS simplified HTTP request client 'request' with Promise support. Powered by Bluebird.

Resources

Also check out the new libraries that are very similar to request-promise v4:

363 questions
-2
votes
1 answer

Promise not resolving before IF STATEMENT

I'm trying to check the results of "checkWorkflow" but it seems to be running the "If" statement before checking, i think this because of my console output. I feel like i'm doing something wrong with the promise, but i'm kinda at a lost at this…
Justin Miller
  • 21
  • 1
  • 10
-2
votes
1 answer

Why does this program exit before invoking my "then" clause?

When I sent this simple API request-promise call, I don't get any response. Can someone please tell me why this isn't working? var request = require('request-promise'); var options = { uri: 'https://jsonplaceholder.typicode.com/todos/1', …
-4
votes
3 answers

Function returns undefined instead of result of the request

I have some problems with the asynchronous in javascript. There is a function(next) that repeatedly sending REST API requests to a server. The functions will call itself until the root ID is found. You can find console.log('the root ID is reached!')…
1 2 3
24
25