-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled rejection Error: 502 #377
Comments
Please confirm you are using the latest version of the library. |
"node-telegram-bot-api": "^0.27.1", |
Same error for me, I have the latest version ... |
But I can provide more Stacktrace:
|
If there are no listeners for the On the other hand, ensure that you pay attention to such errors thrown by the bot. Usually (not always) such errors are caused by the bot being unable to reach the Telegram servers. See https://github.com/yagop/node-telegram-bot-api/blob/master/doc/usage.md#error-handling. |
My problem isn't error handling, I just wanna know why I got this error fulltime to avoid it. |
Are you using polling in your bot? |
Yes |
+1 |
References: * BR '502 Bad Gateway': #377
You are simply getting a |
@GochoMugo huh this stacktrace is really ridiculous error logging isn't disabled for |
@jerrygreen We will be shipping it in the next few days. |
I have the same problem.
|
+1 502 Bad Gateway2018-04-29T10:45:35.253621+00:00 app[worker.1]: nginx/1.12.2 2018-04-29T10:45:35.253623+00:00 app[worker.1]: 2018-04-29T10:45:35.253624+00:00 app[worker.1]: 2018-04-29T10:45:35.253626+00:00 app[worker.1]: 2018-04-29T10:45:35.253628+00:00 app[worker.1]: at request.then.resp (/app/node_modules/node-telegram-bot-api/src/telegram.js:206:17) 2018-04-29T10:45:35.253630+00:00 app[worker.1]: at tryCatcher (/app/node_modules/bluebird/js/release/util.js:16:23) 2018-04-29T10:45:35.253632+00:00 app[worker.1]: at Promise._settlePromiseFromHandler (/app/node_modules/bluebird/js/release/promise.js:512:31) 2018-04-29T10:45:35.253634+00:00 app[worker.1]: at Promise._settlePromise (/app/node_modules/bluebird/js/release/promise.js:569:18) 2018-04-29T10:45:35.253635+00:00 app[worker.1]: at Promise._settlePromise0 (/app/node_modules/bluebird/js/release/promise.js:614:10) 2018-04-29T10:45:35.253637+00:00 app[worker.1]: at Promise._settlePromises (/app/node_modules/bluebird/js/release/promise.js:693:18) 2018-04-29T10:45:35.253638+00:00 app[worker.1]: at Async._drainQueue (/app/node_modules/bluebird/js/release/async.js:133:16) 2018-04-29T10:45:35.253640+00:00 app[worker.1]: at Async._drainQueues (/app/node_modules/bluebird/js/release/async.js:143:10) 2018-04-29T10:45:35.253642+00:00 app[worker.1]: at Immediate.Async.drainQueues (/app/node_modules/bluebird/js/release/async.js:17:14) 2018-04-29T10:45:35.253643+00:00 app[worker.1]: at runCallback (timers.js:781:20) 2018-04-29T10:45:35.253645+00:00 app[worker.1]: at tryOnImmediate (timers.js:743:5) 2018-04-29T10:45:35.253646+00:00 app[worker.1]: at processImmediate [as _immediateCallback] (timers.js:714:5) 2018-04-29T10:45:35.253648+00:00 app[worker.1]: code: 'EPARSE', 2018-04-29T10:45:35.253649+00:00 app[worker.1]: response: 2018-04-29T10:45:35.253651+00:00 app[worker.1]: IncomingMessage { 2018-04-29T10:45:35.253652+00:00 app[worker.1]: _readableState: 2018-04-29T10:45:35.253654+00:00 app[worker.1]: ReadableState { 2018-04-29T10:45:35.253655+00:00 app[worker.1]: objectMode: false, 2018-04-29T10:45:35.253657+00:00 app[worker.1]: highWaterMark: 16384, 2018-04-29T10:45:35.253659+00:00 app[worker.1]: buffer: [Object], 2018-04-29T10:45:35.253660+00:00 app[worker.1]: length: 0, 2018-04-29T10:45:35.253661+00:00 app[worker.1]: pipes: null, 2018-04-29T10:45:35.253663+00:00 app[worker.1]: pipesCount: 0, 2018-04-29T10:45:35.253665+00:00 app[worker.1]: flowing: true, 2018-04-29T10:45:35.253667+00:00 app[worker.1]: ended: true, 2018-04-29T10:45:35.253668+00:00 app[worker.1]: endEmitted: true, 2018-04-29T10:45:35.253670+00:00 app[worker.1]: reading: false, 2018-04-29T10:45:35.253672+00:00 app[worker.1]: sync: true, 2018-04-29T10:45:35.253673+00:00 app[worker.1]: needReadable: false, 2018-04-29T10:45:35.253674+00:00 app[worker.1]: emittedReadable: false, 2018-04-29T10:45:35.253676+00:00 app[worker.1]: readableListening: false, 2018-04-29T10:45:35.253678+00:00 app[worker.1]: resumeScheduled: false, 2018-04-29T10:45:35.253679+00:00 app[worker.1]: destroyed: false, 2018-04-29T10:45:35.253680+00:00 app[worker.1]: defaultEncoding: 'utf8', 2018-04-29T10:45:35.253682+00:00 app[worker.1]: awaitDrain: 0, 2018-04-29T10:45:35.253683+00:00 app[worker.1]: readingMore: false, 2018-04-29T10:45:35.253685+00:00 app[worker.1]: decoder: null, 2018-04-29T10:45:35.253686+00:00 app[worker.1]: encoding: null }, 2018-04-29T10:45:35.253688+00:00 app[worker.1]: readable: false, 2018-04-29T10:45:35.253689+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:35.253691+00:00 app[worker.1]: _events: 2018-04-29T10:45:35.253692+00:00 app[worker.1]: { end: [Array], 2018-04-29T10:45:35.253694+00:00 app[worker.1]: close: [Array], 2018-04-29T10:45:35.253712+00:00 app[worker.1]: data: [Function], 2018-04-29T10:45:35.253714+00:00 app[worker.1]: error: [Function] }, 2018-04-29T10:45:35.253716+00:00 app[worker.1]: _eventsCount: 4, 2018-04-29T10:45:35.253717+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:35.253719+00:00 app[worker.1]: socket: 2018-04-29T10:45:35.253720+00:00 app[worker.1]: TLSSocket { 2018-04-29T10:45:35.253722+00:00 app[worker.1]: _tlsOptions: [Object], 2018-04-29T10:45:35.253724+00:00 app[worker.1]: _secureEstablished: true, 2018-04-29T10:45:35.253725+00:00 app[worker.1]: _securePending: false, 2018-04-29T10:45:35.253727+00:00 app[worker.1]: _newSessionPending: false, 2018-04-29T10:45:35.253728+00:00 app[worker.1]: _controlReleased: true, 2018-04-29T10:45:35.253730+00:00 app[worker.1]: _SNICallback: null, 2018-04-29T10:45:35.253731+00:00 app[worker.1]: servername: null, 2018-04-29T10:45:35.253733+00:00 app[worker.1]: npnProtocol: false, 2018-04-29T10:45:35.253734+00:00 app[worker.1]: alpnProtocol: false, 2018-04-29T10:45:35.253736+00:00 app[worker.1]: authorized: true, 2018-04-29T10:45:35.253737+00:00 app[worker.1]: authorizationError: null, 2018-04-29T10:45:35.253738+00:00 app[worker.1]: encrypted: true, 2018-04-29T10:45:35.253740+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:35.253741+00:00 app[worker.1]: _eventsCount: 9, 2018-04-29T10:45:35.253743+00:00 app[worker.1]: connecting: false, 2018-04-29T10:45:35.253744+00:00 app[worker.1]: _hadError: false, 2018-04-29T10:45:35.253745+00:00 app[worker.1]: _handle: [Object], 2018-04-29T10:45:35.253747+00:00 app[worker.1]: _parent: null, 2018-04-29T10:45:35.253748+00:00 app[worker.1]: _host: 'api.telegram.org', 2018-04-29T10:45:35.253750+00:00 app[worker.1]: _readableState: [Object], 2018-04-29T10:45:35.253751+00:00 app[worker.1]: readable: true, 2018-04-29T10:45:35.253753+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:35.253755+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:35.253756+00:00 app[worker.1]: _writableState: [Object], 2018-04-29T10:45:35.253758+00:00 app[worker.1]: writable: true, 2018-04-29T10:45:35.253760+00:00 app[worker.1]: allowHalfOpen: false, 2018-04-29T10:45:35.253761+00:00 app[worker.1]: _bytesDispatched: 2568, 2018-04-29T10:45:35.253762+00:00 app[worker.1]: _sockname: null, 2018-04-29T10:45:35.253764+00:00 app[worker.1]: _pendingData: null, 2018-04-29T10:45:35.253766+00:00 app[worker.1]: _pendingEncoding: '', 2018-04-29T10:45:35.253767+00:00 app[worker.1]: server: undefined, 2018-04-29T10:45:35.253769+00:00 app[worker.1]: _server: null, 2018-04-29T10:45:35.253770+00:00 app[worker.1]: ssl: [Object], 2018-04-29T10:45:35.253772+00:00 app[worker.1]: _requestCert: true, 2018-04-29T10:45:35.253773+00:00 app[worker.1]: _rejectUnauthorized: true, 2018-04-29T10:45:35.253775+00:00 app[worker.1]: parser: null, 2018-04-29T10:45:35.253776+00:00 app[worker.1]: _httpMessage: null, 2018-04-29T10:45:35.253777+00:00 app[worker.1]: read: [Function], 2018-04-29T10:45:35.253779+00:00 app[worker.1]: _consuming: true, 2018-04-29T10:45:35.253780+00:00 app[worker.1]: [Symbol(asyncId)]: -1, 2018-04-29T10:45:35.253782+00:00 app[worker.1]: [Symbol(bytesRead)]: 0 }, 2018-04-29T10:45:35.253783+00:00 app[worker.1]: connection: 2018-04-29T10:45:35.253785+00:00 app[worker.1]: TLSSocket { 2018-04-29T10:45:35.253786+00:00 app[worker.1]: _tlsOptions: [Object], 2018-04-29T10:45:35.253788+00:00 app[worker.1]: _secureEstablished: true, 2018-04-29T10:45:35.253789+00:00 app[worker.1]: _securePending: false, 2018-04-29T10:45:35.253791+00:00 app[worker.1]: _newSessionPending: false, 2018-04-29T10:45:35.253792+00:00 app[worker.1]: _controlReleased: true, 2018-04-29T10:45:35.253794+00:00 app[worker.1]: _SNICallback: null, 2018-04-29T10:45:35.253795+00:00 app[worker.1]: servername: null, 2018-04-29T10:45:35.253797+00:00 app[worker.1]: npnProtocol: false, 2018-04-29T10:45:35.253798+00:00 app[worker.1]: alpnProtocol: false, 2018-04-29T10:45:35.253800+00:00 app[worker.1]: authorized: true, 2018-04-29T10:45:35.253801+00:00 app[worker.1]: authorizationError: null, 2018-04-29T10:45:35.253803+00:00 app[worker.1]: encrypted: true, 2018-04-29T10:45:35.253804+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:35.253806+00:00 app[worker.1]: _eventsCount: 9, 2018-04-29T10:45:35.253807+00:00 app[worker.1]: connecting: false, 2018-04-29T10:45:35.253809+00:00 app[worker.1]: _hadError: false, 2018-04-29T10:45:35.253810+00:00 app[worker.1]: _handle: [Object], 2018-04-29T10:45:35.253812+00:00 app[worker.1]: _parent: null, 2018-04-29T10:45:35.253814+00:00 app[worker.1]: _host: 'api.telegram.org', 2018-04-29T10:45:35.253815+00:00 app[worker.1]: _readableState: [Object], 2018-04-29T10:45:35.253816+00:00 app[worker.1]: readable: true, 2018-04-29T10:45:35.253818+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:35.253819+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:35.253821+00:00 app[worker.1]: _writableState: [Object], 2018-04-29T10:45:35.253823+00:00 app[worker.1]: writable: true, 2018-04-29T10:45:35.253824+00:00 app[worker.1]: allowHalfOpen: false, 2018-04-29T10:45:35.253826+00:00 app[worker.1]: _bytesDispatched: 2568, 2018-04-29T10:45:35.253827+00:00 app[worker.1]: _sockname: null, 2018-04-29T10:45:35.253835+00:00 app[worker.1]: _pendingData: null, 2018-04-29T10:45:35.253836+00:00 app[worker.1]: _pendingEncoding: '', 2018-04-29T10:45:35.253838+00:00 app[worker.1]: server: undefined, 2018-04-29T10:45:35.253839+00:00 app[worker.1]: _server: null, 2018-04-29T10:45:35.253841+00:00 app[worker.1]: ssl: [Object], 2018-04-29T10:45:35.253843+00:00 app[worker.1]: _requestCert: true, 2018-04-29T10:45:35.253844+00:00 app[worker.1]: _rejectUnauthorized: true, 2018-04-29T10:45:35.253846+00:00 app[worker.1]: parser: null, 2018-04-29T10:45:35.253847+00:00 app[worker.1]: _httpMessage: null, 2018-04-29T10:45:35.253849+00:00 app[worker.1]: read: [Function], 2018-04-29T10:45:35.253851+00:00 app[worker.1]: _consuming: true, 2018-04-29T10:45:35.253852+00:00 app[worker.1]: [Symbol(asyncId)]: -1, 2018-04-29T10:45:35.253854+00:00 app[worker.1]: [Symbol(bytesRead)]: 0 }, 2018-04-29T10:45:35.253856+00:00 app[worker.1]: httpVersionMajor: 1, 2018-04-29T10:45:35.253857+00:00 app[worker.1]: httpVersionMinor: 1, 2018-04-29T10:45:35.253858+00:00 app[worker.1]: httpVersion: '1.1', 2018-04-29T10:45:35.253860+00:00 app[worker.1]: complete: true, 2018-04-29T10:45:35.253861+00:00 app[worker.1]: headers: 2018-04-29T10:45:35.253863+00:00 app[worker.1]: { server: 'nginx/1.12.2', 2018-04-29T10:45:35.253864+00:00 app[worker.1]: date: 'Sun, 29 Apr 2018 10:45:35 GMT', 2018-04-29T10:45:35.253866+00:00 app[worker.1]: 'content-type': 'text/html', 2018-04-29T10:45:35.253868+00:00 app[worker.1]: 'content-length': '173', 2018-04-29T10:45:35.253869+00:00 app[worker.1]: connection: 'keep-alive', 2018-04-29T10:45:35.253871+00:00 app[worker.1]: 'access-control-allow-origin': '', 2018-04-29T10:45:35.253872+00:00 app[worker.1]: 'access-control-expose-headers': 'Content-Length,Content-Type,Date,Server,Connection' }, 2018-04-29T10:45:35.253874+00:00 app[worker.1]: rawHeaders: 2018-04-29T10:45:35.253875+00:00 app[worker.1]: [ 'Server', 2018-04-29T10:45:35.253877+00:00 app[worker.1]: 'nginx/1.12.2', 2018-04-29T10:45:35.253878+00:00 app[worker.1]: 'Date', 2018-04-29T10:45:35.253880+00:00 app[worker.1]: 'Sun, 29 Apr 2018 10:45:35 GMT', 2018-04-29T10:45:35.253881+00:00 app[worker.1]: 'Content-Type', 2018-04-29T10:45:35.253883+00:00 app[worker.1]: 'text/html', 2018-04-29T10:45:35.253884+00:00 app[worker.1]: 'Content-Length', 2018-04-29T10:45:35.253886+00:00 app[worker.1]: '173', 2018-04-29T10:45:35.253888+00:00 app[worker.1]: 'Connection', 2018-04-29T10:45:35.253889+00:00 app[worker.1]: 'keep-alive', 2018-04-29T10:45:35.253891+00:00 app[worker.1]: 'Access-Control-Allow-Origin', 2018-04-29T10:45:35.253892+00:00 app[worker.1]: '', 2018-04-29T10:45:35.253894+00:00 app[worker.1]: 'Access-Control-Expose-Headers', 2018-04-29T10:45:35.253896+00:00 app[worker.1]: 'Content-Length,Content-Type,Date,Server,Connection' ], 2018-04-29T10:45:35.253897+00:00 app[worker.1]: trailers: {}, 2018-04-29T10:45:35.253899+00:00 app[worker.1]: rawTrailers: [], 2018-04-29T10:45:35.253901+00:00 app[worker.1]: upgrade: false, 2018-04-29T10:45:35.253902+00:00 app[worker.1]: url: '', 2018-04-29T10:45:35.253904+00:00 app[worker.1]: method: null, 2018-04-29T10:45:35.253905+00:00 app[worker.1]: statusCode: 502, 2018-04-29T10:45:35.253907+00:00 app[worker.1]: statusMessage: 'Bad Gateway', 2018-04-29T10:45:35.253908+00:00 app[worker.1]: client: 2018-04-29T10:45:35.253910+00:00 app[worker.1]: TLSSocket { 2018-04-29T10:45:35.253912+00:00 app[worker.1]: _tlsOptions: [Object], 2018-04-29T10:45:35.253913+00:00 app[worker.1]: _secureEstablished: true, 2018-04-29T10:45:35.253915+00:00 app[worker.1]: _securePending: false, 2018-04-29T10:45:35.253917+00:00 app[worker.1]: _newSessionPending: false, 2018-04-29T10:45:35.253918+00:00 app[worker.1]: _controlReleased: true, 2018-04-29T10:45:35.253920+00:00 app[worker.1]: _SNICallback: null, 2018-04-29T10:45:35.253922+00:00 app[worker.1]: servername: null, 2018-04-29T10:45:35.253923+00:00 app[worker.1]: npnProtocol: false, 2018-04-29T10:45:35.253925+00:00 app[worker.1]: alpnProtocol: false, 2018-04-29T10:45:35.253926+00:00 app[worker.1]: authorized: true, 2018-04-29T10:45:35.253928+00:00 app[worker.1]: authorizationError: null, 2018-04-29T10:45:35.253929+00:00 app[worker.1]: encrypted: true, 2018-04-29T10:45:35.253931+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:35.253932+00:00 app[worker.1]: _eventsCount: 9, 2018-04-29T10:45:35.253934+00:00 app[worker.1]: connecting: false, 2018-04-29T10:45:35.253936+00:00 app[worker.1]: _hadError: false, 2018-04-29T10:45:35.253938+00:00 app[worker.1]: _handle: [Object], 2018-04-29T10:45:35.253939+00:00 app[worker.1]: _parent: null, 2018-04-29T10:45:35.253941+00:00 app[worker.1]: _host: 'api.telegram.org', 2018-04-29T10:45:35.253942+00:00 app[worker.1]: _readableState: [Object], 2018-04-29T10:45:35.253944+00:00 app[worker.1]: readable: true, 2018-04-29T10:45:35.253946+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:35.253947+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:35.253949+00:00 app[worker.1]: _writableState: [Object], 2018-04-29T10:45:35.253950+00:00 app[worker.1]: writable: true, 2018-04-29T10:45:35.253952+00:00 app[worker.1]: allowHalfOpen: false, 2018-04-29T10:45:35.253953+00:00 app[worker.1]: _bytesDispatched: 2568, 2018-04-29T10:45:35.253955+00:00 app[worker.1]: _sockname: null, 2018-04-29T10:45:35.253956+00:00 app[worker.1]: _pendingData: null, 2018-04-29T10:45:35.253969+00:00 app[worker.1]: _pendingEncoding: '', 2018-04-29T10:45:35.253970+00:00 app[worker.1]: server: undefined, 2018-04-29T10:45:35.253972+00:00 app[worker.1]: _server: null, 2018-04-29T10:45:35.253973+00:00 app[worker.1]: ssl: [Object], 2018-04-29T10:45:35.253975+00:00 app[worker.1]: _requestCert: true, 2018-04-29T10:45:35.253976+00:00 app[worker.1]: _rejectUnauthorized: true, 2018-04-29T10:45:35.253978+00:00 app[worker.1]: parser: null, 2018-04-29T10:45:35.253979+00:00 app[worker.1]: _httpMessage: null, 2018-04-29T10:45:35.253981+00:00 app[worker.1]: read: [Function], 2018-04-29T10:45:35.253982+00:00 app[worker.1]: _consuming: true, 2018-04-29T10:45:35.253983+00:00 app[worker.1]: [Symbol(asyncId)]: -1, 2018-04-29T10:45:35.253985+00:00 app[worker.1]: [Symbol(bytesRead)]: 0 }, 2018-04-29T10:45:35.253986+00:00 app[worker.1]: _consuming: true, 2018-04-29T10:45:35.253988+00:00 app[worker.1]: _dumped: false, 2018-04-29T10:45:35.253990+00:00 app[worker.1]: req: 2018-04-29T10:45:35.253995+00:00 app[worker.1]: ClientRequest { 2018-04-29T10:45:35.253996+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:35.253998+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:35.253999+00:00 app[worker.1]: _eventsCount: 5, 2018-04-29T10:45:35.254001+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:35.254002+00:00 app[worker.1]: output: [], 2018-04-29T10:45:35.254004+00:00 app[worker.1]: outputEncodings: [], 2018-04-29T10:45:35.254005+00:00 app[worker.1]: outputCallbacks: [], 2018-04-29T10:45:35.254007+00:00 app[worker.1]: outputSize: 0, 2018-04-29T10:45:35.254008+00:00 app[worker.1]: writable: false, 2018-04-29T10:45:35.254010+00:00 app[worker.1]: _last: false, 2018-04-29T10:45:35.254011+00:00 app[worker.1]: upgrading: false, 2018-04-29T10:45:35.254012+00:00 app[worker.1]: chunkedEncoding: false, 2018-04-29T10:45:35.254014+00:00 app[worker.1]: shouldKeepAlive: true, 2018-04-29T10:45:35.254016+00:00 app[worker.1]: useChunkedEncodingByDefault: true, 2018-04-29T10:45:35.254017+00:00 app[worker.1]: sendDate: false, 2018-04-29T10:45:35.254019+00:00 app[worker.1]: _removedConnection: false, 2018-04-29T10:45:35.254021+00:00 app[worker.1]: _removedContLen: false, 2018-04-29T10:45:35.254022+00:00 app[worker.1]: _removedTE: false, 2018-04-29T10:45:35.254023+00:00 app[worker.1]: _contentLength: null, 2018-04-29T10:45:35.254025+00:00 app[worker.1]: _hasBody: true, 2018-04-29T10:45:35.254027+00:00 app[worker.1]: _trailer: '', 2018-04-29T10:45:35.254028+00:00 app[worker.1]: finished: true, 2018-04-29T10:45:35.254029+00:00 app[worker.1]: _headerSent: true, 2018-04-29T10:45:35.254031+00:00 app[worker.1]: socket: [Object], 2018-04-29T10:45:35.254032+00:00 app[worker.1]: connection: [Object], 2018-04-29T10:45:35.254034+00:00 app[worker.1]: _header: 'POST /bot310864572:AAGkEjwSWKUmH0Qrx1N3UwE8xFvZn7nCWXw/getUpdates HTTP/1.1\r\nhost: api.telegram.org\r\ncontent-type: application/x-www-form-urlencoded\r\ncontent-length: 19\r\nConnection: keep-alive\r\n\r\n', 2018-04-29T10:45:35.254036+00:00 app[worker.1]: _onPendingData: [Function: noopPendingOutput], 2018-04-29T10:45:35.254037+00:00 app[worker.1]: agent: [Object], 2018-04-29T10:45:35.254039+00:00 app[worker.1]: socketPath: undefined, 2018-04-29T10:45:35.254040+00:00 app[worker.1]: timeout: undefined, 2018-04-29T10:45:35.254042+00:00 app[worker.1]: method: 'POST', 2018-04-29T10:45:35.254043+00:00 app[worker.1]: path: '/bot310864572:AAGkEjwSWKUmH0Qrx1N3UwE8xFvZn7nCWXw/getUpdates', 2018-04-29T10:45:35.254045+00:00 app[worker.1]: _ended: true, 2018-04-29T10:45:35.254047+00:00 app[worker.1]: res: [Object], 2018-04-29T10:45:35.254048+00:00 app[worker.1]: aborted: undefined, 2018-04-29T10:45:35.254050+00:00 app[worker.1]: timeoutCb: null, 2018-04-29T10:45:35.254051+00:00 app[worker.1]: upgradeOrConnect: false, 2018-04-29T10:45:35.254053+00:00 app[worker.1]: parser: null, 2018-04-29T10:45:35.254054+00:00 app[worker.1]: maxHeadersCount: null, 2018-04-29T10:45:35.254056+00:00 app[worker.1]: [Symbol(outHeadersKey)]: [Object] }, 2018-04-29T10:45:35.254057+00:00 app[worker.1]: request: 2018-04-29T10:45:35.254059+00:00 app[worker.1]: Request { 2018-04-29T10:45:35.254060+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:35.254069+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:35.254071+00:00 app[worker.1]: _eventsCount: 5, 2018-04-29T10:45:35.254072+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:35.254074+00:00 app[worker.1]: method: 'POST', 2018-04-29T10:45:35.254076+00:00 app[worker.1]: simple: false, 2018-04-29T10:45:35.254077+00:00 app[worker.1]: resolveWithFullResponse: true, 2018-04-29T10:45:35.254079+00:00 app[worker.1]: forever: true, 2018-04-29T10:45:35.254080+00:00 app[worker.1]: readable: true, 2018-04-29T10:45:35.254082+00:00 app[worker.1]: writable: true, 2018-04-29T10:45:35.254083+00:00 app[worker.1]: explicitMethod: true, 2018-04-29T10:45:35.254085+00:00 app[worker.1]: _qs: [Object], 2018-04-29T10:45:35.254086+00:00 app[worker.1]: _auth: [Object], 2018-04-29T10:45:35.254088+00:00 app[worker.1]: _oauth: [Object], 2018-04-29T10:45:35.254089+00:00 app[worker.1]: _multipart: [Object], 2018-04-29T10:45:35.254091+00:00 app[worker.1]: _redirect: [Object], 2018-04-29T10:45:35.254093+00:00 app[worker.1]: _tunnel: [Object], 2018-04-29T10:45:35.254094+00:00 app[worker.1]: _rp_resolve: [Function], 2018-04-29T10:45:35.254096+00:00 app[worker.1]: _rp_reject: [Function], 2018-04-29T10:45:35.254097+00:00 app[worker.1]: _rp_promise: [Object], 2018-04-29T10:45:35.254099+00:00 app[worker.1]: _rp_callbackOrig: undefined, 2018-04-29T10:45:35.254101+00:00 app[worker.1]: callback: [Function], 2018-04-29T10:45:35.254103+00:00 app[worker.1]: _rp_options: [Object], 2018-04-29T10:45:35.254104+00:00 app[worker.1]: headers: [Object], 2018-04-29T10:45:35.254105+00:00 app[worker.1]: setHeader: [Function], 2018-04-29T10:45:35.254107+00:00 app[worker.1]: hasHeader: [Function], 2018-04-29T10:45:35.254108+00:00 app[worker.1]: getHeader: [Function], 2018-04-29T10:45:35.254110+00:00 app[worker.1]: removeHeader: [Function], 2018-04-29T10:45:35.254111+00:00 app[worker.1]: localAddress: undefined, 2018-04-29T10:45:35.254113+00:00 app[worker.1]: pool: [Object], 2018-04-29T10:45:35.254114+00:00 app[worker.1]: dests: [], 2018-04-29T10:45:35.254115+00:00 app[worker.1]: __isRequestRequest: true, 2018-04-29T10:45:35.254117+00:00 app[worker.1]: _callback: [Function: RP$callback], 2018-04-29T10:45:35.254118+00:00 app[worker.1]: uri: [Object], 2018-04-29T10:45:35.254120+00:00 app[worker.1]: proxy: null, 2018-04-29T10:45:35.254121+00:00 app[worker.1]: tunnel: true, 2018-04-29T10:45:35.254123+00:00 app[worker.1]: setHost: true, 2018-04-29T10:45:35.254125+00:00 app[worker.1]: originalCookieHeader: undefined, 2018-04-29T10:45:35.254126+00:00 app[worker.1]: _disableCookies: true, 2018-04-29T10:45:35.254127+00:00 app[worker.1]: _jar: undefined, 2018-04-29T10:45:35.254129+00:00 app[worker.1]: port: 443, 2018-04-29T10:45:35.254130+00:00 app[worker.1]: host: 'api.telegram.org', 2018-04-29T10:45:35.254132+00:00 app[worker.1]: body: 'offset=0&timeout=10', 2018-04-29T10:45:35.254134+00:00 app[worker.1]: path: '/bot310864572:AAGkEjwSWKUmH0Qrx1N3UwE8xFvZn7nCWXw/getUpdates', 2018-04-29T10:45:35.254135+00:00 app[worker.1]: httpModule: [Object], 2018-04-29T10:45:35.254137+00:00 app[worker.1]: agentClass: [Object], 2018-04-29T10:45:35.254138+00:00 app[worker.1]: agentOptions: [Object], 2018-04-29T10:45:35.254139+00:00 app[worker.1]: agent: [Object], 2018-04-29T10:45:35.254141+00:00 app[worker.1]: _started: true, 2018-04-29T10:45:35.254143+00:00 app[worker.1]: href: 'https://api.telegram.org/bot310864572:AAGkEjwSWKUmH0Qrx1N3UwE8xFvZn7nCWXw/getUpdates', 2018-04-29T10:45:35.254144+00:00 app[worker.1]: req: [Object], 2018-04-29T10:45:35.254146+00:00 app[worker.1]: ntick: true, 2018-04-29T10:45:35.254147+00:00 app[worker.1]: response: [Object], 2018-04-29T10:45:35.254149+00:00 app[worker.1]: originalHost: 'api.telegram.org', 2018-04-29T10:45:35.254150+00:00 app[worker.1]: originalHostHeaderName: 'host', 2018-04-29T10:45:35.254152+00:00 app[worker.1]: responseContent: [Object], 2018-04-29T10:45:35.254153+00:00 app[worker.1]: _destdata: true, 2018-04-29T10:45:35.254155+00:00 app[worker.1]: _ended: true, 2018-04-29T10:45:35.254156+00:00 app[worker.1]: _callbackCalled: true }, 2018-04-29T10:45:35.254158+00:00 app[worker.1]: toJSON: [Function: responseToJSON], 2018-04-29T10:45:35.254159+00:00 app[worker.1]: caseless: Caseless { dict: [Object] }, 2018-04-29T10:45:35.254161+00:00 app[worker.1]: read: [Function], 2018-04-29T10:45:35.254163+00:00 app[worker.1]: body: '\r\n<title>502 Bad Gateway</title>\r\n\r\n 502 Bad Gateway\r\nnginx/1.12.2\r\n\r\n\r\n' } } 2018-04-29T10:45:46.843816+00:00 app[worker.1]: { Error: EPARSE: Error parsing Telegram response: 2018-04-29T10:45:46.843826+00:00 app[worker.1]: <title>502 Bad Gateway</title> 2018-04-29T10:45:46.843828+00:00 app[worker.1]: 2018-04-29T10:45:46.843829+00:00 app[worker.1]: 502 Bad Gateway2018-04-29T10:45:46.843831+00:00 app[worker.1]: nginx/1.12.2 2018-04-29T10:45:46.843833+00:00 app[worker.1]: 2018-04-29T10:45:46.843834+00:00 app[worker.1]: 2018-04-29T10:45:46.843836+00:00 app[worker.1]: 2018-04-29T10:45:46.843837+00:00 app[worker.1]: at request.then.resp (/app/node_modules/node-telegram-bot-api/src/telegram.js:206:17) 2018-04-29T10:45:46.843839+00:00 app[worker.1]: at tryCatcher (/app/node_modules/bluebird/js/release/util.js:16:23) 2018-04-29T10:45:46.843841+00:00 app[worker.1]: at Promise._settlePromiseFromHandler (/app/node_modules/bluebird/js/release/promise.js:512:31) 2018-04-29T10:45:46.843843+00:00 app[worker.1]: at Promise._settlePromise (/app/node_modules/bluebird/js/release/promise.js:569:18) 2018-04-29T10:45:46.843844+00:00 app[worker.1]: at Promise._settlePromise0 (/app/node_modules/bluebird/js/release/promise.js:614:10) 2018-04-29T10:45:46.843846+00:00 app[worker.1]: at Promise._settlePromises (/app/node_modules/bluebird/js/release/promise.js:693:18) 2018-04-29T10:45:46.843848+00:00 app[worker.1]: at Async._drainQueue (/app/node_modules/bluebird/js/release/async.js:133:16) 2018-04-29T10:45:46.843849+00:00 app[worker.1]: at Async._drainQueues (/app/node_modules/bluebird/js/release/async.js:143:10) 2018-04-29T10:45:46.843851+00:00 app[worker.1]: at Immediate.Async.drainQueues (/app/node_modules/bluebird/js/release/async.js:17:14) 2018-04-29T10:45:46.843852+00:00 app[worker.1]: at runCallback (timers.js:781:20) 2018-04-29T10:45:46.843854+00:00 app[worker.1]: at tryOnImmediate (timers.js:743:5) 2018-04-29T10:45:46.843855+00:00 app[worker.1]: at processImmediate [as _immediateCallback] (timers.js:714:5) 2018-04-29T10:45:46.843857+00:00 app[worker.1]: code: 'EPARSE', 2018-04-29T10:45:46.843859+00:00 app[worker.1]: response: 2018-04-29T10:45:46.843860+00:00 app[worker.1]: IncomingMessage { 2018-04-29T10:45:46.843862+00:00 app[worker.1]: _readableState: 2018-04-29T10:45:46.843863+00:00 app[worker.1]: ReadableState { 2018-04-29T10:45:46.843865+00:00 app[worker.1]: objectMode: false, 2018-04-29T10:45:46.843866+00:00 app[worker.1]: highWaterMark: 16384, 2018-04-29T10:45:46.843868+00:00 app[worker.1]: buffer: [Object], 2018-04-29T10:45:46.843869+00:00 app[worker.1]: length: 0, 2018-04-29T10:45:46.843871+00:00 app[worker.1]: pipes: null, 2018-04-29T10:45:46.843872+00:00 app[worker.1]: pipesCount: 0, 2018-04-29T10:45:46.843874+00:00 app[worker.1]: flowing: true, 2018-04-29T10:45:46.843875+00:00 app[worker.1]: ended: true, 2018-04-29T10:45:46.843877+00:00 app[worker.1]: endEmitted: true, 2018-04-29T10:45:46.843878+00:00 app[worker.1]: reading: false, 2018-04-29T10:45:46.843880+00:00 app[worker.1]: sync: true, 2018-04-29T10:45:46.843881+00:00 app[worker.1]: needReadable: false, 2018-04-29T10:45:46.843883+00:00 app[worker.1]: emittedReadable: false, 2018-04-29T10:45:46.843885+00:00 app[worker.1]: readableListening: false, 2018-04-29T10:45:46.843886+00:00 app[worker.1]: resumeScheduled: false, 2018-04-29T10:45:46.843887+00:00 app[worker.1]: destroyed: false, 2018-04-29T10:45:46.843889+00:00 app[worker.1]: defaultEncoding: 'utf8', 2018-04-29T10:45:46.843891+00:00 app[worker.1]: awaitDrain: 0, 2018-04-29T10:45:46.843892+00:00 app[worker.1]: readingMore: false, 2018-04-29T10:45:46.843893+00:00 app[worker.1]: decoder: null, 2018-04-29T10:45:46.843895+00:00 app[worker.1]: encoding: null }, 2018-04-29T10:45:46.843896+00:00 app[worker.1]: readable: false, 2018-04-29T10:45:46.843898+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:46.843899+00:00 app[worker.1]: _events: 2018-04-29T10:45:46.843901+00:00 app[worker.1]: { end: [Array], 2018-04-29T10:45:46.843902+00:00 app[worker.1]: close: [Array], 2018-04-29T10:45:46.843904+00:00 app[worker.1]: data: [Function], 2018-04-29T10:45:46.843905+00:00 app[worker.1]: error: [Function] }, 2018-04-29T10:45:46.843907+00:00 app[worker.1]: _eventsCount: 4, 2018-04-29T10:45:46.843909+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:46.843911+00:00 app[worker.1]: socket: 2018-04-29T10:45:46.843912+00:00 app[worker.1]: TLSSocket { 2018-04-29T10:45:46.843914+00:00 app[worker.1]: _tlsOptions: [Object], 2018-04-29T10:45:46.843915+00:00 app[worker.1]: _secureEstablished: true, 2018-04-29T10:45:46.843917+00:00 app[worker.1]: _securePending: false, 2018-04-29T10:45:46.843918+00:00 app[worker.1]: _newSessionPending: false, 2018-04-29T10:45:46.843920+00:00 app[worker.1]: _controlReleased: true, 2018-04-29T10:45:46.843922+00:00 app[worker.1]: _SNICallback: null, 2018-04-29T10:45:46.843923+00:00 app[worker.1]: servername: null, 2018-04-29T10:45:46.843924+00:00 app[worker.1]: npnProtocol: false, 2018-04-29T10:45:46.843926+00:00 app[worker.1]: alpnProtocol: false, 2018-04-29T10:45:46.843928+00:00 app[worker.1]: authorized: true, 2018-04-29T10:45:46.843929+00:00 app[worker.1]: authorizationError: null, 2018-04-29T10:45:46.843931+00:00 app[worker.1]: encrypted: true, 2018-04-29T10:45:46.843932+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:46.843934+00:00 app[worker.1]: _eventsCount: 9, 2018-04-29T10:45:46.843935+00:00 app[worker.1]: connecting: false, 2018-04-29T10:45:46.843937+00:00 app[worker.1]: _hadError: false, 2018-04-29T10:45:46.843938+00:00 app[worker.1]: _handle: [Object], 2018-04-29T10:45:46.843940+00:00 app[worker.1]: _parent: null, 2018-04-29T10:45:46.843941+00:00 app[worker.1]: _host: 'api.telegram.org', 2018-04-29T10:45:46.843943+00:00 app[worker.1]: _readableState: [Object], 2018-04-29T10:45:46.843944+00:00 app[worker.1]: readable: true, 2018-04-29T10:45:46.843946+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:46.843947+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:46.843949+00:00 app[worker.1]: _writableState: [Object], 2018-04-29T10:45:46.843950+00:00 app[worker.1]: writable: true, 2018-04-29T10:45:46.843952+00:00 app[worker.1]: allowHalfOpen: false, 2018-04-29T10:45:46.843953+00:00 app[worker.1]: _bytesDispatched: 2465, 2018-04-29T10:45:46.843955+00:00 app[worker.1]: _sockname: null, 2018-04-29T10:45:46.843956+00:00 app[worker.1]: _pendingData: null, 2018-04-29T10:45:46.843958+00:00 app[worker.1]: _pendingEncoding: '', 2018-04-29T10:45:46.843959+00:00 app[worker.1]: server: undefined, 2018-04-29T10:45:46.843961+00:00 app[worker.1]: _server: null, 2018-04-29T10:45:46.843962+00:00 app[worker.1]: ssl: [Object], 2018-04-29T10:45:46.843964+00:00 app[worker.1]: _requestCert: true, 2018-04-29T10:45:46.843965+00:00 app[worker.1]: _rejectUnauthorized: true, 2018-04-29T10:45:46.843967+00:00 app[worker.1]: parser: null, 2018-04-29T10:45:46.843968+00:00 app[worker.1]: _httpMessage: null, 2018-04-29T10:45:46.843970+00:00 app[worker.1]: read: [Function], 2018-04-29T10:45:46.843971+00:00 app[worker.1]: _consuming: true, 2018-04-29T10:45:46.843973+00:00 app[worker.1]: [Symbol(asyncId)]: -1, 2018-04-29T10:45:46.843974+00:00 app[worker.1]: [Symbol(bytesRead)]: 0 }, 2018-04-29T10:45:46.843976+00:00 app[worker.1]: connection: 2018-04-29T10:45:46.843977+00:00 app[worker.1]: TLSSocket { 2018-04-29T10:45:46.843979+00:00 app[worker.1]: _tlsOptions: [Object], 2018-04-29T10:45:46.843980+00:00 app[worker.1]: _secureEstablished: true, 2018-04-29T10:45:46.843982+00:00 app[worker.1]: _securePending: false, 2018-04-29T10:45:46.843983+00:00 app[worker.1]: _newSessionPending: false, 2018-04-29T10:45:46.843985+00:00 app[worker.1]: _controlReleased: true, 2018-04-29T10:45:46.843986+00:00 app[worker.1]: _SNICallback: null, 2018-04-29T10:45:46.843988+00:00 app[worker.1]: servername: null, 2018-04-29T10:45:46.843990+00:00 app[worker.1]: npnProtocol: false, 2018-04-29T10:45:46.843991+00:00 app[worker.1]: alpnProtocol: false, 2018-04-29T10:45:46.843993+00:00 app[worker.1]: authorized: true, 2018-04-29T10:45:46.843994+00:00 app[worker.1]: authorizationError: null, 2018-04-29T10:45:46.843996+00:00 app[worker.1]: encrypted: true, 2018-04-29T10:45:46.843997+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:46.843999+00:00 app[worker.1]: _eventsCount: 9, 2018-04-29T10:45:46.844000+00:00 app[worker.1]: connecting: false, 2018-04-29T10:45:46.844002+00:00 app[worker.1]: _hadError: false, 2018-04-29T10:45:46.844003+00:00 app[worker.1]: _handle: [Object], 2018-04-29T10:45:46.844005+00:00 app[worker.1]: _parent: null, 2018-04-29T10:45:46.844006+00:00 app[worker.1]: _host: 'api.telegram.org', 2018-04-29T10:45:46.844014+00:00 app[worker.1]: _readableState: [Object], 2018-04-29T10:45:46.844016+00:00 app[worker.1]: readable: true, 2018-04-29T10:45:46.844017+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:46.844019+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:46.844020+00:00 app[worker.1]: _writableState: [Object], 2018-04-29T10:45:46.844022+00:00 app[worker.1]: writable: true, 2018-04-29T10:45:46.844023+00:00 app[worker.1]: allowHalfOpen: false, 2018-04-29T10:45:46.844025+00:00 app[worker.1]: _bytesDispatched: 2465, 2018-04-29T10:45:46.844026+00:00 app[worker.1]: _sockname: null, 2018-04-29T10:45:46.844028+00:00 app[worker.1]: _pendingData: null, 2018-04-29T10:45:46.844036+00:00 app[worker.1]: _pendingEncoding: '', 2018-04-29T10:45:46.844038+00:00 app[worker.1]: server: undefined, 2018-04-29T10:45:46.844039+00:00 app[worker.1]: _server: null, 2018-04-29T10:45:46.844041+00:00 app[worker.1]: ssl: [Object], 2018-04-29T10:45:46.844042+00:00 app[worker.1]: _requestCert: true, 2018-04-29T10:45:46.844044+00:00 app[worker.1]: _rejectUnauthorized: true, 2018-04-29T10:45:46.844045+00:00 app[worker.1]: parser: null, 2018-04-29T10:45:46.844050+00:00 app[worker.1]: _httpMessage: null, 2018-04-29T10:45:46.844051+00:00 app[worker.1]: read: [Function], 2018-04-29T10:45:46.844053+00:00 app[worker.1]: _consuming: true, 2018-04-29T10:45:46.844054+00:00 app[worker.1]: [Symbol(asyncId)]: -1, 2018-04-29T10:45:46.844056+00:00 app[worker.1]: [Symbol(bytesRead)]: 0 }, 2018-04-29T10:45:46.844057+00:00 app[worker.1]: httpVersionMajor: 1, 2018-04-29T10:45:46.844058+00:00 app[worker.1]: httpVersionMinor: 1, 2018-04-29T10:45:46.844060+00:00 app[worker.1]: httpVersion: '1.1', 2018-04-29T10:45:46.844061+00:00 app[worker.1]: complete: true, 2018-04-29T10:45:46.844063+00:00 app[worker.1]: headers: 2018-04-29T10:45:46.844064+00:00 app[worker.1]: { server: 'nginx/1.12.2', 2018-04-29T10:45:46.844066+00:00 app[worker.1]: date: 'Sun, 29 Apr 2018 10:45:46 GMT', 2018-04-29T10:45:46.844067+00:00 app[worker.1]: 'content-type': 'text/html', 2018-04-29T10:45:46.844069+00:00 app[worker.1]: 'content-length': '173', 2018-04-29T10:45:46.844070+00:00 app[worker.1]: connection: 'keep-alive', 2018-04-29T10:45:46.844071+00:00 app[worker.1]: 'access-control-allow-origin': '', 2018-04-29T10:45:46.844073+00:00 app[worker.1]: 'access-control-expose-headers': 'Content-Length,Content-Type,Date,Server,Connection' }, 2018-04-29T10:45:46.844075+00:00 app[worker.1]: rawHeaders: 2018-04-29T10:45:46.844076+00:00 app[worker.1]: [ 'Server', 2018-04-29T10:45:46.844077+00:00 app[worker.1]: 'nginx/1.12.2', 2018-04-29T10:45:46.844079+00:00 app[worker.1]: 'Date', 2018-04-29T10:45:46.844080+00:00 app[worker.1]: 'Sun, 29 Apr 2018 10:45:46 GMT', 2018-04-29T10:45:46.844082+00:00 app[worker.1]: 'Content-Type', 2018-04-29T10:45:46.844083+00:00 app[worker.1]: 'text/html', 2018-04-29T10:45:46.844085+00:00 app[worker.1]: 'Content-Length', 2018-04-29T10:45:46.844086+00:00 app[worker.1]: '173', 2018-04-29T10:45:46.844088+00:00 app[worker.1]: 'Connection', 2018-04-29T10:45:46.844089+00:00 app[worker.1]: 'keep-alive', 2018-04-29T10:45:46.844091+00:00 app[worker.1]: 'Access-Control-Allow-Origin', 2018-04-29T10:45:46.844092+00:00 app[worker.1]: '', 2018-04-29T10:45:46.844094+00:00 app[worker.1]: 'Access-Control-Expose-Headers', 2018-04-29T10:45:46.844095+00:00 app[worker.1]: 'Content-Length,Content-Type,Date,Server,Connection' ], 2018-04-29T10:45:46.844097+00:00 app[worker.1]: trailers: {}, 2018-04-29T10:45:46.844098+00:00 app[worker.1]: rawTrailers: [], 2018-04-29T10:45:46.844100+00:00 app[worker.1]: upgrade: false, 2018-04-29T10:45:46.844101+00:00 app[worker.1]: url: '', 2018-04-29T10:45:46.844103+00:00 app[worker.1]: method: null, 2018-04-29T10:45:46.844104+00:00 app[worker.1]: statusCode: 502, 2018-04-29T10:45:46.844106+00:00 app[worker.1]: statusMessage: 'Bad Gateway', 2018-04-29T10:45:46.844107+00:00 app[worker.1]: client: 2018-04-29T10:45:46.844109+00:00 app[worker.1]: TLSSocket { 2018-04-29T10:45:46.844110+00:00 app[worker.1]: _tlsOptions: [Object], 2018-04-29T10:45:46.844111+00:00 app[worker.1]: _secureEstablished: true, 2018-04-29T10:45:46.844113+00:00 app[worker.1]: _securePending: false, 2018-04-29T10:45:46.844114+00:00 app[worker.1]: _newSessionPending: false, 2018-04-29T10:45:46.844116+00:00 app[worker.1]: _controlReleased: true, 2018-04-29T10:45:46.844118+00:00 app[worker.1]: _SNICallback: null, 2018-04-29T10:45:46.844119+00:00 app[worker.1]: servername: null, 2018-04-29T10:45:46.844121+00:00 app[worker.1]: npnProtocol: false, 2018-04-29T10:45:46.844122+00:00 app[worker.1]: alpnProtocol: false, 2018-04-29T10:45:46.844124+00:00 app[worker.1]: authorized: true, 2018-04-29T10:45:46.844125+00:00 app[worker.1]: authorizationError: null, 2018-04-29T10:45:46.844127+00:00 app[worker.1]: encrypted: true, 2018-04-29T10:45:46.844128+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:46.844129+00:00 app[worker.1]: _eventsCount: 9, 2018-04-29T10:45:46.844131+00:00 app[worker.1]: connecting: false, 2018-04-29T10:45:46.844132+00:00 app[worker.1]: _hadError: false, 2018-04-29T10:45:46.844134+00:00 app[worker.1]: _handle: [Object], 2018-04-29T10:45:46.844135+00:00 app[worker.1]: _parent: null, 2018-04-29T10:45:46.844137+00:00 app[worker.1]: _host: 'api.telegram.org', 2018-04-29T10:45:46.844138+00:00 app[worker.1]: _readableState: [Object], 2018-04-29T10:45:46.844140+00:00 app[worker.1]: readable: true, 2018-04-29T10:45:46.844141+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:46.844143+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:46.844144+00:00 app[worker.1]: _writableState: [Object], 2018-04-29T10:45:46.844146+00:00 app[worker.1]: writable: true, 2018-04-29T10:45:46.844147+00:00 app[worker.1]: allowHalfOpen: false, 2018-04-29T10:45:46.844149+00:00 app[worker.1]: _bytesDispatched: 2465, 2018-04-29T10:45:46.844150+00:00 app[worker.1]: _sockname: null, 2018-04-29T10:45:46.844151+00:00 app[worker.1]: _pendingData: null, 2018-04-29T10:45:46.844153+00:00 app[worker.1]: _pendingEncoding: '', 2018-04-29T10:45:46.844154+00:00 app[worker.1]: server: undefined, 2018-04-29T10:45:46.844156+00:00 app[worker.1]: _server: null, 2018-04-29T10:45:46.844157+00:00 app[worker.1]: ssl: [Object], 2018-04-29T10:45:46.844159+00:00 app[worker.1]: _requestCert: true, 2018-04-29T10:45:46.844160+00:00 app[worker.1]: _rejectUnauthorized: true, 2018-04-29T10:45:46.844162+00:00 app[worker.1]: parser: null, 2018-04-29T10:45:46.844163+00:00 app[worker.1]: _httpMessage: null, 2018-04-29T10:45:46.844165+00:00 app[worker.1]: read: [Function], 2018-04-29T10:45:46.844166+00:00 app[worker.1]: _consuming: true, 2018-04-29T10:45:46.844168+00:00 app[worker.1]: [Symbol(asyncId)]: -1, 2018-04-29T10:45:46.844169+00:00 app[worker.1]: [Symbol(bytesRead)]: 0 }, 2018-04-29T10:45:46.844171+00:00 app[worker.1]: _consuming: true, 2018-04-29T10:45:46.844172+00:00 app[worker.1]: _dumped: false, 2018-04-29T10:45:46.844174+00:00 app[worker.1]: req: 2018-04-29T10:45:46.844175+00:00 app[worker.1]: ClientRequest { 2018-04-29T10:45:46.844177+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:46.844178+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:46.844180+00:00 app[worker.1]: _eventsCount: 5, 2018-04-29T10:45:46.844181+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:46.844183+00:00 app[worker.1]: output: [], 2018-04-29T10:45:46.844184+00:00 app[worker.1]: outputEncodings: [], 2018-04-29T10:45:46.844186+00:00 app[worker.1]: outputCallbacks: [], 2018-04-29T10:45:46.844187+00:00 app[worker.1]: outputSize: 0, 2018-04-29T10:45:46.844189+00:00 app[worker.1]: writable: false, 2018-04-29T10:45:46.844190+00:00 app[worker.1]: _last: false, 2018-04-29T10:45:46.844192+00:00 app[worker.1]: upgrading: false, 2018-04-29T10:45:46.844193+00:00 app[worker.1]: chunkedEncoding: false, 2018-04-29T10:45:46.844194+00:00 app[worker.1]: shouldKeepAlive: true, 2018-04-29T10:45:46.844196+00:00 app[worker.1]: useChunkedEncodingByDefault: true, 2018-04-29T10:45:46.844197+00:00 app[worker.1]: sendDate: false, 2018-04-29T10:45:46.844199+00:00 app[worker.1]: _removedConnection: false, 2018-04-29T10:45:46.844200+00:00 app[worker.1]: _removedContLen: false, 2018-04-29T10:45:46.844202+00:00 app[worker.1]: _removedTE: false, 2018-04-29T10:45:46.844203+00:00 app[worker.1]: _contentLength: null, 2018-04-29T10:45:46.844204+00:00 app[worker.1]: _hasBody: true, 2018-04-29T10:45:46.844206+00:00 app[worker.1]: _trailer: '', 2018-04-29T10:45:46.844207+00:00 app[worker.1]: finished: true, 2018-04-29T10:45:46.844208+00:00 app[worker.1]: _headerSent: true, 2018-04-29T10:45:46.844210+00:00 app[worker.1]: socket: [Object], 2018-04-29T10:45:46.844211+00:00 app[worker.1]: connection: [Object], 2018-04-29T10:45:46.844214+00:00 app[worker.1]: _header: 'POST /bot397288875:AAFUHQmZ42-EVXSU6zc97AHl2Xdb34iysJ8/getUpdates HTTP/1.1\r\nhost: api.telegram.org\r\ncontent-type: application/x-www-form-urlencoded\r\ncontent-length: 19\r\nConnection: keep-alive\r\n\r\n', 2018-04-29T10:45:46.844215+00:00 app[worker.1]: _onPendingData: [Function: noopPendingOutput], 2018-04-29T10:45:46.844217+00:00 app[worker.1]: agent: [Object], 2018-04-29T10:45:46.844218+00:00 app[worker.1]: socketPath: undefined, 2018-04-29T10:45:46.844220+00:00 app[worker.1]: timeout: undefined, 2018-04-29T10:45:46.844221+00:00 app[worker.1]: method: 'POST', 2018-04-29T10:45:46.844223+00:00 app[worker.1]: path: '/bot397288875:AAFUHQmZ42-EVXSU6zc97AHl2Xdb34iysJ8/getUpdates', 2018-04-29T10:45:46.844224+00:00 app[worker.1]: _ended: true, 2018-04-29T10:45:46.844226+00:00 app[worker.1]: res: [Object], 2018-04-29T10:45:46.844227+00:00 app[worker.1]: aborted: undefined, 2018-04-29T10:45:46.844229+00:00 app[worker.1]: timeoutCb: null, 2018-04-29T10:45:46.844231+00:00 app[worker.1]: upgradeOrConnect: false, 2018-04-29T10:45:46.844232+00:00 app[worker.1]: parser: null, 2018-04-29T10:45:46.844233+00:00 app[worker.1]: maxHeadersCount: null, 2018-04-29T10:45:46.844235+00:00 app[worker.1]: [Symbol(outHeadersKey)]: [Object] }, 2018-04-29T10:45:46.844236+00:00 app[worker.1]: request: 2018-04-29T10:45:46.844238+00:00 app[worker.1]: Request { 2018-04-29T10:45:46.844239+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:46.844240+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:46.844248+00:00 app[worker.1]: _eventsCount: 5, 2018-04-29T10:45:46.844250+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:46.844252+00:00 app[worker.1]: method: 'POST', 2018-04-29T10:45:46.844253+00:00 app[worker.1]: simple: false, 2018-04-29T10:45:46.844254+00:00 app[worker.1]: resolveWithFullResponse: true, 2018-04-29T10:45:46.844256+00:00 app[worker.1]: forever: true, 2018-04-29T10:45:46.844257+00:00 app[worker.1]: readable: true, 2018-04-29T10:45:46.844259+00:00 app[worker.1]: writable: true, 2018-04-29T10:45:46.844260+00:00 app[worker.1]: explicitMethod: true, 2018-04-29T10:45:46.844262+00:00 app[worker.1]: _qs: [Object], 2018-04-29T10:45:46.844263+00:00 app[worker.1]: _auth: [Object], 2018-04-29T10:45:46.844265+00:00 app[worker.1]: _oauth: [Object], 2018-04-29T10:45:46.844266+00:00 app[worker.1]: _multipart: [Object], 2018-04-29T10:45:46.844268+00:00 app[worker.1]: _redirect: [Object], 2018-04-29T10:45:46.844269+00:00 app[worker.1]: _tunnel: [Object], 2018-04-29T10:45:46.844271+00:00 app[worker.1]: _rp_resolve: [Function], 2018-04-29T10:45:46.844272+00:00 app[worker.1]: _rp_reject: [Function], 2018-04-29T10:45:46.844273+00:00 app[worker.1]: _rp_promise: [Object], 2018-04-29T10:45:46.844275+00:00 app[worker.1]: _rp_callbackOrig: undefined, 2018-04-29T10:45:46.844276+00:00 app[worker.1]: callback: [Function], 2018-04-29T10:45:46.844278+00:00 app[worker.1]: _rp_options: [Object], 2018-04-29T10:45:46.844280+00:00 app[worker.1]: headers: [Object], 2018-04-29T10:45:46.844281+00:00 app[worker.1]: setHeader: [Function], 2018-04-29T10:45:46.844282+00:00 app[worker.1]: hasHeader: [Function], 2018-04-29T10:45:46.844284+00:00 app[worker.1]: getHeader: [Function], 2018-04-29T10:45:46.844285+00:00 app[worker.1]: removeHeader: [Function], 2018-04-29T10:45:46.844287+00:00 app[worker.1]: localAddress: undefined, 2018-04-29T10:45:46.844288+00:00 app[worker.1]: pool: [Object], 2018-04-29T10:45:46.844290+00:00 app[worker.1]: dests: [], 2018-04-29T10:45:46.844291+00:00 app[worker.1]: __isRequestRequest: true, 2018-04-29T10:45:46.844293+00:00 app[worker.1]: _callback: [Function: RP$callback], 2018-04-29T10:45:46.844294+00:00 app[worker.1]: uri: [Object], 2018-04-29T10:45:46.844296+00:00 app[worker.1]: proxy: null, 2018-04-29T10:45:46.844297+00:00 app[worker.1]: tunnel: true, 2018-04-29T10:45:46.844299+00:00 app[worker.1]: setHost: true, 2018-04-29T10:45:46.844300+00:00 app[worker.1]: originalCookieHeader: undefined, 2018-04-29T10:45:46.844302+00:00 app[worker.1]: _disableCookies: true, 2018-04-29T10:45:46.844303+00:00 app[worker.1]: _jar: undefined, 2018-04-29T10:45:46.844305+00:00 app[worker.1]: port: 443, 2018-04-29T10:45:46.844306+00:00 app[worker.1]: host: 'api.telegram.org', 2018-04-29T10:45:46.844308+00:00 app[worker.1]: body: 'offset=0&timeout=10', 2018-04-29T10:45:46.844309+00:00 app[worker.1]: path: '/bot397288875:AAFUHQmZ42-EVXSU6zc97AHl2Xdb34iysJ8/getUpdates', 2018-04-29T10:45:46.844311+00:00 app[worker.1]: httpModule: [Object], 2018-04-29T10:45:46.844312+00:00 app[worker.1]: agentClass: [Object], 2018-04-29T10:45:46.844314+00:00 app[worker.1]: agentOptions: [Object], 2018-04-29T10:45:46.844315+00:00 app[worker.1]: agent: [Object], 2018-04-29T10:45:46.844316+00:00 app[worker.1]: _started: true, 2018-04-29T10:45:46.844318+00:00 app[worker.1]: href: 'https://api.telegram.org/bot397288875:AAFUHQmZ42-EVXSU6zc97AHl2Xdb34iysJ8/getUpdates', 2018-04-29T10:45:46.844320+00:00 app[worker.1]: req: [Object], 2018-04-29T10:45:46.844321+00:00 app[worker.1]: ntick: true, 2018-04-29T10:45:46.844322+00:00 app[worker.1]: response: [Object], 2018-04-29T10:45:46.844324+00:00 app[worker.1]: originalHost: 'api.telegram.org', 2018-04-29T10:45:46.844325+00:00 app[worker.1]: originalHostHeaderName: 'host', 2018-04-29T10:45:46.844327+00:00 app[worker.1]: responseContent: [Object], 2018-04-29T10:45:46.844328+00:00 app[worker.1]: _destdata: true, 2018-04-29T10:45:46.844330+00:00 app[worker.1]: _ended: true, 2018-04-29T10:45:46.844332+00:00 app[worker.1]: _callbackCalled: true }, 2018-04-29T10:45:46.844333+00:00 app[worker.1]: toJSON: [Function: responseToJSON], 2018-04-29T10:45:46.844334+00:00 app[worker.1]: caseless: Caseless { dict: [Object] }, 2018-04-29T10:45:46.844336+00:00 app[worker.1]: read: [Function], 2018-04-29T10:45:46.844338+00:00 app[worker.1]: body: '\r\n<title>502 Bad Gateway</title>\r\n\r\n 502 Bad Gateway\r\nnginx/1.12.2\r\n\r\n\r\n' } } 2018-04-29T10:45:50.677680+00:00 app[worker.1]: ERROR:: 'Telegram Error' { Error: EPARSE: Error parsing Telegram response: 2018-04-29T10:45:50.677693+00:00 app[worker.1]: <title>502 Bad Gateway</title> 2018-04-29T10:45:50.677695+00:00 app[worker.1]: 2018-04-29T10:45:50.677697+00:00 app[worker.1]: 502 Bad Gateway2018-04-29T10:45:50.677699+00:00 app[worker.1]: nginx/1.12.2 2018-04-29T10:45:50.677701+00:00 app[worker.1]: 2018-04-29T10:45:50.677702+00:00 app[worker.1]: 2018-04-29T10:45:50.677704+00:00 app[worker.1]: 2018-04-29T10:45:50.677705+00:00 app[worker.1]: at request.then.resp (/app/node_modules/node-telegram-bot-api/src/telegram.js:206:17) 2018-04-29T10:45:50.677708+00:00 app[worker.1]: at tryCatcher (/app/node_modules/bluebird/js/release/util.js:16:23) 2018-04-29T10:45:50.677710+00:00 app[worker.1]: at Promise._settlePromiseFromHandler (/app/node_modules/bluebird/js/release/promise.js:512:31) 2018-04-29T10:45:50.677711+00:00 app[worker.1]: at Promise._settlePromise (/app/node_modules/bluebird/js/release/promise.js:569:18) 2018-04-29T10:45:50.677713+00:00 app[worker.1]: at Promise._settlePromise0 (/app/node_modules/bluebird/js/release/promise.js:614:10) 2018-04-29T10:45:50.677714+00:00 app[worker.1]: at Promise._settlePromises (/app/node_modules/bluebird/js/release/promise.js:693:18) 2018-04-29T10:45:50.677716+00:00 app[worker.1]: at Async._drainQueue (/app/node_modules/bluebird/js/release/async.js:133:16) 2018-04-29T10:45:50.677717+00:00 app[worker.1]: at Async._drainQueues (/app/node_modules/bluebird/js/release/async.js:143:10) 2018-04-29T10:45:50.677719+00:00 app[worker.1]: at Immediate.Async.drainQueues (/app/node_modules/bluebird/js/release/async.js:17:14) 2018-04-29T10:45:50.677721+00:00 app[worker.1]: at runCallback (timers.js:781:20) 2018-04-29T10:45:50.677722+00:00 app[worker.1]: at tryOnImmediate (timers.js:743:5) 2018-04-29T10:45:50.677724+00:00 app[worker.1]: at processImmediate [as _immediateCallback] (timers.js:714:5) 2018-04-29T10:45:50.677725+00:00 app[worker.1]: code: 'EPARSE', 2018-04-29T10:45:50.677727+00:00 app[worker.1]: response: 2018-04-29T10:45:50.677728+00:00 app[worker.1]: IncomingMessage { 2018-04-29T10:45:50.677742+00:00 app[worker.1]: _readableState: 2018-04-29T10:45:50.677744+00:00 app[worker.1]: ReadableState { 2018-04-29T10:45:50.677745+00:00 app[worker.1]: objectMode: false, 2018-04-29T10:45:50.677747+00:00 app[worker.1]: highWaterMark: 16384, 2018-04-29T10:45:50.677748+00:00 app[worker.1]: buffer: [Object], 2018-04-29T10:45:50.677749+00:00 app[worker.1]: length: 0, 2018-04-29T10:45:50.677751+00:00 app[worker.1]: pipes: null, 2018-04-29T10:45:50.677752+00:00 app[worker.1]: pipesCount: 0, 2018-04-29T10:45:50.677754+00:00 app[worker.1]: flowing: true, 2018-04-29T10:45:50.677755+00:00 app[worker.1]: ended: true, 2018-04-29T10:45:50.677757+00:00 app[worker.1]: endEmitted: true, 2018-04-29T10:45:50.677758+00:00 app[worker.1]: reading: false, 2018-04-29T10:45:50.677760+00:00 app[worker.1]: sync: true, 2018-04-29T10:45:50.677761+00:00 app[worker.1]: needReadable: false, 2018-04-29T10:45:50.677762+00:00 app[worker.1]: emittedReadable: false, 2018-04-29T10:45:50.677764+00:00 app[worker.1]: readableListening: false, 2018-04-29T10:45:50.677765+00:00 app[worker.1]: resumeScheduled: false, 2018-04-29T10:45:50.677767+00:00 app[worker.1]: destroyed: false, 2018-04-29T10:45:50.677768+00:00 app[worker.1]: defaultEncoding: 'utf8', 2018-04-29T10:45:50.677770+00:00 app[worker.1]: awaitDrain: 0, 2018-04-29T10:45:50.677771+00:00 app[worker.1]: readingMore: false, 2018-04-29T10:45:50.677773+00:00 app[worker.1]: decoder: null, 2018-04-29T10:45:50.677774+00:00 app[worker.1]: encoding: null }, 2018-04-29T10:45:50.677776+00:00 app[worker.1]: readable: false, 2018-04-29T10:45:50.677777+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:50.677779+00:00 app[worker.1]: _events: 2018-04-29T10:45:50.677780+00:00 app[worker.1]: { end: [Array], 2018-04-29T10:45:50.677782+00:00 app[worker.1]: close: [Array], 2018-04-29T10:45:50.677783+00:00 app[worker.1]: data: [Function], 2018-04-29T10:45:50.677785+00:00 app[worker.1]: error: [Function] }, 2018-04-29T10:45:50.677786+00:00 app[worker.1]: _eventsCount: 4, 2018-04-29T10:45:50.677788+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:50.677789+00:00 app[worker.1]: socket: 2018-04-29T10:45:50.677790+00:00 app[worker.1]: TLSSocket { 2018-04-29T10:45:50.677792+00:00 app[worker.1]: _tlsOptions: [Object], 2018-04-29T10:45:50.677793+00:00 app[worker.1]: _secureEstablished: true, 2018-04-29T10:45:50.677795+00:00 app[worker.1]: _securePending: false, 2018-04-29T10:45:50.677796+00:00 app[worker.1]: _newSessionPending: false, 2018-04-29T10:45:50.677798+00:00 app[worker.1]: _controlReleased: true, 2018-04-29T10:45:50.677799+00:00 app[worker.1]: _SNICallback: null, 2018-04-29T10:45:50.677801+00:00 app[worker.1]: servername: null, 2018-04-29T10:45:50.677802+00:00 app[worker.1]: npnProtocol: false, 2018-04-29T10:45:50.677804+00:00 app[worker.1]: alpnProtocol: false, 2018-04-29T10:45:50.677805+00:00 app[worker.1]: authorized: true, 2018-04-29T10:45:50.677807+00:00 app[worker.1]: authorizationError: null, 2018-04-29T10:45:50.677808+00:00 app[worker.1]: encrypted: true, 2018-04-29T10:45:50.677810+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:50.677811+00:00 app[worker.1]: _eventsCount: 9, 2018-04-29T10:45:50.677813+00:00 app[worker.1]: connecting: false, 2018-04-29T10:45:50.677814+00:00 app[worker.1]: _hadError: false, 2018-04-29T10:45:50.677815+00:00 app[worker.1]: _handle: [Object], 2018-04-29T10:45:50.677817+00:00 app[worker.1]: _parent: null, 2018-04-29T10:45:50.677819+00:00 app[worker.1]: _host: 'api.telegram.org', 2018-04-29T10:45:50.677820+00:00 app[worker.1]: _readableState: [Object], 2018-04-29T10:45:50.677822+00:00 app[worker.1]: readable: true, 2018-04-29T10:45:50.677823+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:50.677825+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:50.677826+00:00 app[worker.1]: _writableState: [Object], 2018-04-29T10:45:50.677828+00:00 app[worker.1]: writable: true, 2018-04-29T10:45:50.677829+00:00 app[worker.1]: allowHalfOpen: false, 2018-04-29T10:45:50.677830+00:00 app[worker.1]: _bytesDispatched: 2782, 2018-04-29T10:45:50.677832+00:00 app[worker.1]: _sockname: null, 2018-04-29T10:45:50.677833+00:00 app[worker.1]: _pendingData: null, 2018-04-29T10:45:50.677835+00:00 app[worker.1]: _pendingEncoding: '', 2018-04-29T10:45:50.677836+00:00 app[worker.1]: server: undefined, 2018-04-29T10:45:50.677838+00:00 app[worker.1]: _server: null, 2018-04-29T10:45:50.677839+00:00 app[worker.1]: ssl: [Object], 2018-04-29T10:45:50.677841+00:00 app[worker.1]: _requestCert: true, 2018-04-29T10:45:50.677842+00:00 app[worker.1]: _rejectUnauthorized: true, 2018-04-29T10:45:50.677844+00:00 app[worker.1]: parser: null, 2018-04-29T10:45:50.677845+00:00 app[worker.1]: _httpMessage: null, 2018-04-29T10:45:50.677847+00:00 app[worker.1]: read: [Function], 2018-04-29T10:45:50.677848+00:00 app[worker.1]: _consuming: true, 2018-04-29T10:45:50.677849+00:00 app[worker.1]: [Symbol(asyncId)]: -1, 2018-04-29T10:45:50.677851+00:00 app[worker.1]: [Symbol(bytesRead)]: 0 }, 2018-04-29T10:45:50.677852+00:00 app[worker.1]: connection: 2018-04-29T10:45:50.677854+00:00 app[worker.1]: TLSSocket { 2018-04-29T10:45:50.677855+00:00 app[worker.1]: _tlsOptions: [Object], 2018-04-29T10:45:50.677857+00:00 app[worker.1]: _secureEstablished: true, 2018-04-29T10:45:50.677858+00:00 app[worker.1]: _securePending: false, 2018-04-29T10:45:50.677860+00:00 app[worker.1]: _newSessionPending: false, 2018-04-29T10:45:50.677861+00:00 app[worker.1]: _controlReleased: true, 2018-04-29T10:45:50.677863+00:00 app[worker.1]: _SNICallback: null, 2018-04-29T10:45:50.677864+00:00 app[worker.1]: servername: null, 2018-04-29T10:45:50.677866+00:00 app[worker.1]: npnProtocol: false, 2018-04-29T10:45:50.677867+00:00 app[worker.1]: alpnProtocol: false, 2018-04-29T10:45:50.677868+00:00 app[worker.1]: authorized: true, 2018-04-29T10:45:50.677870+00:00 app[worker.1]: authorizationError: null, 2018-04-29T10:45:50.677872+00:00 app[worker.1]: encrypted: true, 2018-04-29T10:45:50.677873+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:50.677874+00:00 app[worker.1]: _eventsCount: 9, 2018-04-29T10:45:50.677876+00:00 app[worker.1]: connecting: false, 2018-04-29T10:45:50.677877+00:00 app[worker.1]: _hadError: false, 2018-04-29T10:45:50.677879+00:00 app[worker.1]: _handle: [Object], 2018-04-29T10:45:50.677880+00:00 app[worker.1]: _parent: null, 2018-04-29T10:45:50.677882+00:00 app[worker.1]: _host: 'api.telegram.org', 2018-04-29T10:45:50.677883+00:00 app[worker.1]: _readableState: [Object], 2018-04-29T10:45:50.677885+00:00 app[worker.1]: readable: true, 2018-04-29T10:45:50.677886+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:50.677888+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:50.677889+00:00 app[worker.1]: _writableState: [Object], 2018-04-29T10:45:50.677891+00:00 app[worker.1]: writable: true, 2018-04-29T10:45:50.677892+00:00 app[worker.1]: allowHalfOpen: false, 2018-04-29T10:45:50.677894+00:00 app[worker.1]: _bytesDispatched: 2782, 2018-04-29T10:45:50.677895+00:00 app[worker.1]: _sockname: null, 2018-04-29T10:45:50.677906+00:00 app[worker.1]: _pendingData: null, 2018-04-29T10:45:50.677908+00:00 app[worker.1]: _pendingEncoding: '', 2018-04-29T10:45:50.677909+00:00 app[worker.1]: server: undefined, 2018-04-29T10:45:50.677910+00:00 app[worker.1]: _server: null, 2018-04-29T10:45:50.677912+00:00 app[worker.1]: ssl: [Object], 2018-04-29T10:45:50.677913+00:00 app[worker.1]: _requestCert: true, 2018-04-29T10:45:50.677915+00:00 app[worker.1]: _rejectUnauthorized: true, 2018-04-29T10:45:50.677916+00:00 app[worker.1]: parser: null, 2018-04-29T10:45:50.677918+00:00 app[worker.1]: _httpMessage: null, 2018-04-29T10:45:50.677919+00:00 app[worker.1]: read: [Function], 2018-04-29T10:45:50.677921+00:00 app[worker.1]: _consuming: true, 2018-04-29T10:45:50.677922+00:00 app[worker.1]: [Symbol(asyncId)]: -1, 2018-04-29T10:45:50.677924+00:00 app[worker.1]: [Symbol(bytesRead)]: 0 }, 2018-04-29T10:45:50.677925+00:00 app[worker.1]: httpVersionMajor: 1, 2018-04-29T10:45:50.677927+00:00 app[worker.1]: httpVersionMinor: 1, 2018-04-29T10:45:50.677928+00:00 app[worker.1]: httpVersion: '1.1', 2018-04-29T10:45:50.677929+00:00 app[worker.1]: complete: true, 2018-04-29T10:45:50.677931+00:00 app[worker.1]: headers: 2018-04-29T10:45:50.677932+00:00 app[worker.1]: { server: 'nginx/1.12.2', 2018-04-29T10:45:50.677934+00:00 app[worker.1]: date: 'Sun, 29 Apr 2018 10:45:50 GMT', 2018-04-29T10:45:50.677935+00:00 app[worker.1]: 'content-type': 'text/html', 2018-04-29T10:45:50.677937+00:00 app[worker.1]: 'content-length': '173', 2018-04-29T10:45:50.677938+00:00 app[worker.1]: connection: 'keep-alive', 2018-04-29T10:45:50.677940+00:00 app[worker.1]: 'access-control-allow-origin': '', 2018-04-29T10:45:50.677941+00:00 app[worker.1]: 'access-control-expose-headers': 'Content-Length,Content-Type,Date,Server,Connection' }, 2018-04-29T10:45:50.677943+00:00 app[worker.1]: rawHeaders: 2018-04-29T10:45:50.677944+00:00 app[worker.1]: [ 'Server', 2018-04-29T10:45:50.677946+00:00 app[worker.1]: 'nginx/1.12.2', 2018-04-29T10:45:50.677947+00:00 app[worker.1]: 'Date', 2018-04-29T10:45:50.677949+00:00 app[worker.1]: 'Sun, 29 Apr 2018 10:45:50 GMT', 2018-04-29T10:45:50.677950+00:00 app[worker.1]: 'Content-Type', 2018-04-29T10:45:50.677952+00:00 app[worker.1]: 'text/html', 2018-04-29T10:45:50.677953+00:00 app[worker.1]: 'Content-Length', 2018-04-29T10:45:50.677955+00:00 app[worker.1]: '173', 2018-04-29T10:45:50.677956+00:00 app[worker.1]: 'Connection', 2018-04-29T10:45:50.677958+00:00 app[worker.1]: 'keep-alive', 2018-04-29T10:45:50.677959+00:00 app[worker.1]: 'Access-Control-Allow-Origin', 2018-04-29T10:45:50.677961+00:00 app[worker.1]: '', 2018-04-29T10:45:50.677962+00:00 app[worker.1]: 'Access-Control-Expose-Headers', 2018-04-29T10:45:50.677964+00:00 app[worker.1]: 'Content-Length,Content-Type,Date,Server,Connection' ], 2018-04-29T10:45:50.677966+00:00 app[worker.1]: trailers: {}, 2018-04-29T10:45:50.677967+00:00 app[worker.1]: rawTrailers: [], 2018-04-29T10:45:50.677969+00:00 app[worker.1]: upgrade: false, 2018-04-29T10:45:50.677970+00:00 app[worker.1]: url: '', 2018-04-29T10:45:50.677972+00:00 app[worker.1]: method: null, 2018-04-29T10:45:50.677973+00:00 app[worker.1]: statusCode: 502, 2018-04-29T10:45:50.677975+00:00 app[worker.1]: statusMessage: 'Bad Gateway', 2018-04-29T10:45:50.677976+00:00 app[worker.1]: client: 2018-04-29T10:45:50.677978+00:00 app[worker.1]: TLSSocket { 2018-04-29T10:45:50.677979+00:00 app[worker.1]: _tlsOptions: [Object], 2018-04-29T10:45:50.677981+00:00 app[worker.1]: _secureEstablished: true, 2018-04-29T10:45:50.677982+00:00 app[worker.1]: _securePending: false, 2018-04-29T10:45:50.677984+00:00 app[worker.1]: _newSessionPending: false, 2018-04-29T10:45:50.677985+00:00 app[worker.1]: _controlReleased: true, 2018-04-29T10:45:50.677987+00:00 app[worker.1]: _SNICallback: null, 2018-04-29T10:45:50.677988+00:00 app[worker.1]: servername: null, 2018-04-29T10:45:50.677989+00:00 app[worker.1]: npnProtocol: false, 2018-04-29T10:45:50.677991+00:00 app[worker.1]: alpnProtocol: false, 2018-04-29T10:45:50.677992+00:00 app[worker.1]: authorized: true, 2018-04-29T10:45:50.677994+00:00 app[worker.1]: authorizationError: null, 2018-04-29T10:45:50.677995+00:00 app[worker.1]: encrypted: true, 2018-04-29T10:45:50.677997+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:50.677998+00:00 app[worker.1]: _eventsCount: 9, 2018-04-29T10:45:50.678000+00:00 app[worker.1]: connecting: false, 2018-04-29T10:45:50.678001+00:00 app[worker.1]: _hadError: false, 2018-04-29T10:45:50.678003+00:00 app[worker.1]: _handle: [Object], 2018-04-29T10:45:50.678004+00:00 app[worker.1]: _parent: null, 2018-04-29T10:45:50.678006+00:00 app[worker.1]: _host: 'api.telegram.org', 2018-04-29T10:45:50.678007+00:00 app[worker.1]: _readableState: [Object], 2018-04-29T10:45:50.678009+00:00 app[worker.1]: readable: true, 2018-04-29T10:45:50.678010+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:50.678012+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:50.678013+00:00 app[worker.1]: _writableState: [Object], 2018-04-29T10:45:50.678015+00:00 app[worker.1]: writable: true, 2018-04-29T10:45:50.678016+00:00 app[worker.1]: allowHalfOpen: false, 2018-04-29T10:45:50.678018+00:00 app[worker.1]: _bytesDispatched: 2782, 2018-04-29T10:45:50.678019+00:00 app[worker.1]: _sockname: null, 2018-04-29T10:45:50.678021+00:00 app[worker.1]: _pendingData: null, 2018-04-29T10:45:50.678022+00:00 app[worker.1]: _pendingEncoding: '', 2018-04-29T10:45:50.678024+00:00 app[worker.1]: server: undefined, 2018-04-29T10:45:50.678025+00:00 app[worker.1]: _server: null, 2018-04-29T10:45:50.678026+00:00 app[worker.1]: ssl: [Object], 2018-04-29T10:45:50.678028+00:00 app[worker.1]: _requestCert: true, 2018-04-29T10:45:50.678029+00:00 app[worker.1]: _rejectUnauthorized: true, 2018-04-29T10:45:50.678031+00:00 app[worker.1]: parser: null, 2018-04-29T10:45:50.678032+00:00 app[worker.1]: _httpMessage: null, 2018-04-29T10:45:50.678034+00:00 app[worker.1]: read: [Function], 2018-04-29T10:45:50.678035+00:00 app[worker.1]: _consuming: true, 2018-04-29T10:45:50.678037+00:00 app[worker.1]: [Symbol(asyncId)]: -1, 2018-04-29T10:45:50.678038+00:00 app[worker.1]: [Symbol(bytesRead)]: 0 }, 2018-04-29T10:45:50.678040+00:00 app[worker.1]: _consuming: true, 2018-04-29T10:45:50.678041+00:00 app[worker.1]: _dumped: false, 2018-04-29T10:45:50.678043+00:00 app[worker.1]: req: 2018-04-29T10:45:50.678044+00:00 app[worker.1]: ClientRequest { 2018-04-29T10:45:50.678046+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:50.678047+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:50.678048+00:00 app[worker.1]: _eventsCount: 5, 2018-04-29T10:45:50.678050+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:50.678051+00:00 app[worker.1]: output: [], 2018-04-29T10:45:50.678053+00:00 app[worker.1]: outputEncodings: [], 2018-04-29T10:45:50.678054+00:00 app[worker.1]: outputCallbacks: [], 2018-04-29T10:45:50.678056+00:00 app[worker.1]: outputSize: 0, 2018-04-29T10:45:50.678057+00:00 app[worker.1]: writable: false, 2018-04-29T10:45:50.678059+00:00 app[worker.1]: _last: false, 2018-04-29T10:45:50.678060+00:00 app[worker.1]: upgrading: false, 2018-04-29T10:45:50.678062+00:00 app[worker.1]: chunkedEncoding: false, 2018-04-29T10:45:50.678063+00:00 app[worker.1]: shouldKeepAlive: true, 2018-04-29T10:45:50.678069+00:00 app[worker.1]: useChunkedEncodingByDefault: true, 2018-04-29T10:45:50.678070+00:00 app[worker.1]: sendDate: false, 2018-04-29T10:45:50.678072+00:00 app[worker.1]: _removedConnection: false, 2018-04-29T10:45:50.678073+00:00 app[worker.1]: _removedContLen: false, 2018-04-29T10:45:50.678074+00:00 app[worker.1]: _removedTE: false, 2018-04-29T10:45:50.678076+00:00 app[worker.1]: _contentLength: null, 2018-04-29T10:45:50.678077+00:00 app[worker.1]: _hasBody: true, 2018-04-29T10:45:50.678079+00:00 app[worker.1]: _trailer: '', 2018-04-29T10:45:50.678080+00:00 app[worker.1]: finished: true, 2018-04-29T10:45:50.678082+00:00 app[worker.1]: _headerSent: true, 2018-04-29T10:45:50.678083+00:00 app[worker.1]: socket: [Object], 2018-04-29T10:45:50.678085+00:00 app[worker.1]: connection: [Object], 2018-04-29T10:45:50.678087+00:00 app[worker.1]: _header: 'POST /bot310864572:AAGkEjwSWKUmH0Qrx1N3UwE8xFvZn7nCWXw/getUpdates HTTP/1.1\r\nhost: api.telegram.org\r\ncontent-type: application/x-www-form-urlencoded\r\ncontent-length: 19\r\nConnection: keep-alive\r\n\r\n', 2018-04-29T10:45:50.678088+00:00 app[worker.1]: _onPendingData: [Function: noopPendingOutput], 2018-04-29T10:45:50.678090+00:00 app[worker.1]: agent: [Object], 2018-04-29T10:45:50.678091+00:00 app[worker.1]: socketPath: undefined, 2018-04-29T10:45:50.678093+00:00 app[worker.1]: timeout: undefined, 2018-04-29T10:45:50.678094+00:00 app[worker.1]: method: 'POST', 2018-04-29T10:45:50.678096+00:00 app[worker.1]: path: '/bot310864572:AAGkEjwSWKUmH0Qrx1N3UwE8xFvZn7nCWXw/getUpdates', 2018-04-29T10:45:50.678097+00:00 app[worker.1]: _ended: true, 2018-04-29T10:45:50.678099+00:00 app[worker.1]: res: [Object], 2018-04-29T10:45:50.678100+00:00 app[worker.1]: aborted: undefined, 2018-04-29T10:45:50.678102+00:00 app[worker.1]: timeoutCb: null, 2018-04-29T10:45:50.678103+00:00 app[worker.1]: upgradeOrConnect: false, 2018-04-29T10:45:50.678105+00:00 app[worker.1]: parser: null, 2018-04-29T10:45:50.678106+00:00 app[worker.1]: maxHeadersCount: null, 2018-04-29T10:45:50.678108+00:00 app[worker.1]: [Symbol(outHeadersKey)]: [Object] }, 2018-04-29T10:45:50.678109+00:00 app[worker.1]: request: 2018-04-29T10:45:50.678111+00:00 app[worker.1]: Request { 2018-04-29T10:45:50.678112+00:00 app[worker.1]: domain: null, 2018-04-29T10:45:50.678118+00:00 app[worker.1]: _events: [Object], 2018-04-29T10:45:50.678120+00:00 app[worker.1]: _eventsCount: 5, 2018-04-29T10:45:50.678122+00:00 app[worker.1]: _maxListeners: undefined, 2018-04-29T10:45:50.678123+00:00 app[worker.1]: method: 'POST', 2018-04-29T10:45:50.678124+00:00 app[worker.1]: simple: false, 2018-04-29T10:45:50.678126+00:00 app[worker.1]: resolveWithFullResponse: true, 2018-04-29T10:45:50.678127+00:00 app[worker.1]: forever: true, 2018-04-29T10:45:50.678129+00:00 app[worker.1]: readable: true, 2018-04-29T10:45:50.678130+00:00 app[worker.1]: writable: true, 2018-04-29T10:45:50.678132+00:00 app[worker.1]: explicitMethod: true, 2018-04-29T10:45:50.678133+00:00 app[worker.1]: _qs: [Object], 2018-04-29T10:45:50.678135+00:00 app[worker.1]: _auth: [Object], 2018-04-29T10:45:50.678136+00:00 app[worker.1]: _oauth: [Object], 2018-04-29T10:45:50.678137+00:00 app[worker.1]: _multipart: [Object], 2018-04-29T10:45:50.678139+00:00 app[worker.1]: _redirect: [Object], 2018-04-29T10:45:50.678140+00:00 app[worker.1]: _tunnel: [Object], 2018-04-29T10:45:50.678142+00:00 app[worker.1]: _rp_resolve: [Function], 2018-04-29T10:45:50.678143+00:00 app[worker.1]: _rp_reject: [Function], 2018-04-29T10:45:50.678145+00:00 app[worker.1]: _rp_promise: [Object], 2018-04-29T10:45:50.678146+00:00 app[worker.1]: _rp_callbackOrig: undefined, 2018-04-29T10:45:50.678148+00:00 app[worker.1]: callback: [Function], 2018-04-29T10:45:50.678149+00:00 app[worker.1]: _rp_options: [Object], 2018-04-29T10:45:50.678151+00:00 app[worker.1]: headers: [Object], 2018-04-29T10:45:50.678152+00:00 app[worker.1]: setHeader: [Function], 2018-04-29T10:45:50.678154+00:00 app[worker.1]: hasHeader: [Function], 2018-04-29T10:45:50.678155+00:00 app[worker.1]: getHeader: [Function], 2018-04-29T10:45:50.678156+00:00 app[worker.1]: removeHeader: [Function], 2018-04-29T10:45:50.678158+00:00 app[worker.1]: localAddress: undefined, 2018-04-29T10:45:50.678159+00:00 app[worker.1]: pool: [Object], 2018-04-29T10:45:50.678161+00:00 app[worker.1]: dests: [], 2018-04-29T10:45:50.678162+00:00 app[worker.1]: __isRequestRequest: true, 2018-04-29T10:45:50.678164+00:00 app[worker.1]: _callback: [Function: RP$callback], 2018-04-29T10:45:50.678165+00:00 app[worker.1]: uri: [Object], 2018-04-29T10:45:50.678167+00:00 app[worker.1]: proxy: null, 2018-04-29T10:45:50.678168+00:00 app[worker.1]: tunnel: true, 2018-04-29T10:45:50.678169+00:00 app[worker.1]: setHost: true, 2018-04-29T10:45:50.678171+00:00 app[worker.1]: originalCookieHeader: undefined, 2018-04-29T10:45:50.678173+00:00 app[worker.1]: _disableCookies: true, 2018-04-29T10:45:50.678174+00:00 app[worker.1]: _jar: undefined, 2018-04-29T10:45:50.678175+00:00 app[worker.1]: port: 443, 2018-04-29T10:45:50.678177+00:00 app[worker.1]: host: 'api.telegram.org', 2018-04-29T10:45:50.678178+00:00 app[worker.1]: body: 'offset=0&timeout=10', 2018-04-29T10:45:50.678180+00:00 app[worker.1]: path: '/bot310864572:AAGkEjwSWKUmH0Qrx1N3UwE8xFvZn7nCWXw/getUpdates', 2018-04-29T10:45:50.678181+00:00 app[worker.1]: httpModule: [Object], 2018-04-29T10:45:50.678183+00:00 app[worker.1]: agentClass: [Object], 2018-04-29T10:45:50.678184+00:00 app[worker.1]: agentOptions: [Object], 2018-04-29T10:45:50.678186+00:00 app[worker.1]: agent: [Object], 2018-04-29T10:45:50.678187+00:00 app[worker.1]: _started: true, 2018-04-29T10:45:50.678189+00:00 app[worker.1]: href: 'https://api.telegram.org/bot310864572:AAGkEjwSWKUmH0Qrx1N3UwE8xFvZn7nCWXw/getUpdates', 2018-04-29T10:45:50.678190+00:00 app[worker.1]: req: [Object], 2018-04-29T10:45:50.678192+00:00 app[worker.1]: ntick: true, 2018-04-29T10:45:50.678193+00:00 app[worker.1]: response: [Object], 2018-04-29T10:45:50.678195+00:00 app[worker.1]: originalHost: 'api.telegram.org', 2018-04-29T10:45:50.678196+00:00 app[worker.1]: originalHostHeaderName: 'host', 2018-04-29T10:45:50.678198+00:00 app[worker.1]: responseContent: [Object], 2018-04-29T10:45:50.678199+00:00 app[worker.1]: _destdata: true, 2018-04-29T10:45:50.678201+00:00 app[worker.1]: _ended: true, 2018-04-29T10:45:50.678202+00:00 app[worker.1]: _callbackCalled: true }, 2018-04-29T10:45:50.678204+00:00 app[worker.1]: toJSON: [Function: responseToJSON], 2018-04-29T10:45:50.678205+00:00 app[worker.1]: caseless: Caseless { dict: [Object] }, 2018-04-29T10:45:50.678206+00:00 app[worker.1]: read: [Function], 2018-04-29T10:45:50.678208+00:00 app[worker.1]: body: '\r\n<title>502 Bad Gateway</title>\r\n\r\n 502 Bad Gateway\r\nnginx/1.12.2\r\n\r\n\r\n' } } |
+1, and it seems to be a generalized issue. |
same here, the error should be treated differently by default otherwise it just ruins the server logs. Maybe have a default condition for 502 Bad Gateway and don't log so many lines, only say "Telegram reported error 502 Bad Gateway" |
I am getting this too. @hems is right it just ruins there server logs.
|
I was also getting it and i'm catching and suppressing it now.
|
nice catch @sedhuait, will implement that! |
References: * BR '502 Bad Gateway': yagop/node-telegram-bot-api#377
References: * BR '502 Bad Gateway': yagop/node-telegram-bot-api#377
Expected Behavior
today I opened my server error logs and i got tons (like 2 per second) of these errors:
in my code I wrote
` // error handler (avoid spam in console)
`
to prevent my log to get flooded but they didn't caught these errors.
Is there any way to catch these errors?
Probably the telegram servers were down and the bot tried to poll them.
thanks guys!!
The text was updated successfully, but these errors were encountered: