ACSD-68206: GraphQL server fails with rate limiting and PHP Redis extension
The ACSD-68206 patch fixes the issue where the GraphQL Application server throws an error when working with the Rate Limiting feature and the PHP Redis extension, which disrupts rate limit functionality. This patch is available when the Quality Patches Tool (QPT) 1.1.73 is installed. The patch ID is ACSD-68206. Please note that this issue is scheduled to be fixed in Adobe Commerce 2.4.9.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.8-p2
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7 - 2.4.8-p3
magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.Issue
The issue occurs when the GraphQL Application server uses the Rate Limiting feature with the PHP Redis extension installed, resulting in a broken rate limit functionality.
Steps to reproduce:
- Install the PHP Redis extension.
- Configure Redis for the application.
- Set up the rate limiter to allow one order per customer every minute.
- Start the GraphQL application server.
- As a customer, submit an order using the
PlaceOrderGraphQL mutation. - Within one minute, submit a second order using the
PlaceOrderGraphQL mutation for the same customer.
Expected results:
The PlaceOrder GraphQL request returns a message limiting order attempts.
Actual results:
The server returns a 500 error for the second PlaceOrder GraphQL request. The exception log records:
report.CRITICAL: Error: Call to a member function exec() on null in vendor/colinmollenhour/credis/Client.php:1336
Apply the patch
To apply individual patches, use the following links depending on your deployment method:
- Adobe Commerce or Magento Open Source on-premises: Quality Patches Tool > Usage in the Quality Patches Tool guide.
- Adobe Commerce on cloud infrastructure: Upgrades and Patches > Apply Patches in the Commerce on Cloud Infrastructure guide.
Related reading
To learn more about Quality Patches Tool, refer to:
- Quality Patches Tool: A self-service tool for quality patches in the Tools guide.