{"action":"opened","issue":{"url":"https://api.github.com/repos/petkaantonov/bluebird/issues/1297","repository_url":"https://api.github.com/repos/petkaantonov/bluebird","labels_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/1297/labels{/name}","comments_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/1297/comments","events_url":"https://api.github.com/repos/petkaantonov/bluebird/issues/1297/events","html_url":"https://github.com/petkaantonov/bluebird/issues/1297","id":194045400,"number":1297,"title":"No Stacktrace/ Line number on warning, Bluebird with Mongoose","user":{"login":"360disrupt","id":7427903,"avatar_url":"https://avatars.githubusercontent.com/u/7427903?v=3","gravatar_id":"","url":"https://api.github.com/users/360disrupt","html_url":"https://github.com/360disrupt","followers_url":"https://api.github.com/users/360disrupt/followers","following_url":"https://api.github.com/users/360disrupt/following{/other_user}","gists_url":"https://api.github.com/users/360disrupt/gists{/gist_id}","starred_url":"https://api.github.com/users/360disrupt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/360disrupt/subscriptions","organizations_url":"https://api.github.com/users/360disrupt/orgs","repos_url":"https://api.github.com/users/360disrupt/repos","events_url":"https://api.github.com/users/360disrupt/events{/privacy}","received_events_url":"https://api.github.com/users/360disrupt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-12-07T13:09:06Z","updated_at":"2016-12-07T13:09:06Z","closed_at":null,"body":"`node v7.2`\r\n`\"bluebird\": \"^3.4.6\"`\r\n\r\nI found this for FE-Apps\r\nhttps://github.com/petkaantonov/bluebird/issues/846\r\n\r\nBut I don't get any information from the warning on the backend side. I use bluebird for my `mongoose` promises. I just have callback functions which return from mongoose.\r\n\r\nThe only thing node shows me is:\r\n`Warning: a promise was created in a handler but was not returned from it, see http://goo.gl/rRqMUw`\r\n\r\n## Code\r\n```\r\nchalk = require('chalk')\r\ninspect = require('util').inspect\r\n\r\nPromise = require(\"bluebird\")\r\nPromise.config({\r\n  longStackTraces: true\r\n  warnings: true\r\n  monitoring: true\r\n})\r\nmongoose = require('mongoose')\r\nmongoose.Promise = Promise\r\nmongoose.set('debug', true)\r\n\r\nprocess.on 'warning', (warning) ->\r\n  console.log(warning.name) #warning\r\n  console.log(warning.message) #a promise was created in a handler but was not returned from it, see http://goo.gl/rRqMUw\r\n  console.log(warning.stack)# Warning: a promise was created in a handler but was not returned from it, see http://goo.gl/rRqMUw\r\n  throw warning\r\n  return\r\n```"}}
{"actor":{"display_login":"360disrupt"}}