{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4387","repository_url":"https://api.github.com/repos/RocketChat/Rocket.Chat","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4387/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4387/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4387/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/4387","id":178401493,"number":4387,"title":"Rocket crash with TypeError: host.endsWith is not a function","user":{"login":"michaudg","id":674170,"avatar_url":"https://avatars.githubusercontent.com/u/674170?v=3","gravatar_id":"","url":"https://api.github.com/users/michaudg","html_url":"https://github.com/michaudg","followers_url":"https://api.github.com/users/michaudg/followers","following_url":"https://api.github.com/users/michaudg/following{/other_user}","gists_url":"https://api.github.com/users/michaudg/gists{/gist_id}","starred_url":"https://api.github.com/users/michaudg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaudg/subscriptions","organizations_url":"https://api.github.com/users/michaudg/orgs","repos_url":"https://api.github.com/users/michaudg/repos","events_url":"https://api.github.com/users/michaudg/events{/privacy}","received_events_url":"https://api.github.com/users/michaudg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/type:%20bug","name":"type: bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-09-21T16:42:31Z","updated_at":"2016-09-23T10:59:15Z","closed_at":null,"body":"Your Rocket.Chat version: 0.40 with Node 4.5\r\n\r\nRocket crash few seconds after startup with this error message : \r\n\r\nUpdating process.env.MAIL_URL\r\nufs: store created at \r\n{\"line\":\"114\",\"file\":\"migrations.js\",\"message\":\"Migrations: Not migrating, already at version 61\",\"time\":{\"$date\":1474475977793},\"level\":\"info\"}\r\nUpdating process.env.MAIL_URL\r\nUsing GridFS for custom emoji storage\r\nUsing GridFS for Avatar storage\r\n➔ System ➔ startup\r\n➔ +---------------------------------------------+\r\n➔ |                SERVER RUNNING               |\r\n➔ +---------------------------------------------+\r\n➔ |                                             |\r\n➔ |       Version: 0.40.0                       |\r\n➔ |  Process Port: 3000                         |\r\n➔ |      Site URL: https://blah.blah.blah  |\r\n➔ |                                             |\r\n➔ +---------------------------------------------+\r\ntls.js:132\r\n    if (!host || !host.endsWith('.')) host += '.';\r\n                       ^\r\n\r\nTypeError: host.endsWith is not a function\r\n    at Object.checkServerIdentity (tls.js:132:24)\r\n    at TLSSocket.<anonymous> (_tls_wrap.js:1028:29)\r\n    at emitNone (events.js:67:13)\r\n    at TLSSocket.emit (events.js:166:7)\r\n    at TLSSocket._init.ssl.onclienthello.ssl.oncertcb.TLSSocket._finishInit (_tls_wrap.js:586:8)\r\n    at TLSWrap.ssl.onclienthello.ssl.oncertcb.ssl.onnewsession.ssl.onhandshakedone (_tls_wrap.js:428:38)\r\n"},"comment":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/comments/249162467","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/4387#issuecomment-249162467","issue_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/4387","id":249162467,"user":{"login":"didierm","id":989004,"avatar_url":"https://avatars.githubusercontent.com/u/989004?v=3","gravatar_id":"","url":"https://api.github.com/users/didierm","html_url":"https://github.com/didierm","followers_url":"https://api.github.com/users/didierm/followers","following_url":"https://api.github.com/users/didierm/following{/other_user}","gists_url":"https://api.github.com/users/didierm/gists{/gist_id}","starred_url":"https://api.github.com/users/didierm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/didierm/subscriptions","organizations_url":"https://api.github.com/users/didierm/orgs","repos_url":"https://api.github.com/users/didierm/repos","events_url":"https://api.github.com/users/didierm/events{/privacy}","received_events_url":"https://api.github.com/users/didierm/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T10:59:15Z","updated_at":"2016-09-23T10:59:15Z","body":"Disabling LDAP (by reassigning the LDAP server ip to 127.0.0.1 in /etc/hosts) allows us to login with the RC admin credentials.\r\n"}}
{"actor":{"display_login":"didierm"}}