Duplicate Telegram API connection Error
#1
Hi,
When I try to use Telegram to send advices from the strategy I receive next error:

error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}

To turn Telegram on I changed web\routes\baseConfig.js accordingly:
I see that for some reason node-telegram-bot-api is started twice. Once for Watcher and second time for papertrader:


2019-01-29 12:12 Gekko 2019-01-29-12-12-watcher-473135914784412 started.
 --> POST /api/startGekko 200 17ms 1.38kb
node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecat
ed.…………..
 <-- POST /api/startGekko
2019-01-29 12:12 Gekko 2019-01-29-12-12-papertrader-9995798102967157 started.
 --> POST /api/startGekko 200 23ms 1.78kb
node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecat
ed.…………..
error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 409 Conflict: terminated by other getUpdates request; make sure that only one bot instance is running"}


When I try to use node-telegram-bot-api right from my strategy (i create TelegramBot object inside the strategy code) and send messages it works fine. No errors and I see that node-telegram-bot-api log only once.

Does somebody know how can I fix the issue described above to have Telegram plugin work properly with Gekko?


Attached Files
.png   error.png (Size: 50.64 KB / Downloads: 6)
  Reply


Messages In This Thread
Duplicate Telegram API connection Error - by Max847356 - 01-29-2019, 11:28 AM

Forum Jump:


Users browsing this thread: