Resource Picker ApolloError

Issue Summary

When attempting to add products via the resource picker in our Shopify app’s test discount page, an ApolloError is thrown with the message “Internal error. Looks like something went wrong on our end .”

context-slice-graphql-Dr7Z4lxovwRu.js:3 Uncaught (in promise) ApolloError: Internal error. Looks like something went wrong on our end.
Request ID: 43b20299-1af2-4fb0-bd54-062616af5004-1769441794 (include this in support requests).
at new e (context-slice-graphql-Dr7Z4lxovwRu.js:3:151)
at context-slice-graphql-Dr7Z4lxovwRu.js:7:79173
at E (context-slice-graphql-Dr7Z4lxovwRu.js:2:8154)
at context-slice-graphql-Dr7Z4lxovwRu.js:2:8080
at new Promise ()
at Object.then (context-slice-graphql-Dr7Z4lxovwRu.js:2:8047)
at Object.next (context-slice-graphql-Dr7Z4lxovwRu.js:2:8164)
at Co (context-slice-graphql-Dr7Z4lxovwRu.js:2:1906)
at ir (context-slice-graphql-Dr7Z4lxovwRu.js:2:2316)
at e.next (context-slice-graphql-Dr7Z4lxovwRu.js:2:2833)Caused by: Error
at utilities-alWccjwG4yMo.js:1:32990
at Array.map ()
at ae (utilities-alWccjwG4yMo.js:1:32933)
at u.fetchProductDetails (domains-apps-AppBridgeHostResourcePicker-CuAHYHPFHZkW.js:1:5657)
at m (loaders-common-bVBQ0VRcnxJN.js:40:8301)
at domains-apps-AppBridgeHostResourcePicker-CuAHYHPFHZkW.js:1:5180
at n (utilities-alWccjwG4yMo.js:1:29971)
at wi (ProductResourcePicker-v33SeKmBLJok.js:1:125097)
at Jt (ResourcePicker-bHD4No2Mzni9.js:1:19595)
at Object.ze (render-common-UtiAWaYx7ubV.js:22:9844)

Context

Component: ProductResourcePicker / AppBridgeHostResourcePicker

  • Specific Function: fetchProductDetails in domains-apps-AppBridgeHostResourcePicker

This is occurring in a specific customer’s store (not all stores)

The error happens before our app code can handle the resource picker response

1. What could cause fetchProductDetails to fail in the AppBridgeHostResourcePicker?

- Is there a specific product data structure that causes this error?

2. Is there a known issue with the resource picker’s fetchProductDetails method?

- The error shows it’s failing during an Array.map operation

- Request ID: `43b20299-1af2-4fb0-bd54-062616af5004-1769441794`

3. Could this be related to specific product configurations in this store?

- Products without variants?

- Products with corrupted data?

- Products with special characters or unusual configurations?

Thanks in advance
Pius