Michael Bannon
02/09/2022, 9:22 PMFrank
Michael Bannon
02/09/2022, 10:01 PMexport async function handler(event) {
return {
statusCode: 200,
headers: { "Content-Type": "text/plain" },
body: `Hello, World! Your request was received at ${event.requestContext.time}.`,
};
}
Michael Bannon
02/09/2022, 10:01 PMFrank
Michael Bannon
02/10/2022, 10:23 AMUnhandled Promise Rejection {"errorType":"Runtime.UnhandledPromiseRejection","errorMessage":"Runtime.MalformedHandlerName: Bad handler","reason":"Runtime.MalformedHandlerName: Bad handler","promise":{},"stack":["Runtime.UnhandledPromiseRejection: Runtime.MalformedHandlerName: Bad handler"," at process.<anonymous> (file:///C:/Users/peter/OneDrive/Documents/Michael%20Final%20Year/2021.2022/greenfinger/node_modules/@serverless-stack/aws-lambda-ric/lib/index.js:34:23)"," at process.emit (events.js:315:20)"," at processPromiseRejections (internal/process/promises.js:245:33)"," at processTicksAndRejections (internal/process/task_queues.js:94:32)"]}
Ignore the part that says greenfinger, just renamed it because I'm trying to yes the notes application as the basis for my own project. Nothing else has been changed and I tried to complete it without changing the name and it threw the same errorMichael Bannon
02/10/2022, 1:03 PMMaking API request
{
status: 404,
statusText: 'Not Found',
data: { message: 'Not Found' }
}Jay
Frank
Michael Bannon
02/17/2022, 12:37 PM