Shopify / ui-extensions

MIT License
260 stars 36 forks source link

[Checkout UI] useQuery errors with `{"name":"TypeError","message":"Load failed"}` #923

Closed gil-- closed 3 weeks ago

gil-- commented 1 year ago

Please list the package(s) involved in the issue, and include the version you are using

@shopify/checkout-ui-extensions-react": "^0.26.1

Describe the bug

My extension error logs show an increased number of errors relating to useQuery with the only error payload contents being:

{"name":"TypeError","message":"Load failed"}

I do have a token and shop that I could provide but nothing more since not much checkout contextual data is surfaced within extensions. It happens across different stores with the same extension but not to all customers, just a select few such as around one merchant has 24 errors in 2900 loads within a 24 hour period.

Steps to reproduce the behavior:

It's hard to reproduce as I'm never able to reproduce in any environment but I see ~50 errors of this kind being logged daily. Would be nice to understand what's causing it and then make a code fix to avoid it.

Expected behavior

Would expect no errors during useQuery.

Screenshots

CleanShot 2023-05-06 at 20 59 11@2x

Additional context

jamesvidler commented 1 year ago

Thank you for bringing this to our attention. We'll look into it.

jarthorn commented 3 weeks ago

Stale bug, closing.