{"action":"created","issue":{"url":"https://api.github.com/repos/robertklep/nefit-easy-core/issues/14","repository_url":"https://api.github.com/repos/robertklep/nefit-easy-core","labels_url":"https://api.github.com/repos/robertklep/nefit-easy-core/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/robertklep/nefit-easy-core/issues/14/comments","events_url":"https://api.github.com/repos/robertklep/nefit-easy-core/issues/14/events","html_url":"https://github.com/robertklep/nefit-easy-core/issues/14","id":328720532,"node_id":"MDU6SXNzdWUzMjg3MjA1MzI=","number":14,"title":"UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14663): TypeError: Cannot read property 'write' of null","user":{"login":"koenkooi","id":259525,"node_id":"MDQ6VXNlcjI1OTUyNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/259525?v=4","gravatar_id":"","url":"https://api.github.com/users/koenkooi","html_url":"https://github.com/koenkooi","followers_url":"https://api.github.com/users/koenkooi/followers","following_url":"https://api.github.com/users/koenkooi/following{/other_user}","gists_url":"https://api.github.com/users/koenkooi/gists{/gist_id}","starred_url":"https://api.github.com/users/koenkooi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koenkooi/subscriptions","organizations_url":"https://api.github.com/users/koenkooi/orgs","repos_url":"https://api.github.com/users/koenkooi/repos","events_url":"https://api.github.com/users/koenkooi/events{/privacy}","received_events_url":"https://api.github.com/users/koenkooi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-02T06:58:11Z","updated_at":"2018-06-03T09:49:02Z","closed_at":null,"author_association":"NONE","body":"After updating to get SCRAM-SHA1 and updating node to 8.9.4 I'm getting errors like the one below:\r\n\r\n```\r\nJun 02 08:50:19 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14582): TypeError: Cannot read property 'write' of null\r\nJun 02 08:50:49 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14584): TypeError: Cannot read property 'write' of null\r\nJun 02 08:50:55 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14586): TypeError: Cannot read property 'write' of null\r\nJun 02 08:50:57 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14588): TypeError: Cannot read property 'write' of null\r\nJun 02 08:50:59 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14590): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:01 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14592): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:03 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14594): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:05 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14596): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:07 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14598): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:09 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14600): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:11 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14602): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:13 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14604): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:15 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14606): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:17 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14608): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:19 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14610): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:19 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14612): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:21 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14614): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:23 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14616): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:25 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14618): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:27 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14620): TypeError: Cannot read property 'write' of null\r\nJun 02 08:51:29 solar easy-server[18668]: Error: MAX_RETRIES_REACHED\r\nJun 02 08:51:29 solar easy-server[18668]:     at queueMessage.catch.e (/usr/lib/node_modules/nefit-easy-http-server/node_modules/nefit-easy-core/lib/index.js:199:51)\r\nJun 02 08:51:29 solar easy-server[18668]:     at <anonymous>\r\nJun 02 08:51:29 solar easy-server[18668]: 172.20.0.66 - - [02/Jun/2018:06:51:29 +0000] \"GET /bridge/ecus/rrc/uiStatus HTTP/1.1\" 500 169 \"-\" \"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/602.38 (KHTML, like Gecko) Chrome/55.0.51548.0 Safari/602.37\"\r\nJun 02 08:51:49 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14623): TypeError: Cannot read property 'write' of null\r\nJun 02 08:52:19 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14625): TypeError: Cannot read property 'write' of null\r\nJun 02 08:52:49 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14627): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:00 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14629): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:02 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14631): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:04 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14633): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:06 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14635): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:08 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14637): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:10 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14639): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:12 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14641): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:14 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14643): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:16 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14645): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:18 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14647): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:19 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14649): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:20 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14651): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:22 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14653): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:24 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14655): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:26 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14657): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:28 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14659): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:30 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14661): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:32 solar easy-server[18668]: (node:18668) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 14663): TypeError: Cannot read property 'write' of null\r\nJun 02 08:53:34 solar easy-server[18668]: Error: MAX_RETRIES_REACHED\r\nJun 02 08:53:34 solar easy-server[18668]:     at queueMessage.catch.e (/usr/lib/node_modules/nefit-easy-http-server/node_modules/nefit-easy-core/lib/index.js:199:51)\r\nJun 02 08:53:34 solar easy-server[18668]:     at <anonymous>\r\nJun 02 08:53:34 solar easy-server[18668]: 172.20.0.66 - - [02/Jun/2018:06:53:34 +0000] \"GET /bridge/ecus/rrc/uiStatus HTTP/1.1\" 500 169 \"-\" \"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/602.38 (KHTML, like Gecko) Chrome/55.0.51548.0 Safari/602.37\"\r\n```\r\n\r\nRestarting the server makes it work for about a day:\r\n```\r\nJun 02 08:54:13 solar systemd[1]: Stopping Nefit Easy http bridge...\r\nJun 02 08:54:13 solar systemd[1]: Stopped Nefit Easy http bridge.\r\nJun 02 08:54:13 solar systemd[1]: Started Nefit Easy http bridge.\r\nJun 02 08:54:27 solar easy-server[4874]: HTTP server listening on http://0.0.0.0:3000\r\nJun 02 08:55:04 solar easy-server[4874]: 172.20.0.66 - - [02/Jun/2018:06:55:04 +0000] \"GET /bridge/ecus/rrc/uiStatus HTTP/1.1\" 200 496 \"-\" \"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/602.38 (KHTML, like Gecko) Chrome/55.0.51548.0 Safari/602.37\"\r\n```"},"comment":{"url":"https://api.github.com/repos/robertklep/nefit-easy-core/issues/comments/394150223","html_url":"https://github.com/robertklep/nefit-easy-core/issues/14#issuecomment-394150223","issue_url":"https://api.github.com/repos/robertklep/nefit-easy-core/issues/14","id":394150223,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDE1MDIyMw==","user":{"login":"robertklep","id":1190916,"node_id":"MDQ6VXNlcjExOTA5MTY=","avatar_url":"https://avatars0.githubusercontent.com/u/1190916?v=4","gravatar_id":"","url":"https://api.github.com/users/robertklep","html_url":"https://github.com/robertklep","followers_url":"https://api.github.com/users/robertklep/followers","following_url":"https://api.github.com/users/robertklep/following{/other_user}","gists_url":"https://api.github.com/users/robertklep/gists{/gist_id}","starred_url":"https://api.github.com/users/robertklep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robertklep/subscriptions","organizations_url":"https://api.github.com/users/robertklep/orgs","repos_url":"https://api.github.com/users/robertklep/repos","events_url":"https://api.github.com/users/robertklep/events{/privacy}","received_events_url":"https://api.github.com/users/robertklep/received_events","type":"User","site_admin":false},"created_at":"2018-06-03T09:49:02Z","updated_at":"2018-06-03T09:49:02Z","author_association":"OWNER","body":"I have a possible fix, if you're willing to try it:\r\n```\r\nnpm i robertklep/nefit-easy-core -g\r\n```\r\n\r\nThis updates the `nefit-easy-core` package (which is a dependency of the server) to make it more robust when the connection gets lost.\r\n\r\nIf it works okay for you (I suggest running it for at least a day; I don't run the server myself, but I'm testing it in another project), let me know and I'll do a proper release."}}
{"actor":{"display_login":"robertklep"}}