pwa-studio icon indicating copy to clipboard operation
pwa-studio copied to clipboard

[bug]: Invalid cart validation error

Open joseamietta opened this issue 1 year ago • 7 comments

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:

  • Device [NoteBook Levono]:
  • Browser [Chrome]:
  • Browser Version [124.0.6367.78 (Official Build) (64-bit)]:
  • Magento Version [Adobe Commerce 2.4.6-p3]:

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

  • [ ] venia-concept
  • [ ] venia-ui
  • [ ] pwa-buildpack
  • [x] peregrine
  • [ ] pwa-devdocs
  • [ ] upward-js
  • [ ] upward-spec
  • [ ] create-pwa

joseamietta avatar Apr 26 '24 13:04 joseamietta

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.

m2-assistant[bot] avatar Apr 26 '24 13:04 m2-assistant[bot]

@magento I am working on this

joseamietta avatar Apr 26 '24 13:04 joseamietta

@adobe export issue to Jira project PWA

glo82145 avatar May 08 '24 10:05 glo82145

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

github-jira-sync-bot avatar May 08 '24 10:05 github-jira-sync-bot

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

glo85315 avatar Aug 15 '24 04:08 glo85315

Hi @glo85315, You have to leave the cart session or customer session expire, and then reload the page. In this moment the active cart isn’t valid and can’t add a product to cart. Again, it’s necessary that de customer or cart session expire to reproduce it.

joseamietta avatar Aug 25 '24 23:08 joseamietta

HI @joseamietta , I was unable to reproduce the issue on my end. To better understand and address the problem, could you please provide a video demonstrating the steps to reproduce the issue? This will greatly assist us in resolving it more efficiently.

Thank you for your assistance. I look forward to your response.

https://github.com/user-attachments/assets/c61af82c-f3b0-4cc6-9ab2-4ac15e34d05c

glo85315 avatar Aug 26 '24 10:08 glo85315

As we have got no update from more than 14 days hence we are closing this ticket. Please feel free to reopen in case of any update.

glo82145 avatar Sep 23 '24 08:09 glo82145