{"action":"created","issue":{"url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet/issues/277","repository_url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet","labels_url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet/issues/277/labels{/name}","comments_url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet/issues/277/comments","events_url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet/issues/277/events","html_url":"https://github.com/Azure/azure-event-hubs-dotnet/issues/277","id":323797507,"number":277,"title":"Feature request: MessageSizeExceededException should contain information on events which are too large","user":{"login":"erick-thompson","id":603724,"avatar_url":"https://avatars2.githubusercontent.com/u/603724?v=4","gravatar_id":"","url":"https://api.github.com/users/erick-thompson","html_url":"https://github.com/erick-thompson","followers_url":"https://api.github.com/users/erick-thompson/followers","following_url":"https://api.github.com/users/erick-thompson/following{/other_user}","gists_url":"https://api.github.com/users/erick-thompson/gists{/gist_id}","starred_url":"https://api.github.com/users/erick-thompson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erick-thompson/subscriptions","organizations_url":"https://api.github.com/users/erick-thompson/orgs","repos_url":"https://api.github.com/users/erick-thompson/repos","events_url":"https://api.github.com/users/erick-thompson/events{/privacy}","received_events_url":"https://api.github.com/users/erick-thompson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-05-16T21:39:50Z","updated_at":"2018-05-18T21:40:52Z","closed_at":null,"author_association":"NONE","body":"I have a system where callers can send batches of data, which get sent to EventHub using the SendAsync that accepts an IEnumerable<EventData>. When a user sends too much data, a MessageSizeExceededException is thrown, but this exception does not contain any way to correlate back to the individual EventData(s) that were too big. \r\n\r\nThe code uses the IEnumerable (i.e., the data flows from the caller into EventHub as an enumerable to improve performance), so I can't even inspect the passed in EventData, as by the time the exception occurs, the enumerable has already been enumerated. \r\n\r\nWhat would be perfect is if the exception contained the EventData(s) that were too large, or at least some information that allows a correlation. At the moment, I have to return \"one of your messages were too large\", which makes it harder to debug."},"comment":{"url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet/issues/comments/390339997","html_url":"https://github.com/Azure/azure-event-hubs-dotnet/issues/277#issuecomment-390339997","issue_url":"https://api.github.com/repos/Azure/azure-event-hubs-dotnet/issues/277","id":390339997,"user":{"login":"serkantkaraca","id":16924470,"avatar_url":"https://avatars1.githubusercontent.com/u/16924470?v=4","gravatar_id":"","url":"https://api.github.com/users/serkantkaraca","html_url":"https://github.com/serkantkaraca","followers_url":"https://api.github.com/users/serkantkaraca/followers","following_url":"https://api.github.com/users/serkantkaraca/following{/other_user}","gists_url":"https://api.github.com/users/serkantkaraca/gists{/gist_id}","starred_url":"https://api.github.com/users/serkantkaraca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/serkantkaraca/subscriptions","organizations_url":"https://api.github.com/users/serkantkaraca/orgs","repos_url":"https://api.github.com/users/serkantkaraca/repos","events_url":"https://api.github.com/users/serkantkaraca/events{/privacy}","received_events_url":"https://api.github.com/users/serkantkaraca/received_events","type":"User","site_admin":false},"created_at":"2018-05-18T21:40:52Z","updated_at":"2018-05-18T21:40:52Z","author_association":"MEMBER","body":"Closing"}}
{"actor":{"display_login":"serkantkaraca"}}