ACSD-49970: Incorrect handling of GraphQL errors

The ACSD-49970 patch fixes the issue where there is incorrect handling of GraphQL errors when New Relic Reporting is turned on. This patch is available when the Quality Patches Tool (QPT) 1.1.29 is installed. The patch ID is ACSD-49970. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.7.

Affected products and versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.5-p1

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.5 - 2.4.6
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the 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.


GraphQLOperationNames key is not handled correctly whether the logDataHelper contains this key or not.

Steps to reproduce:

  1. Run bin/magento deploy:mode:set developer.

  2. Log in to the Admin.

  3. Enable New Relic Integration from Stores > Configuration > General > New Relic Reporting
    (Note: Even if an error is displayed saying that the New Relic extension is not available, the configuration is saved).

  4. Run this GraphQL mutation to http://yourMagentoDomain/graphql from the Altair client or any other client or via cURL.

    code language-graphql
    mutation {

    (Note: Set the Header to Content-Currency:CA before running it).

    code language-curl
    curl --location 'http://yourMagentoDomain/graphql' \--header 'Content-Currency: CA' \--header 'Content-Type: application/json' \--header 'Cookie: PHPSESSID=b5147f63fe5014ea523f262946; private_content_version=8d53dfda210a6e9bc46f4e4a01ffd6c5' \--data '{"query":"mutation {\r\n  createEmptyCart\r\n}","variables":{}}'

Expected results:

There is no 500 exception in logs, GraphQLOperationNames key is being handled correctly.

Actual results:

There is a 500 exception in logs, GraphQLOperationNames key is not being handled correctly.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

For info about other patches available in QPT, refer to Quality Patches Tool: Search for patches in the Quality Patches Tool guide.