Skip to content

Instantly share code, notes, and snippets.

@zmts
Created December 8, 2018 20:19
Show Gist options
  • Select an option

  • Save zmts/bef24d43d4af76c819b4b26c89568040 to your computer and use it in GitHub Desktop.

Select an option

Save zmts/bef24d43d4af76c819b4b26c89568040 to your computer and use it in GitHub Desktop.
Issues with Bluebird.js debug mode in Express.js

Issues with Bluebird.js debug mode in Express.js(development mode)

http://bluebirdjs.com/docs/api/environment-variables.html

(node:48913) Warning: a promise was created in a handler at /Volumes/DATA/dev/supra-api-nodejs/node_modules/express/lib/router/index.js:317:13 but was not returned from it, see http://goo.gl/rRqMUw
    at new Promise (/Volumes/DATA/dev/supra-api-nodejs/node_modules/bluebird/js/release/promise.js:79:10)

To disable this warnings add this to .env

BLUEBIRD_DEBUG=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment