This article provides a solution for the issue where Web API is unable to process a message that contains more than 20 items in the array for Adobe Commerce 2.4.3.
Web API is unable to process the message (for example, Stock Update) that contains more than 20 items in array.
In Adobe Commerce 2.4.3, the built-in Rate limiting was added to Magento APIs to prevent denial-of-service (DoS) attacks.
By default, the following built-in API rate limiting is available:
To disable the input limits on the REST API request, apply one of the following patches (depending on your version):
The patches were created for:
The patches are not compatible with any other Adobe Commerce versions.
Unzip the downloaded .zip
file and apply the patch as described in How to apply a composer patch provided by Adobe.
If you suspect that your store is experiencing a DoS attack, Adobe recommends lowering the default input limits to a lower value to impose restrictions on the number of resources that can be requested. You can customize the default limits programmatically using class constructor arguments
as described in our developer documentation: API security > Rate limiting > Maximum parameter inputs.
API security > Rate limiting in our developer documentation.