node:internal/process/promises:265
triggerUncaughtException(err, true /* fromPromise */);
[UnhandledPromiseRejection: 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(). The promise rejected with the reason "undefined".] {
code: 'ERR_UNHANDLED_REJECTION'
}
There's not enough information here to narrow down what might be causing your issue. This could be caused by an error being thrown in any Promise or async function. Have you been following along with the course?