Skip to content

"Current user does not have an active cart" even when he actually has one #26117

Closed
@TomashKhamlai

Description

@TomashKhamlai

Preconditions (*)

  1. Registered Customer

Steps to reproduce (*)

  1. Generate token
  2. Create an empty cart
  3. Get inactive cart through the order completion
  4. Generate token again
  5. Create an empty cart
  6. Put a product to cart
  7. Set Billing address with card_id of inactive cart

Expected result (*)

  1. Truth

Actual result (*)

  1. False
{
  "errors": [
    {
      "message": "Could not find a cart with ID \"PeLzHtxg5Ujw98wyaRt8MCX6dcJggjwa\"",
      "category": "graphql-no-such-entity",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "path": [
        "setBillingAddressOnCart"
      ]
    }
  ],
  "data": {
    "setBillingAddressOnCart": null
  }
}

Additional confirmation info:

Use the GraphQL checkout tutorial if you need help with reproducing the issue
https://devdocs.magento.com/guides/v2.3/graphql/tutorials/checkout/

Metadata

Metadata

Labels

Component: QuoteGraphQlFixed in 2.4.xThe issue has been fixed in 2.4-develop branchIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions