[GraphQL] Place Order resolver error messages are not displayed #39547
Open
Description
Preconditions and environment
- Magento 2.4.7-p1
- We use Adobe PWA Studio, but I think it's should be reproducible by using GraphQL only
In 2.4.7 Mageno removed the error formatter and started using a constant and now all custom error messages are returned with error code “UNDEFINED".
\Magento\QuoteGraphQl\Model\Resolver\PlaceOrder resolver returns errors as expected by the new logic:
but then the actual response is formatted in \GraphQL\Executor\ReferenceExecutor::collectAndExecuteSubfields, it collects some subfields(??):
and returns it instead of errors…
Steps to reproduce
- Add product to cart
- Place order, but it should throw any error during the process
Expected result
Order placing is failed, but we are getting correct error message.
Actual result
Additional information
No response
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”.
Metadata
Assignees
Type
Projects
Status
Ready for Confirmation