-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GraphQL addProductsToCart mutation reports unrelated errors in user_errors #37908
Comments
Hi @paales. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
@magento give me 2.4-develop instance |
Hi @engcom-Bravo. Thank you for your request. I'm working on Magento instance for you. |
Hi @engcom-Bravo, here is your Magento Instance: https://1f608a5579e160b07d8a456159c267c7.instances-prod.magento-community.engineering |
Hi @paales, Thank you for reporting and collaboration. Verified the issue on Magento 2.4-develop instance and the issue is reproducible.Kindly refer the screenshots. Steps to reproduce
We have added a PRODUCT-1 with qty 100. Here We are getting errors it is expected. We are getting user errors while adding PRODUCT-2 it is having sufficient stock and quantity there is no issue with this product.There should be no errors still we are getting errors. Hence Confirming the issue. Thanks. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-9362 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Bravo. Thank you for verifying the issue. |
@magento I am working on this |
Preconditions and environment
Steps to reproduce
Create a product "PRODUCT-1" with inventory of 100
Create a product "PRODUCT-2" with inventory of 100 (make sure indexers etc. have ran)
Create an empty cart:
user_errors
, this is correct.Expected result
I would expect the user_errors to be empty because there was no error with the operation, only an error with the cart it's self.
Actual result
user_errors contains the error of the other item..
Additional information
We currently have to do some very dirty checking to see on which item this error occurs and do a string match on the message to filter any cart item errors. This is not foolproof and is slow when there are many items in the cart. This issue arises because add to cart actions become very slow when there are many items in the cart because we fetch those items on each action.
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: