[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 "function Error() { [native code] }".] {
code: 'ERR_UNHANDLED_REJECTION'
}
Node.js v18.17.0
The script wasn't working on tampermonkey so I tried using node and it failed similarly
[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 "function Error() { [native code] }".] { code: 'ERR_UNHANDLED_REJECTION' }
Node.js v18.17.0
The script wasn't working on tampermonkey so I tried using node and it failed similarly