res.status is not a function
(node:26) UnhandledPromiseRejectionWarning: TypeError: res.status is not a function
at sendError (/icat/app/errors.js:208:7)
at getUnpackedInvestigationById (/icat/app/controllers/investigations.controller.js:120:9)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
(node:26) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:26) Warning: Setting the NODE_TLS_REJECT_UNAUTHORIZED environment variable to '0' makes TLS connections and HTTPS requests insecure by disabling certificate verification.
(node:26) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403
at createError (/icat/node_modules/axios-https-proxy-fix/lib/core/createError.js:16:15)
at settle (/icat/node_modules/axios-https-proxy-fix/lib/core/settle.js:18:12)
at IncomingMessage.handleStreamEnd (/icat/node_modules/axios-https-proxy-fix/lib/adapters/http.js:201:11)
at IncomingMessage.emit (events.js:228:7)
at endReadableNT (_stream_readable.js:1185:12)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
(node:26) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 9)
(node:26) UnhandledPromiseRejectionWarning: Error: Request failed with status code 403
at createError (/icat/node_modules/axios-https-proxy-fix/lib/core/createError.js:16:15)
at settle (/icat/node_modules/axios-https-proxy-fix/lib/core/settle.js:18:12)
at IncomingMessage.handleStreamEnd (/icat/node_modules/axios-https-proxy-fix/lib/adapters/http.js:201:11)
at IncomingMessage.emit (events.js:228:7)
at endReadableNT (_stream_readable.js:1185:12)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
(node:26) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 11)
(node:26) UnhandledPromiseRejectionWarning: TypeError: res.status is not a function
at sendError (/icat/app/errors.js:208:7)
at getUnpackedInvestigationById (/icat/app/controllers/investigations.controller.js:120:9)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (internal/process/task_queues.js:94:5)
(node:26) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 18)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! icat-plus@1.0.0 start: `node server.js`
npm ERR! Exit status 1