{"action":"created","issue":{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-mailer/issues/63","repository_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-mailer","labels_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-mailer/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-mailer/issues/63/comments","events_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-mailer/issues/63/events","html_url":"https://github.com/sensu-plugins/sensu-plugins-mailer/issues/63","id":282340046,"number":63,"title":"Mailer breaks when you specify an ERB template","user":{"login":"techietubby","id":7654329,"avatar_url":"https://avatars1.githubusercontent.com/u/7654329?v=4","gravatar_id":"","url":"https://api.github.com/users/techietubby","html_url":"https://github.com/techietubby","followers_url":"https://api.github.com/users/techietubby/followers","following_url":"https://api.github.com/users/techietubby/following{/other_user}","gists_url":"https://api.github.com/users/techietubby/gists{/gist_id}","starred_url":"https://api.github.com/users/techietubby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/techietubby/subscriptions","organizations_url":"https://api.github.com/users/techietubby/orgs","repos_url":"https://api.github.com/users/techietubby/repos","events_url":"https://api.github.com/users/techietubby/events{/privacy}","received_events_url":"https://api.github.com/users/techietubby/received_events","type":"User","site_admin":false},"labels":[{"id":707669992,"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-mailer/labels/Status:%20Awaiting%20Response","name":"Status: Awaiting Response","color":"fef2c0","default":false},{"id":707669962,"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-mailer/labels/Status:%20Needs%20Triage","name":"Status: Needs Triage","color":"fef2c0","default":false},{"id":707669986,"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-mailer/labels/Type:%20Bug","name":"Type: Bug","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-12-15T07:19:30Z","updated_at":"2017-12-15T08:44:02Z","closed_at":null,"author_association":"NONE","body":"My email template was working until recently when I upgraded my plugins to the latest versions:\r\n\r\nmail (2.7.0, 2.6.3)\r\nmailgun-ruby (1.1.8, 1.0.3)\r\nsensu-plugins-mailer (2.0.0)\r\n\r\nNow if I try to specify an ERB file I see these errors in the log and get no mail:\r\n\r\n cat /etc/sensu/conf.d/handlers/mailer.json | /opt/sensu/embedded/bin/handler-mailer.rb\r\nwarning: event filtering in sensu-plugin is deprecated, see http://bit.ly/sensu-plugin\r\n/opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-1.4.5/lib/sensu-handler.rb:202:in `+': no implicit conversion of nil into String (TypeError)\r\n        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-1.4.5/lib/sensu-handler.rb:202:in `filter_silenced'\r\n        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-1.4.5/lib/sensu-handler.rb:36:in `filter'\r\n        from /opt/sensu/embedded/lib/ruby/gems/2.4.0/gems/sensu-plugin-1.4.5/lib/sensu-handler.rb:98:in `block in <class:Handler>'"},"comment":{"url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-mailer/issues/comments/351947176","html_url":"https://github.com/sensu-plugins/sensu-plugins-mailer/issues/63#issuecomment-351947176","issue_url":"https://api.github.com/repos/sensu-plugins/sensu-plugins-mailer/issues/63","id":351947176,"user":{"login":"majormoses","id":3145127,"avatar_url":"https://avatars3.githubusercontent.com/u/3145127?v=4","gravatar_id":"","url":"https://api.github.com/users/majormoses","html_url":"https://github.com/majormoses","followers_url":"https://api.github.com/users/majormoses/followers","following_url":"https://api.github.com/users/majormoses/following{/other_user}","gists_url":"https://api.github.com/users/majormoses/gists{/gist_id}","starred_url":"https://api.github.com/users/majormoses/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/majormoses/subscriptions","organizations_url":"https://api.github.com/users/majormoses/orgs","repos_url":"https://api.github.com/users/majormoses/repos","events_url":"https://api.github.com/users/majormoses/events{/privacy}","received_events_url":"https://api.github.com/users/majormoses/received_events","type":"User","site_admin":false},"created_at":"2017-12-15T08:44:02Z","updated_at":"2017-12-15T08:44:02Z","author_association":"OWNER","body":"> `cat /etc/sensu/conf.d/handlers/mailer.json | /opt/sensu/embedded/bin/handler-mailer.rb`\r\n\r\nThis is not really a valid test, you need to cat an example event and then pipe that to it. You can specify via an ENV var the config dirs like this `SENSU_CONFIG_FILES=$PATH_TO_SENU_DIR cat $PATH_TO_EVENT | $PATH_TO_HANDLER`"}}
{"actor":{"display_login":"majormoses"}}