A space to discuss GraphQL queries, mutations, troubleshooting, throttling, and best practices.
Since yesterday, ProductVariants has not been returning all variants.
For example, in my development store chennai-games.myshopify.com:
{
productVariants(first: 100, query: "barcode:14233246") {
edges {
node {
product {
id
}
}
}
}
}
{
"data": {
"productVariants": {
"edges": []
}
},
"extensions": {
"cost": {
"requestedQueryCost": 202,
"actualQueryCost": 2,
"throttleStatus": {
"maximumAvailable": 1000,
"currentlyAvailable": 998,
"restoreRate": 50
}
}
}
}
This is an active product searchable within the Shopify Admin interface.
This appears to effect multiple stores in Shopify. Several of my customers are complaining that our apps are not returning or searching variants correctly.
Please help.
Solved! Go to the solution
This is an accepted solution.
Hey Everyone! Thanks for flagging this here. Our team was able to look in to this issue and it has been resolved.
To confirm, I've tested using the initial query shared here by @brdata and the barcode query is working and returning the product ID as expected.
If you notice any new occurrences or if the full results are still not being returned, please reach out to our support teams with details and specific examples so they can look further.
- https://help.shopify.com/en/support/login
Thanks again!
- Kyle G.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
We're experiencing similar weird behavior: a productVariants query that returned 1438 results a few days ago now only returns 438, without any change in our code and shop products.
I can't find anything related in the Changelog.
Looks like Shopify did a Retroactive change to the Graphql API with complete disregard to the principles of Versioning as it affects all API Versions. This would be the second time this year that something like this has happened (that I have noticed at least)
I submitted a ticket to partner support as well. I can trace the change to happening sometime between Sunday 02:00 and Monday 02:00 GMT+1 I have a cron job running that uses the ProductVariants GraphQL query filtered by location_id in the query param.
@ShopifyDevSup Can you get someone on this ASAP Please. This affects a couple of our public apps as well as countless private apps.
Cheers,
Gary
have you got a response yet to your support ticket? or a solution yet?
Just re-ran the query after @ShopifyDevSup replied to this thread. Looks like the issue has been resolved.
Same here, quering products variants with barcode stopped working for some prodcuts
I am having the same issue. Shopify support please fix this ASAP!!!
I thought Shopify was supposed to be monitoring these forums and responding and helping solve these problems? This productVariants querying by barcode problem has been going on now for almost TWO full days!!
Same issue on our side. Some productVariants are not being returned.
I have experienced this issue as well!
+1 here. Barcode searches are partially broken.
This is an accepted solution.
Hey Everyone! Thanks for flagging this here. Our team was able to look in to this issue and it has been resolved.
To confirm, I've tested using the initial query shared here by @brdata and the barcode query is working and returning the product ID as expected.
If you notice any new occurrences or if the full results are still not being returned, please reach out to our support teams with details and specific examples so they can look further.
- https://help.shopify.com/en/support/login
Thanks again!
- Kyle G.
Developer Support @ Shopify
- Was this reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog
Hi Kyle,
Thanks for looking into this for us. I just reran my query and the issue looks to be resolved!
Cheers,
Gary
Thanks a lot Kyle, the issue is fixed on our side too!
Hi @ShopifyDevSup,
I checked 3 of my customers stores and can confirm this issue is resolved.
Thank you!
Now, if only some one can fix my loss of reputation, 2 days of wasted time, and the one-star review my app received.
😪