Naltox / telegram-node-bot

Node module for creating Telegram bots.
MIT License
721 stars 143 forks source link

TypeError: Cannot read property 'error_code' of undefined #78

Closed infacq closed 8 years ago

infacq commented 8 years ago

I use Ubuntu 14.04 to host the bot. I'm not sure whether this error cause by what

node_modules/telegram-node-bot/lib/api/TelegramApi.js:111
            if (body.error_code) {
                    ^

my node -v is 6.2.2 and npm is 3.9.5

I also try to downgrade node to 5.12.0 and npm is 3.8.6 but hit another error

ReferenceError: Proxy is not defined

/node_modules/telegram-node-bot/lib/localization/Ivan.js:41
        return new Proxy(this, locHandler)
                   ^
kamikazechaser commented 8 years ago

68

Naltox commented 8 years ago

@infacq Just added logging for that case, update module and check the logs.