Development discussions around Shopify APIs
Can Shopify App Support Team member please look into this for me:
Request ID: ed5d750e-0f41-409d-978f-73f15fddb829 (include this in support requests).
Was attempting to access graphql endpoint.
Solved! Go to the solution
This is an accepted solution.
Hey @Conner_Pope ,
As far as I am aware in the case where you are getting timeouts consistently because you are adding products to collections which are very large (500+ products), the only solution would be to break the collections down into smaller collections so they have fewer products in each.
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Hey @Conner_Pope ,
Looking through our platform logs, it appears that this error was caused by timeout. Simply the MySQL query tied to this request took too long to complete, and timed out. This could be caused because of heavy server load on Shopify's side at the time, or because the collection you are trying to update is very big (500+ products)
From my investigation, it appears that this product is now added to the desired collection. However let me know if this is still an issue for you.
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
Hello @hassain , thanks for your investigation.
Would you know how I can avoid having this occur again in the future?
Hey @Conner_Pope ,
In cases where timeout is occurring due to server load, it may be best to add re-try functionality into your code. So after receiving the failure, check if the Product was indeed added to the Collection or not, and if not wait some time to re-try the mutation to add that Product to the Collection.
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
This is an accepted solution.
Hey @Conner_Pope ,
As far as I am aware in the case where you are getting timeouts consistently because you are adding products to collections which are very large (500+ products), the only solution would be to break the collections down into smaller collections so they have fewer products in each.
Hassain | Developer Support Specialist @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Click Accept as Solution
User | RANK |
---|---|
51 | |
11 | |
8 | |
6 | |
6 |
Thanks to all who participated in our AMA with 2H Media on planning your 2023 marketing bu...
By Jacqui Mar 30, 2023Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023