sanity-io / sanity-plugin-shopify-assets

MIT License
20 stars 1 forks source link

[500] error when loading assets from v1/shopify/assets endpoint #6

Open ryanengland opened 10 months ago

ryanengland commented 10 months ago

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:

{
  "message":"An unexpected error occurred"
}

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:

Screenshot 2023-08-20 at 18 14 01

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

williamli commented 7 months ago

CleanShot 2023-11-21 at 09 18 17

I am seeing a similar error too.

henrybabbage commented 4 months ago

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.