Skip to main content

[Python] Why are the arrays in my request body being capped at 10 elements?

Updated over a month ago

Issue

I am capturing POST request bodies in my events. I notice that the arrays in the body are always capped at 10 elements.

Applies To

  • Python SDK users

Symptoms

  • Missing elements in the Array

  • JSON of the event shows the actual length of the array under the _meta key

Resolution

By default the SDK sets the max_request_body_size="medium" option when not explicitly provided in the SDK. This caps the number of elements based off of our MAX_DATABAG_BREADTH option defined here.

Adding the option max_request_body_size="always" will stop this behavior and allow any number of elements as long as they comply with other SDK or server side limits.

Did this answer your question?