$npm start
[2019-08-27 05:24:09.883] [INFO] Sending 'setWebhook' request for url: https://viber.yourdomain.ru/, isInline: undefined
[2019-08-27 05:24:09.884] [DEBUG] Opening request to url: 'https://chatapi.viber.com/pa/set_webhook' with data
url: https://viber.yourdomain.ru/
is_inline: undefined
event_types:
- subscribed
- unsubscribed
- conversation_started
- message
- delivered
- seen
2019-08-27T10:54:09+0530 index.js:41 (Server.http.expressApp.listen) http started on port 3030
events.js:167
throw er; // Unhandled 'error' event
^
MongoError: failed to connect to server [mongodb:27017] on first connect [MongoError: getaddrinfo ENOTFOUND mongodb mongodb:27017]
at Pool. (/Users/ishandutta2007/Documents/Projects/alarmo/node_modules/mongodb-core/lib/topologies/server.js:336:35)
at Pool.emit (events.js:182:13)
at Connection. (/Users/ishandutta2007/Documents/Projects/alarmo/node_modules/mongodb-core/lib/connection/pool.js:280:12)
at Object.onceWrapper (events.js:273:13)
at Connection.emit (events.js:182:13)
at Socket. (/Users/ishandutta2007/Documents/Projects/alarmo/node_modules/mongodb-core/lib/connection/connection.js:189:49)
at Object.onceWrapper (events.js:273:13)
at Socket.emit (events.js:182:13)
at emitErrorNT (internal/streams/destroy.js:82:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:50:3)
at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
at Immediate. (/Users/ishandutta2007/Documents/Projects/alarmo/node_modules/mongoose/lib/connection.js:364:15)
at runCallback (timers.js:705:18)
at tryOnImmediate (timers.js:676:5)
at processImmediate (timers.js:658:5)