Have your say in Community Polls: What was/is your greatest motivation to start your own business?
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.

500 Internal Server Error while creating products

500 Internal Server Error while creating products

sexybit
Shopify Partner
19 0 0

Good day.

 

Yesterday I experienced a slew of 500 - Internal Server Error responses while trying to create new products.

 

Naturally, my app logged the task as 'failed' locally and scheduled a retry.

 

However, much to my surprise, despite the Internal Server Error responses being returned, a bunch of products had in fact been created.

 

This is a highly unexpected and unwelcome behavior which forces me to implement a 'cleanup' routine that requests lists of "ghost" entities (products, images, etc) using the "since_id" parameter and removes them. The idea is to use the highest since_id value last-recorded locally, retrieve all these "ghost" entities and remove them.

 

1. Can anyone confirm that this behavior has been experienced by others?

2. If so, is it going to be fixed?

3. In the meantime, can anyone recommend a more robust approach than the one I outlined?

 

Also, it would help if Shopify would allow for a "LocalProductID" attribute of Product so that an 'internal' ProductID attribute can be associated to the Product entity (just like SKUs are associated to Variants) as well as allowing the possibility of retrieving products by that attribute.

 

Thanks.

Replies 5 (5)

ShopifyDevSup
Shopify Staff
1453 238 524

Hi sexybit,

 

For this type of specific issue with 500 - Internal Server Error responses we recommend reaching out to [Partner Support] with more detailed information about what happened so it can be investigated.

 

Important information includes a date/time/timezone within the past 7 days when the issue occurred, which store it happened on, what app made the API call, and an example of a product that got created which shouldn't have. Thanks!

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

sexybit
Shopify Partner
19 0 0

Good day.

 

I have queried Shopify Partner's support a few times already. They are not in a position to service developers nor they are willing to escalate matters as needed. They simply refer to these forums and instruct you to "ask the community".

 

The app in question is "nc-connector-17". This is a custom app that runs on one store only.

The store in question is "antropos-boutique.myshopify.com".

 

Unfortunately I cannot provide you with exact dates/timestamps - it was less than 7 days from today - nor product IDs as those products have already been purged.

 

However if this has occurred once, chances are that it will happen again and when it does I will post here timestamps and product IDs. However the issue here is pretty clear: a 500 error is returned and yet the action is carried out which essentially forces me to account for a system that lies to me... I'm guessing that these actions are queued internally and retried if needed...

 

This is a really really serious issue.

 

Thanks.

sexybit
Shopify Partner
19 0 0

Just for my own peace of mind,

 

can I get some assurance that someone is actually going to investigate this extremely serious issue or will it remain just a forum post with no actual resolution?

 

Thanks.

ShopifyDevSup
Shopify Staff
1453 238 524

Hi sexybit,

 

Thanks for your reply. Further communication about this inquiry will be through the support request that you submitted to help ensure the safety of store data.

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

vusallyv
Shopify Partner
2 0 0

Hi sexybit,

 

I faced the same issue while creating products with many images and decided to create images after creating products. It worked.