Бот иногда логирует ошибку при остановке вебсервера
Created by: ZzDmitry
Текст оишибки:
(node:23785) UnhandledPromiseRejectionWarning: FetchError: request to http://localhost:5001/servercontrol-1676923197:AAHlA8i_cpdO4X_E9NCLdEsvOeZtSmuGD5o failed, reason: socket hang up
at ClientRequest.<anonymous> (/home/dmitry/work/hrbot/hrbot/common/node_modules/node-fetch/lib/index.js:1461:11)
at ClientRequest.emit (events.js:314:20)
at Socket.socketOnEnd (_http_client.js:493:9)
at Socket.emit (events.js:326:22)
at endReadableNT (_stream_readable.js:1244:12)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:23785) 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_rejections_mode). (rejection id: 1)
(node:23785) [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.
Видимо, до этого был создан бот, потому что видно, что об этом было сообщение на вебсервер.