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: 5)
  Reply
#2
pleasant post, stay aware of this fascinating work. It truly regards realize that this subject is being secured likewise on this site so cheers for setting aside time to talk about this! Bigg Boss Kannada Vote
  Reply
#3
I have read your article; it is very informative and helpful for me. I admire the valuable information you offer in your articles. Thanks for posting it. Ramen Leuven
  Reply


Forum Jump:


Users browsing this thread: