{"action":"created","issue":{"url":"https://api.github.com/repos/zerobias/telegram-mtproto/issues/131","repository_url":"https://api.github.com/repos/zerobias/telegram-mtproto","labels_url":"https://api.github.com/repos/zerobias/telegram-mtproto/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/zerobias/telegram-mtproto/issues/131/comments","events_url":"https://api.github.com/repos/zerobias/telegram-mtproto/issues/131/events","html_url":"https://github.com/zerobias/telegram-mtproto/issues/131","id":282367360,"number":131,"title":"Encrypted request failed { Error: MT[406] NETWORK_BAD_REQUEST","user":{"login":"marcelo-mason","id":577340,"avatar_url":"https://avatars0.githubusercontent.com/u/577340?v=4","gravatar_id":"","url":"https://api.github.com/users/marcelo-mason","html_url":"https://github.com/marcelo-mason","followers_url":"https://api.github.com/users/marcelo-mason/followers","following_url":"https://api.github.com/users/marcelo-mason/following{/other_user}","gists_url":"https://api.github.com/users/marcelo-mason/gists{/gist_id}","starred_url":"https://api.github.com/users/marcelo-mason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marcelo-mason/subscriptions","organizations_url":"https://api.github.com/users/marcelo-mason/orgs","repos_url":"https://api.github.com/users/marcelo-mason/repos","events_url":"https://api.github.com/users/marcelo-mason/events{/privacy}","received_events_url":"https://api.github.com/users/marcelo-mason/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-12-15T09:30:28Z","updated_at":"2018-05-22T15:44:58Z","closed_at":"2017-12-28T17:04:53Z","author_association":"NONE","body":"Every once in a while I get errors like these which crash my app.  Where can I catch these?\r\n\r\n```\r\nEncrypted request failed { Error: MT[406] NETWORK_BAD_REQUEST: http://149.154.175.50/apiw1\r\n    at NetworkerThread._ref20 (d:\\Projects\\SignalsSociety\\node_modules\\telegram-mtproto\\lib\\service\\networker\\index.js:1050:40)\r\n    at _ref20.throw (<anonymous>)\r\n    at step (d:\\Projects\\SignalsSociety\\node_modules\\telegram-mtproto\\lib\\service\\networker\\index.js:62:202)\r\n    at d:\\Projects\\SignalsSociety\\node_modules\\telegram-mtproto\\lib\\service\\networker\\index.js:62:424\r\n    at tryCatcher (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\util.js:16:23)\r\n    at Promise._settlePromiseFromHandler (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\promise.js:512:31)\r\n    at Promise._settlePromise (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\promise.js:569:18)\r\n    at Promise._settlePromise0 (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\promise.js:614:10)\r\n    at Promise._settlePromises (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\promise.js:689:18)\r\n    at Async._drainQueue (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\async.js:133:16)\r\n    at Async._drainQueues (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\async.js:143:10)\r\n    at Immediate.Async.drainQueues (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\async.js:17:14)\r\n    at runCallback (timers.js:781:20)\r\n    at tryOnImmediate (timers.js:743:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:714:5)\r\n  code: 406,\r\n  type: 'NETWORK_BAD_REQUEST',\r\n  originalError:\r\n   { Error: read ECONNRESET\r\n    at _errnoException (util.js:1019:11)\r\n    at TCP.onread (net.js:608:25)\r\n     code: 'ECONNRESET',\r\n     errno: 'ECONNRESET',\r\n     syscall: 'read',\r\n     config:\r\n      { adapter: [Function: httpAdapter],\r\n        transformRequest: [Object],\r\n        transformResponse: [Object],\r\n        timeout: 0,\r\n        xsrfCookieName: 'XSRF-TOKEN',\r\n        xsrfHeaderName: 'X-XSRF-TOKEN',\r\n        maxContentLength: -1,\r\n        validateStatus: [Function: validateStatus],\r\n        headers: [Object],\r\n        method: 'post',\r\n        responseType: 'arraybuffer',\r\n        url: 'http://149.154.175.50/apiw1',\r\n        data: ArrayBuffer { byteLength: 5256 } },\r\n     response: undefined } }\r\nUnhandled rejection Error: MT[406] NETWORK_BAD_REQUEST: http://149.154.175.50/apiw1\r\n    at NetworkerThread._ref20 (d:\\Projects\\SignalsSociety\\node_modules\\telegram-mtproto\\lib\\service\\networker\\index.js:1050:40)\r\n    at _ref20.throw (<anonymous>)\r\n    at step (d:\\Projects\\SignalsSociety\\node_modules\\telegram-mtproto\\lib\\service\\networker\\index.js:62:202)\r\n    at d:\\Projects\\SignalsSociety\\node_modules\\telegram-mtproto\\lib\\service\\networker\\index.js:62:424\r\n    at tryCatcher (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\util.js:16:23)\r\n    at Promise._settlePromiseFromHandler (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\promise.js:512:31)\r\n    at Promise._settlePromise (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\promise.js:569:18)\r\n    at Promise._settlePromise0 (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\promise.js:614:10)\r\n    at Promise._settlePromises (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\promise.js:689:18)\r\n    at Async._drainQueue (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\async.js:133:16)\r\n    at Async._drainQueues (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\async.js:143:10)\r\n    at Immediate.Async.drainQueues (d:\\Projects\\SignalsSociety\\node_modules\\bluebird\\js\\release\\async.js:17:14)\r\n    at runCallback (timers.js:781:20)\r\n    at tryOnImmediate (timers.js:743:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:714:5)\r\n\r\nUnhandled rejection undefined\r\n\r\nUnhandled rejection undefined\r\n\r\nUnhandled rejection undefined\r\n```"},"comment":{"url":"https://api.github.com/repos/zerobias/telegram-mtproto/issues/comments/391040394","html_url":"https://github.com/zerobias/telegram-mtproto/issues/131#issuecomment-391040394","issue_url":"https://api.github.com/repos/zerobias/telegram-mtproto/issues/131","id":391040394,"user":{"login":"iceflash","id":7057245,"avatar_url":"https://avatars1.githubusercontent.com/u/7057245?v=4","gravatar_id":"","url":"https://api.github.com/users/iceflash","html_url":"https://github.com/iceflash","followers_url":"https://api.github.com/users/iceflash/followers","following_url":"https://api.github.com/users/iceflash/following{/other_user}","gists_url":"https://api.github.com/users/iceflash/gists{/gist_id}","starred_url":"https://api.github.com/users/iceflash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iceflash/subscriptions","organizations_url":"https://api.github.com/users/iceflash/orgs","repos_url":"https://api.github.com/users/iceflash/repos","events_url":"https://api.github.com/users/iceflash/events{/privacy}","received_events_url":"https://api.github.com/users/iceflash/received_events","type":"User","site_admin":false},"created_at":"2018-05-22T15:44:58Z","updated_at":"2018-05-22T15:44:58Z","author_association":"NONE","body":"@KylinWu thx, i will take a look on it"}}
{"actor":{"display_login":"iceflash"}}