Open ryanengland opened 1 year ago
I am seeing a similar error too.
I'm having this exact issue too. The sanity-plugin-shopify-assets plugin worked initially and then subsequently no longer loads and gives the same error message shown by @williamli above.
Hey everyone!
(Possibly related to: https://github.com/sanity-io/sanity-plugin-shopify-assets/issues/5 but I have tried uninstalling and reinstalling the app, providing all requested permissions, and no dice)
I'm using the Shopify Connect plugin, along with the sanity-plugin-shopify-assets to pull images into Sanity from Shopify. However, It works for around 20-30 minutes after installing / reinstalling the Shopify Connect app, then I start getting 500 errors when searching / loading images on the endpoint:
https://[REDACTED].[api.sanity.io/v1/shopify/assets/production?shop=[REDACTED]com&limit=42
The response returned is:
I've tried from my localhost and from the sanity.studio URL, and all other content (products, collections, etc) is syncing correctly.
My settings are as follows:
The exact request that is failing is this one: https://github.com/sanity-io/sanity-plugin-shopify-assets/blob/079ee67c9953fe79beb038b46436cd05150a973d/src/datastores/shopify.ts#L42