Hello, new to the forums, please forgive me if this topic is posted in the wrong spot and direct me to the right place if so.
I am trying to write a PS script to post a json to an Event Grid endpoint.
Invoke-WebRequest-Uri $endpoint-Method'Post'-Headers $header-Body $body
I am using the Invoke-WebRequest function with variables set above. It SEEMS to be well crafted, but when I kick off the script I eventually get the following error:
{ "error": { "code": "429", "message": "Topic MY-CUSTOM-TOPIC-1.WESTUS2-1.EVENTGRID.AZURE.NET is
being sent a higher than allowed 'byte rate'. Request length = 0, Current rate = 291 bytes/second. Allowed rate =
26214400 bytes/second. Report '6433d9cb-ddae-4394-96e9-7aa1c0fbd727:6/3/2019 6:54:50 PM (UTC)' to our forums for
assistance or raise a support ticket.", "details": [{ "code": "TooManyBytes", "message": "Topic
MY-CUSTOM-TOPIC-1.WESTUS2-1.EVENTGRID.AZURE.NET is being sent a higher than allowed 'byte rate'. Request length = 0,
Current rate = 291 bytes/second. Allowed rate = 26214400 bytes/second. Report
'6433d9cb-ddae-4394-96e9-7aa1c0fbd727:6/3/2019 6:54:50 PM (UTC)' to our forums for assistance or raise a support
ticket." }] } }
In this case it seems that the byte rate that is being sent is well under the allowed rate, yet I am still getting a TooManyBytes error.
Why is this the case?