Ashishkumar Pandey
03/24/2022, 11:54 PMUnhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"TypeError: Cannot read properties of undefined (reading 'ServerClient')","reason":"TypeError: Cannot read properties of undefined (reading 'ServerClient')","promise":{},"stack":["Runtime.UnhandledPromiseRejection: TypeError: Cannot read properties of undefined (reading 'ServerClient')"," at process.<anonymous> (file:///Users/ashish/work/planet-marathi/api-v2/node_modules/@serverless-stack/aws-lambda-ric/lib/index.js:34:23)"," at process.emit (node:events:526:28)"," at process.emit (node:domain:475:12)"," at emit (node:internal/process/promises:140:20)"," at processPromiseRejections (node:internal/process/promises:274:27)"," at processTicksAndRejections (node:internal/process/task_queues:97:32)"]}
Any ideas what could be going wrong? The ServerClient
refers to a class in a npm module called postmark
that I use to send emails. Here’s the reference to the lib - http://wildbit.github.io/postmark.js/index.htmlFrank
Ashishkumar Pandey
03/25/2022, 12:45 AMFrank
Ashishkumar Pandey
03/25/2022, 12:58 AMJay
Ashishkumar Pandey
04/12/2022, 3:23 AMJay