payload: {"action":"published","release":{"url":"https://api.github.com/repos/rapid7/komand-plugin-sdk-python/releases/18248077","assets_url":"https://api.github.com/repos/rapid7/komand-plugin-sdk-python/releases/18248077/assets","upload_url":"https://uploads.github.com/repos/rapid7/komand-plugin-sdk-python/releases/18248077/assets{?name,label}","html_url":"https://github.com/rapid7/komand-plugin-sdk-python/releases/tag/3.2.0","id":18248077,"node_id":"MDc6UmVsZWFzZTE4MjQ4MDc3","tag_name":"3.2.0","target_commitish":"master","name":"Update: New exception presets, and optional data argument","draft":false,"author":{"login":"jschipp-r7","id":30870727,"node_id":"MDQ6VXNlcjMwODcwNzI3","avatar_url":"https://avatars0.githubusercontent.com/u/30870727?v=4","gravatar_id":"","url":"https://api.github.com/users/jschipp-r7","html_url":"https://github.com/jschipp-r7","followers_url":"https://api.github.com/users/jschipp-r7/followers","following_url":"https://api.github.com/users/jschipp-r7/following{/other_user}","gists_url":"https://api.github.com/users/jschipp-r7/gists{/gist_id}","starred_url":"https://api.github.com/users/jschipp-r7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jschipp-r7/subscriptions","organizations_url":"https://api.github.com/users/jschipp-r7/orgs","repos_url":"https://api.github.com/users/jschipp-r7/repos","events_url":"https://api.github.com/users/jschipp-r7/events{/privacy}","received_events_url":"https://api.github.com/users/jschipp-r7/received_events","type":"User","site_admin":false},"prerelease":false,"created_at":"2019-06-26T18:08:27Z","published_at":"2019-06-26T19:49:53Z","assets":[],"tarball_url":"https://api.github.com/repos/rapid7/komand-plugin-sdk-python/tarball/3.2.0","zipball_url":"https://api.github.com/repos/rapid7/komand-plugin-sdk-python/zipball/3.2.0","body":"## Description\r\n\r\n* Add new presets: `UNKNOWN`, `BASE64_ENCODE`, `BASE64_DECODE`, `INVALID_JSON`\r\n* Add an optional `data` parameter for formatting response output\r\n\r\n## Tests\r\n\r\n```\r\nmsg = 'blah'\r\nraise PluginException(preset=PluginException.Preset.BASE64_ENCODE, data=msg)\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/plugin.py\", line 311, in handle_step\r\n    output = self.start_step(input_message['body'], 'action', logger, log_stream, is_test, is_debug)\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/plugin.py\", line 413, in start_step\r\n    output = func(params)\r\n  File \"build/bdist.linux-x86_64/egg/icon_crap/actions/upper/action.py\", line 20, in run\r\n    data=msg\r\nPluginException: An error occurred during plugin execution!\r\n\r\nUnable to base64 encode content due to incorrect padding length. This is likely a programming error, if the issue persists please contact support. Response was: blah\r\n```\r\n\r\n```\r\nmsg = 'blah'\r\nraise PluginException(preset=PluginException.Preset.BASE64_DECODE, data=msg)\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/icon_crap\", line 4, in <module>\r\n    __import__('pkg_resources').run_script('crap-rapid7-plugin==1.0.0', 'icon_crap')\r\n  File \"/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 666, in run_script\r\n    self.require(requires)[0].run_script(script_name, ns)\r\n  File \"/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1460, in run_script\r\n    exec(script_code, namespace, namespace)\r\n  File \"/usr/local/lib/python2.7/site-packages/crap_rapid7_plugin-1.0.0-py2.7.egg/EGG-INFO/scripts/icon_crap\", line 38, in <module>\r\n\r\n  File \"/usr/local/lib/python2.7/site-packages/crap_rapid7_plugin-1.0.0-py2.7.egg/EGG-INFO/scripts/icon_crap\", line 34, in main\r\n\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/cli.py\", line 188, in run\r\n    args.func(args)\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/cli.py\", line 138, in run_step\r\n    return self.execute_step(is_test=False, is_debug=args.debug)\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/cli.py\", line 135, in execute_step\r\n    raise exception\r\nkomand.exceptions.LoggedException: An error occurred during plugin execution!\r\n\r\nUnable to base64 decode content due to incorrect padding length. This is likely a programming error, if the issue persists please contact support. Response was: blah\r\n```\r\n\r\n```\r\nmsg = 'Unknown data'\r\nraise PluginException(preset=PluginException.Preset.UNKNOWN, data=msg)\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/icon_crap\", line 4, in <module>\r\n    __import__('pkg_resources').run_script('crap-rapid7-plugin==1.0.0', 'icon_crap')\r\n  File \"/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 666, in run_script\r\n    self.require(requires)[0].run_script(script_name, ns)\r\n  File \"/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1460, in run_script\r\n    exec(script_code, namespace, namespace)\r\n  File \"/usr/local/lib/python2.7/site-packages/crap_rapid7_plugin-1.0.0-py2.7.egg/EGG-INFO/scripts/icon_crap\", line 38, in <module>\r\n\r\n  File \"/usr/local/lib/python2.7/site-packages/crap_rapid7_plugin-1.0.0-py2.7.egg/EGG-INFO/scripts/icon_crap\", line 34, in main\r\n\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/cli.py\", line 188, in run\r\n    args.func(args)\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/cli.py\", line 138, in run_step\r\n    return self.execute_step(is_test=False, is_debug=args.debug)\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/cli.py\", line 135, in execute_step\r\n    raise exception\r\nkomand.exceptions.LoggedException: An error occurred during plugin execution!\r\n\r\nSomething unexpected occurred. Check the logs and if the issue persists please contact support. Response was: Unknown data\r\n```\r\n\r\n```\r\nmsg = '{ \\\"asdf\\\": asdf }'\r\nraise PluginException(preset=PluginException.Preset.UNKNOWN, data=msg)\r\n\r\nTraceback (most recent call last):\r\n  File \"/usr/local/bin/icon_crap\", line 4, in <module>\r\n    __import__('pkg_resources').run_script('crap-rapid7-plugin==1.0.0', 'icon_crap')\r\n  File \"/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 666, in run_script\r\n    self.require(requires)[0].run_script(script_name, ns)\r\n  File \"/usr/local/lib/python2.7/site-packages/pkg_resources/__init__.py\", line 1460, in run_script\r\n    exec(script_code, namespace, namespace)\r\n  File \"/usr/local/lib/python2.7/site-packages/crap_rapid7_plugin-1.0.0-py2.7.egg/EGG-INFO/scripts/icon_crap\", line 38, in <module>\r\n\r\n  File \"/usr/local/lib/python2.7/site-packages/crap_rapid7_plugin-1.0.0-py2.7.egg/EGG-INFO/scripts/icon_crap\", line 34, in main\r\n\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/cli.py\", line 188, in run\r\n    args.func(args)\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/cli.py\", line 138, in run_step\r\n    return self.execute_step(is_test=False, is_debug=args.debug)\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/cli.py\", line 135, in execute_step\r\n    raise exception\r\nkomand.exceptions.LoggedException: An error occurred during plugin execution!\r\n\r\nReceived an unexpected response from the server. (non-JSON or no response was received). Response was: { \"asdf\": asdf }\r\n```\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/plugin.py\", line 311, in handle_step\r\n    output = self.start_step(input_message['body'], 'action', logger, log_stream, is_test, is_debug)\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/plugin.py\", line 413, in start_step\r\n    output = func(params)\r\n  File \"build/bdist.linux-x86_64/egg/icon_crap/actions/lower/action.py\", line 21, in run\r\n    data=msg\r\nPluginException: An error occurred during plugin execution!\r\n\r\nSomething caused this. I don't have assistance but I have data! Response was: Blah\r\n```\r\n\r\n* Without `data`\r\n\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/plugin.py\", line 311, in handle_step\r\n    output = self.start_step(input_message['body'], 'action', logger, log_stream, is_test, is_debug)\r\n  File \"/usr/local/lib/python2.7/site-packages/komand-1.0.1-py2.7.egg/komand/plugin.py\", line 413, in start_step\r\n    output = func(params)\r\n  File \"build/bdist.linux-x86_64/egg/icon_crap/actions/split_to_list/action.py\", line 19, in run\r\n    assistance=\"I don't have assistance\"\r\nPluginException: An error occurred during plugin execution!\r\n\r\nSomething caused this. I don't have assistance\r\n```"}}
other: {"actor":{"display_login":"jschipp-r7"}}