magento / pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.06k stars 683 forks source link

[bug]: Invalid cart validation error #4255

Open joseamietta opened 3 months ago

joseamietta commented 3 months ago

Describe the bug

When the cart is invalid, it's never refresh when the language is not en_US

To reproduce

Steps to reproduce the behavior:

  1. First of all, you need a backend environment with selected language different of en_US, for example: es_ES
  2. Go to the pwa studio page, initilize a cart and wait that backend session expire
  3. Then observe the graphQl miniCart response and you will see that error similar to invalid cart in the selected language
  4. The cartId never updated unless the localStorage is deleted

Expected behavior

That the cart be updated when it's not available and does not depend on the graphQl error

Screenshots

Screenshot from 2024-04-26 09-59-04

Please complete the following device information:

Please let us know what packages this bug is in regards to:

m2-assistant[bot] commented 3 months ago

Hi @joseamietta. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information. Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.

joseamietta commented 3 months ago

@magento I am working on this

glo82145 commented 3 months ago

@adobe export issue to Jira project PWA

github-jira-sync-bot commented 3 months ago

:white_check_mark: Jira issue https://jira.corp.adobe.com/browse/PWA-3268 is successfully created for this GitHub issue.

glo85315 commented 1 day ago

HI @joseamietta , Thank you for bringing this issue to our attention. We’ve thoroughly investigated and attempted to reproduce the problem you described, but unfortunately, we were unable to replicate the issue on our end. To assist you further, could you please provide any additional details or steps that might help us reproduce the issue

https://github.com/user-attachments/assets/a06d834f-fdd6-44b7-b76d-53718a4472bc