Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Graph QL: productCreate returns timeout error, but product is created anways

Graph QL: productCreate returns timeout error, but product is created anways

epetroel
Shopify Partner
6 0 4

Wondering if anyone else has noticed this behavior, but when trying to create a product with many variants using the productCreate mutation, I'm getting a timeout error from the GraphQL api. 

 

I saw this post and will try the suggestions there:

 

https://community.shopify.com/c/shopify-apis-and-sdks/graphql-api-timeout-issues-with-productcreate-...

 

However, what's more concerning to me, is that after I get the timeout error from the GraphQL API, if I look in my shopify instance a few minutes later I can see that the product was actually created successfully anyways!  Has anyone else noticed that behavior and is there any way to avoid it?  Feels like a serious bug to me - if my code thinks there was an error and retries the operation, I'll end up with duplicate products..

Replies 0 (0)