Shopify POS: `currencyCode not set on shop or location`

Hello team,

We’re seeing this error on my POS extension over the last day, it appears to be happening intermittently when api.cart.bulkCartUpdate is called but it’s difficult to be certain as the stack trace is minified:

Error · currencyCode not set on shop or location
https://extensions.shopifycdn.com/shopifycloud/extensibility-host-mobile/v4/load.html:56:22540
https://extensions.shopifycdn.com/shopifycloud/extensibility-host-mobile/v4/load.html:10:970
[native code] Promise
https://extensions.shopifycdn.com/shopifycloud/extensibility-host-mobile/v4/load.html:10:768 x
https://extensions.shopifycdn.com/shopifycloud/extensibility-host-mobile/v4/load.html:10:20462
https://extensions.shopifycdn.com/shopifycloud/extensibility-host-mobile/v4/load.html:10:20462
https://extensions.shopifycdn.com/shopifycloud/extensibility-host-mobile/v4/load.html:10:7357
https://extensions.shopifycdn.com/shopifycloud/extensibility-host-mobile/v4/load.html:10:970
[native code] Promise
https://extensions.shopifycdn.com/shopifycloud/extensibility-host-mobile/v4/load.html:10:768 x
https://extensions.shopifycdn.com/shopifycloud/extensibility-host-mobile/v4/load.html:10:10664
https://extensions.shopifycdn.com/shopifycloud/extensibility-host-mobile/v4/load.html:10:970
[native code] Promise
https://extensions.shopifycdn.com/shopifycloud/extensibility-host-mobile/v4/load.html:10:768 x

This message is not coming from my code.

I can provide dates / times or other details if that helps, just let me know what you need.

Thanks,

Simon.

Hi Simon,
Thanks for reporting the error. You’re right, it was not an error from your code.
We’ve deployed a fix to the race condition so bulkCartUpdate now resolves the currency at call time instead of startup. The fix should be serving from the CDN already, but if you still do not see it on device, try fully closing and reopening POS, that will pull the latest host.

If it shows up again after that, drop us the date/time and shop domain and we’ll dig in further. Thanks again for flagging it.

Thank you @h-shopify the last instance of the issue appears to be around 40 minutes ago, so :crossed_fingers:we don’t see it again.

Cheers!

Simon.

@h-shopify not sure if this is just some devices that haven’t had an update from the CDN yet but we’ve seen this issue occur a couple of times in the last few hours.

Let me know if you’d like me to provide any details of the error instances.