ACSD-63325: “Syntax Error: Unexpected < EOF >” error when submitting empty GraphQL request
- Topics:
- GraphQL
CREATED FOR:
- Experienced
- Admin
- Developer
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 Adobe Commerce 2.4.8.
Affected products and versions
The patch is created for Adobe Commerce version:
- Adobe Commerce (all deployment methods) 2.4.7-p3
Compatible with Adobe Commerce versions:
- Adobe Commerce (all deployment methods) 2.4.7 - 2.4.7-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
On submitting an empty GraphQL request, there is an HTTP internal server error instead of a 200 response code.
Steps to reproduce:
-
Send an empty GraphQL request
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:
- 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.