@Andrey-ui

Ошибка Node.JS при запуске бота вк, что делать?

Здраствуйте, при запуске игрового бота вк выдаёт данную ошибку:
(node:1528) UnhandledPromiseRejectionWarning: FetchError: request to https://api.vk.com/method/groups.getLongPollServer failed, reason: getaddrinfo ENOTFOUND api.vk.com
at ClientRequest. (H:\Tube Bot\node_modules\node-fetch\lib\index.js:1444:11)
at ClientRequest.emit (events.js:311:20)
at TLSSocket.socketErrorListener (_http_client.js:426:9)
at TLSSocket.emit (events.js:311:20)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
(node:1528) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_reje... (rejection id: 1)
(node:1528) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Надеюсь на быстрейший ответ, так-как я думаю что проблема легко решаемая только вот я туповат немного)
  • Вопрос задан
  • 497 просмотров
Пригласить эксперта
Ответы на вопрос 1
Такая ошибка появляется из-за кратковременных сбоев интернета, исправляется сама собой.
Ответ написан
Комментировать
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы