vdavid / node-mautic

Node.js Mautic API with ES6+async/await
Apache License 2.0
47 stars 26 forks source link

Verbose error reporting #4

Closed si4dev closed 4 years ago

si4dev commented 4 years ago

The resulted body contained errors array and was not displayed in verbose mode due to mismatch in type comparison. {"errors":[{"message":"API authorization denied.","code":401,"type":"access_denied"}],"error":"access_denied","error_description":"API authorization denied. (erroranderror_descriptionare deprecated as of 2.6.0 and will be removed in 3.0. Use theerrorsarray instead.)"}