HouCoder / tele-aria2

A Telegram bot for controlling your aria2 server.
MIT License
266 stars 83 forks source link

Download isn't started #30

Open ilya-shknaj opened 2 years ago

ilya-shknaj commented 2 years ago

After restarting the bot, it starts to process all messages from the chat https://github.com/HouCoder/tele-aria2/issues/29 and handle links, but if I try to add the new one I see

.... info: Received message from Aria2 server {"timestamp":"2021-07-18 13:29:47"} info: Received message from Aria2 server {"timestamp":"2021-07-18 13:29:48"} info: Sending message to Aria2 server {"timestamp":"2021-07-18 13:29:48"} info: Received message from Aria2 server {"timestamp":"2021-07-18 13:29:48"} (node:6295) UnhandledPromiseRejectionWarning: FetchError: request to https://api.telegram.org/bot..../sendMessage failed, reason: connect ETIMEDOUT 149.154.167.220:443 at ClientRequest. (/usr/local/lib/node_modules/tele-aria2/node_modules/node-fetch/lib/index.js:1461:11) at ClientRequest.emit (events.js:198:13) at TLSSocket.socketErrorListener (_http_client.js:401:9) at TLSSocket.emit (events.js:198:13) at emitErrorNT (internal/streams/destroy.js:91:8) at emitErrorAndCloseNT (internal/streams/destroy.js:59:3) at process._tickCallback (internal/process/next_tick.js:63:19) (node:6295) 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(). (rejection id: 2) (node:6295) [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.

If restart bot, it download this file, but a new one will fail with the same error