ChaitanyaKaranam / servicenow-rest-api

Node.js Wrapper library for ServiceNow REST API.
https://www.npmjs.com/package/servicenow-rest-api
MIT License
18 stars 21 forks source link

Unhandled Promise Rejection Warning #4

Closed mlnewbie closed 6 years ago

mlnewbie commented 6 years ago

Receiving an unhandled promise rejection warning for every function call. In servicenow.js, you're sending callback(err)in the axios req catch statements, would that need to change? - Reference https://github.com/axios/axios/issues/18

(node:11476) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: callback is not a function

ChaitanyaKaranam commented 6 years ago

Handled callback issues in new version. This issue occurs when callback function is not passed as parameter.