Error Events The api/js-api has an error handler event where you can subscribe Example alfrescoJsApi.on('error', error => { console.log(error); });