Skip to content Skip to sidebar Skip to footer
Showing posts with the label Bluebird

Request-promise Unhandled Rejection Requesterror: Error: Etimedout

Hi i try to write some download function by promise request, but if i have a timeout i cant handled… Read more Request-promise Unhandled Rejection Requesterror: Error: Etimedout

Bluebird Promise Resolve(data) Is Undefined In Client Code

Hiyas. I have a simple app whereby a client is expecting a promise as a result, but upon calling th… Read more Bluebird Promise Resolve(data) Is Undefined In Client Code

Problems With Sequelize Promises And Normal Node.js Callbacks

I'm using Sequelize in an application that uses normal node.js style callbacks in most of its c… Read more Problems With Sequelize Promises And Normal Node.js Callbacks

Proper While() Loop For Bluebird Promises (without Recursion?)

I've been learning promises using bluebird for two weeks now. I have them mostly understood, b… Read more Proper While() Loop For Bluebird Promises (without Recursion?)

How To Turn Nested Callback Into Promise?

Recently I started using pg-promise with bluebird library. I have always been nesting callback and … Read more How To Turn Nested Callback Into Promise?

Can I Break A Chain Early With Bluebird Promises?

I don't necessarily want to error, but I have: getFromDb().then (tradeData) -> if not trad… Read more Can I Break A Chain Early With Bluebird Promises?

How Do I Know Which Handlers Throw Error In Promise?

Suppose I have a promise as following: p.then(Task1) .then(Task2) .then(Task3) .catch(errorHandl… Read more How Do I Know Which Handlers Throw Error In Promise?