import {AbsenceIO} from 'absence.io';
const absenceIO = new AbsenceIO({
apiKey: 'MY-KEY',
apiKeyId: 'MY-KEY-ID',
});
absenceIO.api.absence.retrieveAbsences().then(absences => console.log(absences));
(node:15736) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'toLowerCase' of null
at Object.exports.generateNormalizedString (D:\dev\projects\bennyn\wire-absence-bot\node_modules\hawk\lib\crypto.js:73:35)
at Object.exports.calculateMac (D:\dev\projects\bennyn\wire-absence-bot\node_modules\hawk\lib\crypto.js:50:32)
at Object.exports.header (D:\dev\projects\bennyn\wire-absence-bot\node_modules\hawk\lib\client.js:109:24)
at D:\dev\projects\bennyn\wire-absence-bot\node_modules\absence.io\src\AbsenceIO.ts:35:38
(node:15736) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a pro
mise which was not handled with .catch(). (rejection id: 1)
(node:15736) [DEP0018] 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.