۶Ƶ

ACSD-63325: “Syntax Error: Unexpected < EOF >” error when submitting empty GraphQL request

The ACSD-63325 patch fixes the issue where a “Syntax Error: Unexpected < EOF >” error and a non-200 response code returned when submitting an empty GraphQL request. This patch is available when the Quality Patches Tool (QPT) 1.1.58 is installed. The patch ID is ACSD-63325. Please note that the issue is scheduled to be fixed in ۶Ƶ Commerce 2.4.8.

Affected products and versions

The patch is created for ۶Ƶ Commerce version:

  • ۶Ƶ Commerce (all deployment methods) 2.4.7-p3

Compatible with ۶Ƶ Commerce versions:

  • ۶Ƶ Commerce (all deployment methods) 2.4.7 - 2.4.7-p3
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your ۶Ƶ 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.

Issue

On submitting an empty GraphQL request, there is an HTTP internal server error instead of a 200 response code.

Steps to reproduce:

  1. Send an empty GraphQL request

    code language-graphql
    curl -i -X OPTIONS http://commerce.local/graphql
    

Expected results:

The response code is 200 for the request.

curl -i -X OPTIONS http://commerce.local/graphql

Actual results:

A 500 internal server error occurs as shown:

HTTP/1.1 500 Internal Server Error

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:

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3