X
X
XakVit2022-04-08 10:53:22
JavaScript
XakVit, 2022-04-08 10:53:22

Code: 'ERR_UNHANDLED_REJECTION' How to fix?

What to do? When you run the script (bot VK) gives this:

C:\Users\vital\Desktop\GameBot>node bot_fox.js

node:internal/process/promises:279

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 "#<IncomingMessage>".] {

code: 'ERR_UNHANDLED_REJECTION'

}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question