Closed sanbeam closed 7 years ago
It sounds like you're not doing
(...).then( function() { /* ... success ... */ }, function() { /* ... error ... */ } );
but only
(...).then( function() { /* ... success ... */ } );
in response to a promise. If you only provide the first function, then the error goes unhandled, and will cause an exit with a fatal error in future node.js versions.
In this case the error is occurring because the resource you wish to register does not pass validation.
Bingo! Problem solved.
(node:3959) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 2): Error: Invalid ResourceInit (node:3959) 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.