{"action":"closed","issue":{"url":"https://api.github.com/repos/gbin/err/issues/380","labels_url":"https://api.github.com/repos/gbin/err/issues/380/labels{/name}","comments_url":"https://api.github.com/repos/gbin/err/issues/380/comments","events_url":"https://api.github.com/repos/gbin/err/issues/380/events","html_url":"https://github.com/gbin/err/issues/380","id":88544628,"number":380,"title":"Slack logging stacktrace when user edits message","user":{"login":"LuckyHyena","id":9357119,"avatar_url":"https://avatars.githubusercontent.com/u/9357119?v=3","gravatar_id":"","url":"https://api.github.com/users/LuckyHyena","html_url":"https://github.com/LuckyHyena","followers_url":"https://api.github.com/users/LuckyHyena/followers","following_url":"https://api.github.com/users/LuckyHyena/following{/other_user}","gists_url":"https://api.github.com/users/LuckyHyena/gists{/gist_id}","starred_url":"https://api.github.com/users/LuckyHyena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LuckyHyena/subscriptions","organizations_url":"https://api.github.com/users/LuckyHyena/orgs","repos_url":"https://api.github.com/users/LuckyHyena/repos","events_url":"https://api.github.com/users/LuckyHyena/events{/privacy}","received_events_url":"https://api.github.com/users/LuckyHyena/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/gbin/err/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/gbin/err/labels/Slack","name":"Slack","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"gbin","id":975564,"avatar_url":"https://avatars.githubusercontent.com/u/975564?v=3","gravatar_id":"","url":"https://api.github.com/users/gbin","html_url":"https://github.com/gbin","followers_url":"https://api.github.com/users/gbin/followers","following_url":"https://api.github.com/users/gbin/following{/other_user}","gists_url":"https://api.github.com/users/gbin/gists{/gist_id}","starred_url":"https://api.github.com/users/gbin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gbin/subscriptions","organizations_url":"https://api.github.com/users/gbin/orgs","repos_url":"https://api.github.com/users/gbin/repos","events_url":"https://api.github.com/users/gbin/events{/privacy}","received_events_url":"https://api.github.com/users/gbin/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2015-06-15T21:23:30Z","updated_at":"2015-07-10T04:11:06Z","closed_at":"2015-07-10T04:11:06Z","body":"When a user edits a Slack message the RTM api sends an object with `'type': 'message', 'subtype': 'message_changed'`. Err tries to parse this as an ordinary message, and prints a stacktrace to the log. I haven't seen any other bad behavior caused by this, though.\r\n\r\n```\r\n16:05:53 DEBUG    errbot.backends.slack     Processing slack event: {'type': 'message', 'subtype': 'message_changed', 'channel': 'C0000000S', 'ts': '1434402356.000121', 'hidden': True, 'message': {'ts': '1434402337.000118', 'text': '<@U00000003>: redacted', 'type': 'message', 'edited': {'ts': '1434402356.000000', 'user': 'U0000000Z'}, 'user': 'U0000000Z'}, 'event_ts': '1434402356.048649'}\r\n16:05:53 DEBUG    errbot.backends.slack     Handling message from a public channel\r\n16:05:53 ERROR    errbot.backends.slack     message event handler raised an exception\r\nTraceback (most recent call last):\r\n  File \"/home/whiskeyriver/Code/err/errbot/backends/slack.py\", line 154, in serve_once\r\n    event_handler(message)\r\n  File \"/home/whiskeyriver/Code/err/errbot/backends/slack.py\", line 208, in _message_event_handler\r\n    msg = Message(event['text'], type_=message_type)\r\nKeyError: 'text'\r\n```"}}