-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Description
Preconditions and environment
Summary of the issue
Magento is throwing error when hitting graphql endpoint with introspection query.
Magento Version
Magento Community Edition2.4.6-p3
Steps to reproduce
When sending a GraphQL request to the /graphql endpoint with the following payload:
{
__schema {
types {
kind
name
possibleTypes {
name
}
}
}
}the following error is encountered in Developer and Default modes:
Error Message: Missing required argument $subject of Magento\SalesGraphQlAux\Model\Resolver\SearchTerm.
File: vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php
Line: 264
Same endpoint and same codebase is giving successful response on production operation mode.
Expected result
The success response on the below should be reachable in all environments, not only in production mode.
{
"data": {
"__schema": {
"types": [
{
"kind": "OBJECT",
"name": "Query",
"possibleTypes": null
},
{
"kind": "SCALAR",
"name": "ID",
"possibleTypes": null
},
{
"kind": "SCALAR",
"name": "Boolean",
"possibleTypes": null
},
....
....
....
....
....
{
"kind": "OBJECT",
"name": "__EnumValue",
"possibleTypes": null
},
{
"kind": "OBJECT",
"name": "__Directive",
"possibleTypes": null
},
{
"kind": "ENUM",
"name": "__DirectiveLocation",
"possibleTypes": null
}
]
}
}
}Actual result
{
"errors": [
{
"message": "Internal server error"
}
]
}Additional information
Issue only occurs on developer and default modes. Endpoint is working as expected on production mode.
Release note
No response
Triage and priority
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.