{"action":"closed","issue":{"url":"https://api.github.com/repos/zendesk/ruby-kafka/issues/305","repository_url":"https://api.github.com/repos/zendesk/ruby-kafka","labels_url":"https://api.github.com/repos/zendesk/ruby-kafka/issues/305/labels{/name}","comments_url":"https://api.github.com/repos/zendesk/ruby-kafka/issues/305/comments","events_url":"https://api.github.com/repos/zendesk/ruby-kafka/issues/305/events","html_url":"https://github.com/zendesk/ruby-kafka/issues/305","id":196083877,"number":305,"title":"Handle Kafka server errors in the producer","user":{"login":"Nucc","id":327855,"avatar_url":"https://avatars.githubusercontent.com/u/327855?v=3","gravatar_id":"","url":"https://api.github.com/users/Nucc","html_url":"https://github.com/Nucc","followers_url":"https://api.github.com/users/Nucc/followers","following_url":"https://api.github.com/users/Nucc/following{/other_user}","gists_url":"https://api.github.com/users/Nucc/gists{/gist_id}","starred_url":"https://api.github.com/users/Nucc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nucc/subscriptions","organizations_url":"https://api.github.com/users/Nucc/orgs","repos_url":"https://api.github.com/users/Nucc/repos","events_url":"https://api.github.com/users/Nucc/events{/privacy}","received_events_url":"https://api.github.com/users/Nucc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-16T15:27:00Z","updated_at":"2016-12-20T14:15:11Z","closed_at":"2016-12-20T14:15:11Z","body":"Is there any way to handle error messages on the producer side?\r\n\r\nI was thinking on the possible approach, how do you like this way?\r\n\r\n```\r\n$kafka_producer.produce(message, topic: 'user_actions').onError do |error_type, message|\r\n  error_handler\r\n  return false # don't retry\r\nend\r\n```\r\n\r\nThanks."}}
{"actor":{"display_login":"dasch"}}