depoio / node-telegram-bot

Client wrapper for Telegram Bot API (Under heavy development)
MIT License
136 stars 30 forks source link

TypeError: Cannot call method 'split' of undefined #20

Closed vbauer closed 9 years ago

vbauer commented 9 years ago

I have a problem with app which was deployed on the OpenShift (node-telegram-bot version 0.0.16):

TypeError: Cannot call method 'split' of undefined
    at /var/lib/openshift/55a967bc500446e3a9000060/app-root/runtime/repo/node_modules/node-telegram-bot/lib/Bot.js:90:44
    at Array.forEach (native)
    at Request._callback (/var/lib/openshift/55a967bc500446e3a9000060/app-root/runtime/repo/node_modules/node-telegram-bot/lib/Bot.js:87:21)
    at Request.self.callback (/var/lib/openshift/55a967bc500446e3a9000060/app-root/runtime/repo/node_modules/node-telegram-bot/node_modules/request/request.js:197:22)
    at Request.emit (events.js:98:17)
    at Request.<anonymous> (/var/lib/openshift/55a967bc500446e3a9000060/app-root/runtime/repo/node_modules/node-telegram-bot/node_modules/request/request.js:1050:14)
    at Request.emit (events.js:117:20)
    at IncomingMessage.<anonymous> (/var/lib/openshift/55a967bc500446e3a9000060/app-root/runtime/repo/node_modules/node-telegram-bot/node_modules/request/request.js:996:12)
    at IncomingMessage.emit (events.js:117:20)
    at _stream_readable.js:944:16
rdev commented 9 years ago

My fault with command arguments recognition. It was fixed in my latest pull request (#17) but hasn't yet been merged. You can use fixed library from my repository until #17 is merged

vbauer commented 9 years ago

@fivepointseven Thank you for suggested solution! I hope it will be merged soon. :)

shernshiou commented 9 years ago

Thanks both. I will merge it now.