Skip to content

Unhandled rejection Error: ETELEGRAM: 400 Bad Request: bad webhook: getaddrinfo: Name or service not known #14

@naorye

Description

@naorye

After deployed to Heroku, the bot didn't work.
Logs show this:
2018-05-16T16:50:12.717473+00:00 heroku[web.1]: Starting process with command node index.js
2018-05-16T16:50:16.046896+00:00 heroku[web.1]: State changed from starting to up
2018-05-16T16:50:15.722823+00:00 app[web.1]: Wed, 16 May 2018 16:50:15 GMT node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.
2018-05-16T16:50:15.722867+00:00 app[web.1]: In the future, you will have to enable it yourself.
2018-05-16T16:50:15.722869+00:00 app[web.1]: See yagop/node-telegram-bot-api#319. at module.js:652:30
2018-05-16T16:50:15.748871+00:00 app[web.1]: Bot server started in the production mode
2018-05-16T16:50:15.969839+00:00 app[web.1]: Web server started at http://0.0.0.0:49695
2018-05-16T16:50:16.467149+00:00 app[web.1]: Unhandled rejection Error: ETELEGRAM: 400 Bad Request: bad webhook: getaddrinfo: Name or service not known
2018-05-16T16:50:16.467188+00:00 app[web.1]: at request.then.resp (/app/node_modules/node-telegram-bot-api/src/telegram.js:280:15)
2018-05-16T16:50:16.467190+00:00 app[web.1]: at tryCatcher (/app/node_modules/bluebird/js/release/util.js:16:23)
2018-05-16T16:50:16.467191+00:00 app[web.1]: at Promise._settlePromiseFromHandler (/app/node_modules/bluebird/js/release/promise.js:512:31)
2018-05-16T16:50:16.467193+00:00 app[web.1]: at Promise._settlePromise (/app/node_modules/bluebird/js/release/promise.js:569:18)
2018-05-16T16:50:16.467195+00:00 app[web.1]: at Promise._settlePromise0 (/app/node_modules/bluebird/js/release/promise.js:614:10)
2018-05-16T16:50:16.467196+00:00 app[web.1]: at Promise._settlePromises (/app/node_modules/bluebird/js/release/promise.js:693:18)
2018-05-16T16:50:16.467198+00:00 app[web.1]: at Async._drainQueue (/app/node_modules/bluebird/js/release/async.js:133:16)
2018-05-16T16:50:16.467199+00:00 app[web.1]: at Async._drainQueues (/app/node_modules/bluebird/js/release/async.js:143:10)
2018-05-16T16:50:16.467201+00:00 app[web.1]: at Immediate.Async.drainQueues (/app/node_modules/bluebird/js/release/async.js:17:14)
2018-05-16T16:50:16.467203+00:00 app[web.1]: at runCallback (timers.js:810:20)
2018-05-16T16:50:16.467204+00:00 app[web.1]: at tryOnImmediate (timers.js:768:5)
2018-05-16T16:50:16.467206+00:00 app[web.1]: at processImmediate [as _immediateCallback] (timers.js:745:5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions