Skip to content

[Graphql] Cannot return null for non-nullable field "SelectedCustomizableOption.label" #39729

Open
@indykoning

Description

@indykoning

Preconditions and environment

  • 2.4.7-p1

Steps to reproduce

  1. Add a product to the cart with customizable options
  2. Make changes causing that customizable option to no longer exist on that product.
  3. Attempt to get the cart using graphql
{
  cart(cart_id: "xxxx") {
    items {
      ... on SimpleCartItem {
        customizable_options {
          label
          values {
            label
            value
          }
        }
      }
    }
  }
}
  1. See the internal server error with message "Cannot return null for non-nullable field "SelectedCustomizableOption.label""

Expected result

I would expect the item to be returned without the selected option that no longer exists

Actual result

I am unable to interact with the cart anymore and am greeted with
Cannot return null for non-nullable field "SelectedCustomizableOption.label"
errors

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

Labels

Area: Cart & CheckoutComponent: CatalogIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P2A defect with this priority could have functionality issues which are not to expectations.Reported on 2.4.7-p1Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

Status

Ready for Development

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions