ValueError: EventDataBatch has reached its size limit: 1048576
-
each message can be up to 1MB only in Azure Event Hub, see doc docs.microsoft.com/en-us/azure/event-hubs/event-hubs-quotas– Anand SowmithiranJan 19 at 16:59
-
It's important to note that more than the event body is counted in the size; there is also some overhead that needs to be reserved for the AMQP message format and for injection of distributed tracing metadata.– Jesse SquireJan 19 at 17:32
1 Answer
Use the add method to add events until the maximum batch size limit in bytes has been reached - at which point a ValueError will be raised.
As per the above statement from official document, the events you have added in batch has exceeded the maximum size limit which is 1 MB.
Make sure that the batch must contain the events' size upto 1MB only.