Message from JavaScript discussions

October 2018

— Which line?

— 

at Function.keys (<anonymous>)
at bot.use (/home/gatto/Projects/momomo/host-bot/src/middlewares/defaultSession.js:12:16)
at execute (/home/gatto/Projects/momomo/host-bot/node_modules/telegraf/composer.js:313:13)
at Promise.resolve.handler (/home/gatto/Projects/momomo/host-bot/node_modules/telegraf/composer.js:313:49)
at execute (/home/gatto/Projects/momomo/host-bot/node_modules/telegraf/composer.js:313:13)
at Promise.resolve.handler (/home/gatto/Projects/momomo/host-bot/node_modules/telegraf/composer.js:313:49)
at /home/gatto/Projects/momomo/host-bot/node_modules/telegraf-session-redis/lib/session.js:70:16
at execute (/home/gatto/Projects/momomo/host-bot/node_modules/telegraf/composer.js:313:13)
at Promise.resolve.handler (/home/gatto/Projects/momomo/host-bot/node_modules/telegraf/composer.js:313:49)
at execute (/home/gatto/Projects/momomo/host-bot/node_modules/telegraf/composer.js:313:13)

— It happens after line 36, everything before that works fine

— Oh I see also

— Failed to process updates. TypeError: Cannot convert undefined or null to object

— With the SAME stack

— I think this actually makes no sense

— Telegram ui says timeout at some point

— Maybe it's because I am listening to successful_payment from inside a wizard?

— Well it's actually inside a wizard and inside a composer

— But it shouldn't matter

— I cannot solve that