{"action":"created","issue":{"url":"https://api.github.com/repos/RocketChat/hubot-rocketchat/issues/115","repository_url":"https://api.github.com/repos/RocketChat/hubot-rocketchat","labels_url":"https://api.github.com/repos/RocketChat/hubot-rocketchat/issues/115/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/hubot-rocketchat/issues/115/comments","events_url":"https://api.github.com/repos/RocketChat/hubot-rocketchat/issues/115/events","html_url":"https://github.com/RocketChat/hubot-rocketchat/issues/115","id":153100752,"number":115,"title":"Hubot ROCKETCHAT_ROOM behaviour changed between RC 0.27 and 0.29","user":{"login":"rebeld","id":329962,"avatar_url":"https://avatars.githubusercontent.com/u/329962?v=3","gravatar_id":"","url":"https://api.github.com/users/rebeld","html_url":"https://github.com/rebeld","followers_url":"https://api.github.com/users/rebeld/followers","following_url":"https://api.github.com/users/rebeld/following{/other_user}","gists_url":"https://api.github.com/users/rebeld/gists{/gist_id}","starred_url":"https://api.github.com/users/rebeld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebeld/subscriptions","organizations_url":"https://api.github.com/users/rebeld/orgs","repos_url":"https://api.github.com/users/rebeld/repos","events_url":"https://api.github.com/users/rebeld/events{/privacy}","received_events_url":"https://api.github.com/users/rebeld/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-04T19:56:07Z","updated_at":"2016-05-26T03:15:29Z","closed_at":null,"body":"Rocket Chat Version: 0.29.\r\n\r\nWith RC 0.27, hubot would connect properly, with 0.29 it wouldn't.\r\n\r\nThe hubot error:\r\n\r\n```[Wed May 04 2016 15:55:27 GMT+0000 (UTC)] INFO Starting Rocketchat adapter...\r\n[Wed May 04 2016 15:55:27 GMT+0000 (UTC)] INFO Once connected to rooms I will respond to the name: Servo\r\n[Wed May 04 2016 15:55:27 GMT+0000 (UTC)] INFO Connecting To: nn.nn.nn.nn:3000\r\n[Wed May 04 2016 15:55:27 GMT+0000 (UTC)] INFO Successfully connected!\r\n[Wed May 04 2016 15:55:27 GMT+0000 (UTC)] INFO 'GENERAL'\r\n[Wed May 04 2016 15:55:27 GMT+0000 (UTC)] INFO Logging In\r\n[Wed May 04 2016 15:55:28 GMT+0000 (UTC)] INFO Successfully Logged In\r\n[Wed May 04 2016 15:55:28 GMT+0000 (UTC)] INFO Looking up Room ID for: 'GENERAL'\r\n[Wed May 04 2016 15:55:28 GMT+0000 (UTC)] ERROR Unable to get room id: {\"error\":500,\"reason\":\"Internal server error\",\"message\":\"Internal server error [500]\",\"errorType\":\"Meteor.Error\"} Reason: Internal server error\r\n[Wed May 04 2016 15:55:28 GMT+0000 (UTC)] ERROR {\"error\":500,\"reason\":\"Internal server error\",\"message\":\"Internal server error [500]\",\"errorType\":\"Meteor.Error\"}\r\n[Wed May 04 2016 15:55:28 GMT+0000 (UTC)] ERROR Unable to complete setup. See https://github.com/RocketChat/hubot-rocketchat for more info.```\r\n\r\nThe RC error:\r\n\r\n```Exception while invoking method 'getRoomIdByNameOrId' TypeError: Cannot read property 'usernames' of undefined\r\n    at [object Object].Meteor.methods.getRoomIdByNameOrId (server/methods/getRoomIdByNameOrId.coffee:6:10)\r\n    at [object Object].methodsMap.(anonymous function) (server/lib/debug.js:23:26)\r\n    at maybeAuditArgumentChecks (livedata_server.js:1698:12)\r\n    at livedata_server.js:708:19\r\n    at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)\r\n    at livedata_server.js:706:40\r\n    at [object Object]._.extend.withValue (packages/meteor/dynamics_nodejs.js:56:1)\r\n    at livedata_server.js:704:46\r\n    at tryCallTwo (/app/bundle/programs/server/npm/promise/node_modules/meteor-promise/node_modules/promise/lib/core.js:45:5)\r\n    at doResolve (/app/bundle/programs/server/npm/promise/node_modules/meteor-promise/node_modules/promise/lib/core.js:171:13)```\r\n\r\nOur configuration hasn't changed in some time. We have RC running with a connect hubot deployed with docker. The environment vars had `- ROCKETCHAT_ROOM='GENERAL'` though our room with the _id of 'GENERAL' is not named 'General'. Commenting out that env var allows hubot to connect again. \r\n\r\n```[Wed May 04 2016 19:27:32 GMT+0000 (UTC)] INFO Starting Rocketchat adapter...\r\n[Wed May 04 2016 19:27:32 GMT+0000 (UTC)] INFO Once connected to rooms I will respond to the name: Servo\r\n[Wed May 04 2016 19:27:32 GMT+0000 (UTC)] WARNING No services ROCKETCHAT_ROOM provided to Hubot, using GENERAL\r\n[Wed May 04 2016 19:27:32 GMT+0000 (UTC)] INFO Connecting To: nn.nn.nn.nn:3000\r\n[Wed May 04 2016 19:27:32 GMT+0000 (UTC)] INFO Successfully connected!\r\n[Wed May 04 2016 19:27:32 GMT+0000 (UTC)] INFO GENERAL\r\n[Wed May 04 2016 19:27:32 GMT+0000 (UTC)] INFO Logging In\r\n[Wed May 04 2016 19:27:32 GMT+0000 (UTC)] INFO Successfully Logged In\r\n[Wed May 04 2016 19:27:32 GMT+0000 (UTC)] INFO Looking up Room ID for: GENERAL\r\n[Wed May 04 2016 19:27:33 GMT+0000 (UTC)] INFO Joining Room: GENERAL\r\n[Wed May 04 2016 19:27:33 GMT+0000 (UTC)] INFO rid:  [ 'GENERAL' ]\r\n[Wed May 04 2016 19:27:33 GMT+0000 (UTC)] INFO All rooms joined.\r\n[Wed May 04 2016 19:27:33 GMT+0000 (UTC)] INFO Successfully joined room: GENERAL\r\n[Wed May 04 2016 19:27:33 GMT+0000 (UTC)] INFO Preparing Meteor Subscriptions..\r\n[Wed May 04 2016 19:27:33 GMT+0000 (UTC)] INFO Subscribing to Room: GENERAL\r\n[Wed May 04 2016 19:27:33 GMT+0000 (UTC)] INFO All subscriptions ready.\r\n[Wed May 04 2016 19:27:33 GMT+0000 (UTC)] INFO Successfully subscribed to room: GENERAL\r\n[Wed May 04 2016 19:27:33 GMT+0000 (UTC)] INFO Setting up reactive message list...```"},"comment":{"url":"https://api.github.com/repos/RocketChat/hubot-rocketchat/issues/comments/221767128","html_url":"https://github.com/RocketChat/hubot-rocketchat/issues/115#issuecomment-221767128","issue_url":"https://api.github.com/repos/RocketChat/hubot-rocketchat/issues/115","id":221767128,"user":{"login":"tennix","id":7932127,"avatar_url":"https://avatars.githubusercontent.com/u/7932127?v=3","gravatar_id":"","url":"https://api.github.com/users/tennix","html_url":"https://github.com/tennix","followers_url":"https://api.github.com/users/tennix/followers","following_url":"https://api.github.com/users/tennix/following{/other_user}","gists_url":"https://api.github.com/users/tennix/gists{/gist_id}","starred_url":"https://api.github.com/users/tennix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tennix/subscriptions","organizations_url":"https://api.github.com/users/tennix/orgs","repos_url":"https://api.github.com/users/tennix/repos","events_url":"https://api.github.com/users/tennix/events{/privacy}","received_events_url":"https://api.github.com/users/tennix/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T03:15:29Z","updated_at":"2016-05-26T03:15:29Z","body":"Simply remove `ROCKETCHAT_ROOM` env setting in docker-compose make hubot work again"}}
{"actor":{"display_login":"tennix"}}