{"action":"closed","issue":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/6371","repository_url":"https://api.github.com/repos/RocketChat/Rocket.Chat","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/6371/labels{/name}","comments_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/6371/comments","events_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/issues/6371/events","html_url":"https://github.com/RocketChat/Rocket.Chat/issues/6371","id":214631566,"number":6371,"title":"Outgoing webhook for room archived not working","user":{"login":"thecodemonkey82","id":26455487,"avatar_url":"https://avatars0.githubusercontent.com/u/26455487?v=3","gravatar_id":"","url":"https://api.github.com/users/thecodemonkey82","html_url":"https://github.com/thecodemonkey82","followers_url":"https://api.github.com/users/thecodemonkey82/followers","following_url":"https://api.github.com/users/thecodemonkey82/following{/other_user}","gists_url":"https://api.github.com/users/thecodemonkey82/gists{/gist_id}","starred_url":"https://api.github.com/users/thecodemonkey82/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecodemonkey82/subscriptions","organizations_url":"https://api.github.com/users/thecodemonkey82/orgs","repos_url":"https://api.github.com/users/thecodemonkey82/repos","events_url":"https://api.github.com/users/thecodemonkey82/events{/privacy}","received_events_url":"https://api.github.com/users/thecodemonkey82/received_events","type":"User","site_admin":false},"labels":[{"id":302217471,"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/feat:%20webhooks","name":"feat: webhooks","color":"207de5","default":false},{"id":213300653,"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/labels/type:%20bug","name":"type: bug","color":"fc2929","default":false}],"state":"closed","locked":false,"assignee":{"login":"graywolf336","id":850391,"avatar_url":"https://avatars2.githubusercontent.com/u/850391?v=3","gravatar_id":"","url":"https://api.github.com/users/graywolf336","html_url":"https://github.com/graywolf336","followers_url":"https://api.github.com/users/graywolf336/followers","following_url":"https://api.github.com/users/graywolf336/following{/other_user}","gists_url":"https://api.github.com/users/graywolf336/gists{/gist_id}","starred_url":"https://api.github.com/users/graywolf336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graywolf336/subscriptions","organizations_url":"https://api.github.com/users/graywolf336/orgs","repos_url":"https://api.github.com/users/graywolf336/repos","events_url":"https://api.github.com/users/graywolf336/events{/privacy}","received_events_url":"https://api.github.com/users/graywolf336/received_events","type":"User","site_admin":false},"assignees":[{"login":"graywolf336","id":850391,"avatar_url":"https://avatars2.githubusercontent.com/u/850391?v=3","gravatar_id":"","url":"https://api.github.com/users/graywolf336","html_url":"https://github.com/graywolf336","followers_url":"https://api.github.com/users/graywolf336/followers","following_url":"https://api.github.com/users/graywolf336/following{/other_user}","gists_url":"https://api.github.com/users/graywolf336/gists{/gist_id}","starred_url":"https://api.github.com/users/graywolf336/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graywolf336/subscriptions","organizations_url":"https://api.github.com/users/graywolf336/orgs","repos_url":"https://api.github.com/users/graywolf336/repos","events_url":"https://api.github.com/users/graywolf336/events{/privacy}","received_events_url":"https://api.github.com/users/graywolf336/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones/66","html_url":"https://github.com/RocketChat/Rocket.Chat/milestone/66","labels_url":"https://api.github.com/repos/RocketChat/Rocket.Chat/milestones/66/labels","id":2356620,"number":66,"title":"0.54.0","description":"","creator":{"login":"engelgabriel","id":1000217,"avatar_url":"https://avatars0.githubusercontent.com/u/1000217?v=3","gravatar_id":"","url":"https://api.github.com/users/engelgabriel","html_url":"https://github.com/engelgabriel","followers_url":"https://api.github.com/users/engelgabriel/followers","following_url":"https://api.github.com/users/engelgabriel/following{/other_user}","gists_url":"https://api.github.com/users/engelgabriel/gists{/gist_id}","starred_url":"https://api.github.com/users/engelgabriel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/engelgabriel/subscriptions","organizations_url":"https://api.github.com/users/engelgabriel/orgs","repos_url":"https://api.github.com/users/engelgabriel/repos","events_url":"https://api.github.com/users/engelgabriel/events{/privacy}","received_events_url":"https://api.github.com/users/engelgabriel/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":63,"state":"open","created_at":"2017-03-01T17:05:02Z","updated_at":"2017-03-21T16:04:53Z","due_on":"2017-03-13T07:00:00Z","closed_at":null},"comments":0,"created_at":"2017-03-16T08:38:47Z","updated_at":"2017-03-21T16:04:53Z","closed_at":"2017-03-21T16:04:53Z","body":"Hello!\r\n\r\nI've a problem with outgoing web hooks. It will not call the URL for the event roomArchvied (a hook for messages works fine).\r\n\r\nThe log says:\r\n```\r\n\u001B[34mI20170316-08:16:44.816(0) rocketchat_integrations rocketchat_integrations.js:447 \u001B[34mIntegrations ➔ Outgoing WebHook.debug Adding the integration test of the event roomArchived! \r\n\u001B[34mI20170316-08:16:44.817(0) rocketchat_integrations rocketchat_integrations.js:451 \u001B[34mIntegrations ➔ Outgoing WebHook.debug The integration doesnt rely on channels. \r\n```\r\n\r\nSo, the hook was added. But when I click archive in a room now, the following happens:\r\n\r\n```\r\n\u001B[34mI20170316-08:16:56.202(0) rocketchat_integrations rocketchat_integrations.js:1035 \u001B[34mIntegrations ➔ Outgoing WebHook.debug Execute Trigger: roomArchived \r\n\u001B[34mI20170316-08:16:56.204(0) rocketchat_integrations rocketchat_integrations.js:929 \u001B[34mIntegrations ➔ Outgoing WebHook.debug Got the event arguments for the event: roomArchived { event: 'roomArchived',   room:     { _id: 'yez5fcm7r7t4zQspb',      name: 'test233354',      t: 'c',      msgs: 1,      u: { _id: 'LFym4ATYWWDQgtNC9', username: 'dennis.pries' },      customFields: {},      ts: Tue Mar 14 2017 15:26:56 GMT+0000 (UTC),      ro: false,      sysMes: true,      _updatedAt: Thu Mar 16 2017 08:16:56 GMT+0000 (UTC),      lm: Tue Mar 14 2017 15:26:58 GMT+0000 (UTC),      archived: true,      meta:        { revision: 2,         created: 1489590651274,         version: 0,         updated: 1489652216194 },      '$loki': 2,      usernames: [ 'dennis.pries' ],      username: 'dennis.pries' },   user:     { _id: 'LFym4ATYWWDQgtNC9',      createdAt: Tue Mar 14 2017 14:30:13 GMT+0000 (UTC),      services: { password: [Object], email: [Object], resume: [Object] },      emails: [ [Object] ],      type: 'user',      status: 'online',      active: true,      name: 'Dennis Pries',      _updatedAt: Thu Mar 16 2017 08:16:21 GMT+0000 (UTC),      roles: [ 'admin', 'livechat-manager', 'livechat-agent' ],      lastLogin: Thu Mar 16 2017 08:16:21 GMT+0000 (UTC),      statusConnection: 'online',      utcOffset: 1,      username: 'dennis.pries',      statusLivechat: 'not-available',      operator: true,      livechatCount: 1,      language: 'en',      settings: { preferences: [Object] } } } \r\n\u001B[34mI20170316-08:16:56.205(0) rocketchat_integrations rocketchat_integrations.js:1048 \u001B[34mIntegrations ➔ Outgoing WebHook.debug Starting search for triggers for the room: yez5fcm7r7t4zQspb \r\n\u001B[34mI20170316-08:16:56.206(0) rocketchat_integrations rocketchat_integrations.js:1246 \u001B[34mIntegrations ➔ Outgoing WebHook.debug Found 0 to iterate over and see if the match the event. \r\n```\r\n\r\nMaybe a bug? Must this not search for triggers for room __any?\r\n\r\nRocket.Chat Version: 0.53.0\r\nRunning Instances: 1\r\nDB Replicaset OpLog: Enabled\r\nNode Version: v4.7.3\r\n"}}
{"actor":{"display_login":"engelgabriel"}}