magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

[Bug]: Request failed with status code 500 if currency mismatches

Open bartoszherba opened this issue 2 years ago • 0 comments

Expected Behavior

Whatever currency cookie value is, application do not hard-break

Actual Behavior

If I am in the default store where only USD currency is available, but for any reason, my currency cookie is set to EUR, the application breaks.

It can happen, for example, when someone is on the german/EUR store and then manually input the default store URL.

Screenshot 2022-04-22 at 13 46 29

Possible Solution

No response

Steps to reproduce

  1. Open default store
  2. Change currency cookie from USD -> EUR
  3. Reload page
  4. Observe 500 error

What version of Magento 2 integration are you using?

2.4.x

What version of Node.js are you using?

16.13.1

What browser (and version) are you using?

Version 96.0.4664.110 (Official Build) (arm64)

What operating system (and version) are you using?

macOS Monterey 12.1

Relevant log output

No response

Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

bartoszherba avatar Apr 22 '22 11:04 bartoszherba