FROM CACHE - en_header

Error: Internal error. Looks like something went wrong on our end.

Solved
Conner_Pope
Shopify Partner
48 1 16

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.

Accepted Solution (1)

Accepted Solutions
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 104 178

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 

View solution in original post

Replies 5 (5)
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 104 178

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 

Conner_Pope
Shopify Partner
48 1 16

Hello @hassain , thanks for your investigation.

 

Would you know how I can avoid having this occur again in the future? 

hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 104 178

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 

Conner_Pope
Shopify Partner
48 1 16
Hi @hassain, what if the error is due to the collection being very large? I
have seen this error multiple times but only when the collection is larger
than 500 products.
hassain
Shopify Staff (Retired)
Shopify Staff (Retired)
624 104 178

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