Closed pferlito closed 7 years ago
@pferlito Hi! Thanks for reporting this.
Turns out this is just an unhandled rejection in your promise. As of Node 7.0.0 all unhandled rejections result in a warning, https://github.com/nodejs/node/pull/8217.
You can do something like,
waterwheel.populateResources()
.then(res => console.log(res))
.catch(err => console.log(err));
That should capture the error and let you know what's happening without throwing a warning.
@mattgrill thanks for your response. Turns out it was a configuration problem with my setup. Working smoothly now.
I'm no Node.js expert but I can't get this to work.
Created the following test.js file and put it in /libraries/waterwheel-js
ran node test.js and got this: (node:80914) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error (node:80914) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.