MONEI / Shopify-api-node

Node Shopify connector sponsored by MONEI
https://monei.com/shopify-payment-gateway/
MIT License
946 stars 278 forks source link

smartCollection.create() returns 422 Unprocessable Entity on duplicate handles #487

Closed torbrandt closed 3 years ago

torbrandt commented 3 years ago

If I run smartCollection.create() with a collection object containing a handle value, it works the first time around, but if I run it again, it doesn't work unless I remove the handle key or updates the value to something else. It seems that it's not able to automatically generate a new handle if a collection with the same handle already exists on the store. Instead it just returns 422: Unprocessable Entity error.

lpinca commented 3 years ago

Log error.response.body where error is the error you are receiving. It might give you more informations but this is not an issue in the library.

lpinca commented 3 years ago

I'm closing this due to inactivity.