Bug - Shopify not passing updated product data on product/update webhook

Solved
Shopify Partner
28 0 3

Hello,
It looks like the product/update webhook is not sending the updated product data to the Webhook Address. I just tried this multiple times on a development store and its the same. Very easy to reproduce - just change the product description a bit on any product and save it. You will see that your update is not reflected in the webhook data and Shopify just passes the old data before the update to the webhook URL. You can use https://webhook.site/ to test it. 

I am using 2020-07 version of the webhook.

Is the Shopify team aware of this?

Thanks

0 Likes
Shopify Staff
Shopify Staff
29 7 8

Hello @My_Pap_Shopify_ , I was trying to test this out as well and it seems to me like I'm still pretty consistently getting up-to-date information. Could you provide me more details about this this issue? When were you testing and what was the product id?

0 Likes
Shopify Partner
28 0 3

Its this one, but basically the same for all https://winning-dev-test-store.myshopify.com/admin/products/5616315236513
Its a test development store so not sure if this issue only happens on test stores?
To reproduce, on the product editor, under Product Availability, uncheck "Online Store" and save. 
A webhook is fired where the `published_at` should have been null but it isn't. 
Now check online store back again so that its "published" again and save it and the webhook now sends `published_at`  as null when it should have been a valid date. 

 

0 Likes
Shopify Staff
Shopify Staff
29 7 8

Interesting... I know there is an outstanding investigation about how 'published_at' specifically is updated. Does this happen for you for any other fields? If not, I can forward this feedback, and if so, I have more research to do.

0 Likes
Shopify Partner
28 0 3

Yeah, same when I try with updating description as well, or any other field. Try updating description on the same product a few times, you will definitely encounter the issue. 

Check out these screencasts:
1. Webhook not sending updated data when published status changed  https://imgur.com/a/cFGim5e

2.  Webhook not sending updated data when description changed https://imgur.com/a/aqceqI0 

 

0 Likes
Shopify Staff
Shopify Staff
29 7 8

Thanks for the screen casts, that definitely helps. We will see what we can do to look into this issue. Thank you so much for reporting it, and we'll update here once it has been fixed.

Shopify Staff
Shopify Staff
29 7 8

This is an accepted solution.

Good news @My_Pap_Shopify_ ! We were able to tackle this yesterday and we think we have it fixed, you should be receiving up-to-date information in your webhooks now. Please let me know if you find any more instances of this issue.

0 Likes
Shopify Partner
28 0 3

Yeah, looks like its fixed now. Thanks!!

0 Likes
Shopify Partner
28 0 3

Hello James @james-langille ,

I have to report a very important issue regarding hmac where shopify is sending incorrect SHA256 HMAC headers in the webhooks. Is there an email address I could send this data to? This is not happening to all orders but is happening to at least 40% of the orders. 

thanks

0 Likes
Shopify Staff
Shopify Staff
29 7 8

Hey @My_Pap_Shopify_ , yes we're aware of the issue and are still gathering some information about it. Do you see instances of this happening over HTTP? EventBridge?

0 Likes