Skip to content

[GraphQL] Place Order resolver error messages are not displayed #39547

Open
@makkoff

Description

@makkoff

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:

Image
but then the actual response is formatted in \GraphQL\Executor\ReferenceExecutor::collectAndExecuteSubfields, it collects some subfields(??):

Image
and returns it instead of errors…

Image

Steps to reproduce

  1. Add product to cart
  2. 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

Image

Image

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

Metadata

Assignees

Labels

Area: OrderComponent: GraphQLGraphQLIssue: needs updateAdditional information is require, waiting for responseReported on 2.4.7-p1Indicates original Magento version for the Issue report.Triage: Dev.ExperienceIssue related to Developer Experience and needs help with Triage to Confirm or Reject it

Type

No type

Projects

Status

Needs Update

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions