Answer the question
In order to leave comments, you need to log in
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 questionAsk a Question
731 491 924 answers to any question