Memory size exceeded while sending data in Azure Eventhub using python code

ValueError: EventDataBatch has reached its size limit: 1048576

I am using below code enter image description here

1 answer

  • answered 2022-01-20 05:37 UtkarshPal-MT

    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.

    enter image description here

    Make sure that the batch must contain the events' size upto 1MB only.

How many English words
do you know?
Test your English vocabulary size, and measure
how many words do you know
Online Test
Powered by Examplum