Product deletion webhook not working at all

Vadim1
Shopify Partner
16 0 7

Hello everyone!

Looks like products/delete webhook not working at all. I can't receive any notifications on my server, in advance

update/create webhooks are perfectly fine. I'm not alone with this problem though, here is a topic with almost the same problem (but in my case even on the page of product listing it's not working).

 

Best regards,

Vadim.

 

 

Replies 48 (48)

Alex
Shopify Staff
1561 81 341

If you can replicate, would you mind providing me with a shop ID and a time frame in which you did so? A request ID will work too in the event that you make a DELETE request to a product.

 

Cheers.

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Vadim1
Shopify Partner
16 0 7

Store - test-store-min.myshopify.com (or x-shopid: 5267456074 from the headers)

x-request-id: 0a38d026-1cf5-49cc-b882-669197c6c939
x-shopify-api-version: unstable
 
Please let me know if you need more information from the headers.
 
Request payload - 
{"operationName":"DeleteProduct","variables":{"product":{"id":"gid://shopify/Product/4152400281674"}},"query":"mutation DeleteProduct($product: ProductDeleteInput!) {\n  productDelete(input: $product) {\n    userErrors {\n      field\n      message\n      __typename\n    }\n    __typename\n  }\n}\n"}

Response from the server - 

{"data":{"productDelete":{"userErrors":[],"__typename":"ProductDeletePayload"}},"extensions":{"cost":{"requestedQueryCost":10,"actualQueryCost":10,"throttleStatus":{"maximumAvailable":5000.0,"currentlyAvailable":4990,"restoreRate":250.0}}}}

 

 

Vadim1
Shopify Partner
16 0 7

In advance, want to ensure you that "Send test notification" button works fine, I received it well.

But when it goes to the real products, it's not coming to my server.

Kolby1
Shopify Partner
17 0 1

I have the same issue, any updates here?

Alex
Shopify Staff
1561 81 341

Updated - See Below

 

Thanks for the information. It seems like productDelete calls to the GraphQL Admin API without a version does not trigger products/delete webhooks, which I would consider a bug. I'll report this internally.

 

In the meantime, I saw success in either making a REST call for product deletion or, more preferably, adding a version to my GraphQL call. As an example:

 

POST /admin/api/2019-07/graphql.json

 

Rather than:

 

POST /admin/api/graphql.json

 

@Kolby1 - can you confirm that you are also making non-version-explicit GraphQL Admin API calls for product deletion?

 

Cheers.

 

Update

 

Wait, it looks like the example call was made by the Admin. Was this done through the Admin interface @Vadim1?

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Vadim1
Shopify Partner
16 0 7

Hi Alex, the problem is that I made this request using the admin page (/admin), and gave you all the information from the Network tab using f12 key. I did not make a request in the code.

Alex
Shopify Staff
1561 81 341

@Vadim1 Yes perfect thank you, I just realized that at the same time you posted. I'll still keep you posted.

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Kolby1
Shopify Partner
17 0 1
Yes, I created the webhook via admin as well and I’m deleting products manually.
harshulj
Shopify Partner
6 0 3

Hi,

 

We are also facing this issue and in our case this is pretty serious because merchants are seeing a deleted product on their store.

 

I deleted a product from the Admin and did not receive the webhook. The webhook itself was created using an API.

Can you please look into it and update asap. 

 

 

 

andreuka
Visitor
2 0 0

Hi there!

I found delete webhooks working normally when fulfillment service is shopify, but when fulfillment service is created by Application, then webhook not sending and products still available on app customers stores.

Thanks!

harshulj
Shopify Partner
6 0 3

Hi There,

 

Yes, if the inventory is not managed by Shopify, then we are not receiving delete product events.

Is this the desired behaviour? Or is this a bug in the system? In our case the product is deleted from Shopify admin but event is not received.

 

Regards

andreuka
Visitor
2 0 0

I havent any idea, I have same issue as well with my app.
Waiting for any reply from shopify as well.

I believe this is 100% wrong and it worked before, just noticed yesterday that webhooks stopped to work.
Super weird issue which require immediate fix.

Denis_R
New Member
4 0 0

I'm having this issue too.

 

Subscribed to products/delete webhook using  REST API.

When removing products from shopify admin manually it doesn't work.

Other webhooks work well.

axsuul
Shopify Partner
107 0 28

We're also experiencing this for our app!

Sync your stock levels + bundles/kits in real-time between any number of Shopify, Amazon, eBay, Etsy, Faire, QuickBooks Online, Squarespace, Square, Tundra, WooCommerce stores with Trunk
Denis_R
New Member
4 0 0

Just started working again.

 

Thanks Shopify team for the fix!

Delirious_Apps
Tourist
7 0 9

Hi, I have just released that this has been affecting my app. We track inventory for our users so this is a massive problem. 
I can conform that is not working currently
We create a webhook via the API /admin/webhooks.json and when I delete a product through the admin interface no webhook is received by our app?

 

 

Alex
Shopify Staff
1561 81 341

Would anyone here be able to confirm whether this is affecting only their developer shops or active shops belonging to merchants as well?

 

It looks like I cannot replicate this on any non-development shops at the moment, so a pulse check here would be very helpful.

 

Cheers.

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Vadim1
Shopify Partner
16 0 7

I have no access to the merchant's shop to test it again but it looks like yes, it can be replicated in real shops.

I faced this issue when the product was deleted in a real shop but not in my database, and the webhook was active all the time (I checked logs, no requests from Shopify to this webhook)

Then I tested webhook in my development shop, and only then I created this topic.

 

I know it's not a lot of information, but hope it will help somehow.

 

Vadim.

 

Delirious_Apps
Tourist
7 0 9

It is affecting merchant shops as well. 

thesilkroad
Tourist
4 0 1

Any update regarding the issue ?

moshelog
Shopify Partner
19 0 5

We are facing the same issues. 

 

Moshe Lugasi
Alex
Shopify Staff
1561 81 341

@thesilkroad nothing to share yet by way of updating. Exact environments in which this is replicable are hard to come by and inconsistent, we're still working on finding the source of the issue.

 

If anyone can, providing X-Request-Id response headers returned from product deletion requests are appreciated. If you're deleting products from within the Admin, the network tab in your browser's developer tools can be used to see that API call and its response headers.

 

Cheers.

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

EricHirsh
Shopify Partner
1 0 0

@Alex  the Bronto QA team responsible for automated testing noticed something with our Shopify development store/Bronto staging environment that is likely related to this issue. The Bronto app only receives product webhooks, does not write product data. Anyway, the QA team has provided an X-Request-Id response header, hopefully this is helpful to you all:

 

Endpoint we are hitting via REST:  admin/products/" + productId + ".json
 

X-Request-Id: 60cf7fde-d9c8-4cae-b641-5ff9920994b2

 

Full request response header:

{X-ShardId=[64], X-Sorting-Hat-ShopId=[19739083], X-Stats-ApiClientId=[1645829], Server=[cloudflare], X-Shopify-API-Terms=[By accessing or using the Shopify API you agree to the Shopify API License and Terms of Use at https://www.shopify.com/legal/api-terms], X-Shopify-Stage=[production], X-ShopId=[19739083], X-Permitted-Cross-Domain-Policies=[none], HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT=[1/40], X-Stats-ApiPermissionId=[51861229], X-Stats-UserId=[], X-Shopify-Shop-Api-Call-Limit=[1/40], X-Frame-Options=[DENY], Referrer-Policy=[origin-when-cross-origin], Strict-Transport-Security=[max-age=7889238], Report-To=[{"group":"network-errors","max_age":2592000,"endpoints":[{"url":"https://monorail-edge.shopifycloud.com/v1/reports/nel/20190325/shopify"}]}], Content-Security-Policy=[default-src 'self' data: blob: 'unsafe-inline' 'unsafe-eval' https://* shopify-pos://*; block-all-mixed-content; child-src 'self' https://* shopify-pos://*; connect-src 'self' wss://* https://*; frame-ancestors 'none'; img-src 'self' data: blob: https:; script-src https://cdn.shopify.com https://cdn.shopify.cnhttps://checkout.shopifycs.com https://js-agent.newrelic.com https://bam.nr-data.net https://dme0ih8comzn4.cloudfront.net https://api.stripe.comhttps://mpsnare.iesnare.com https://appcenter.intuit.com https://www.paypal.com https://js.braintreegateway.com https://c.paypal.comhttps://maps.googleapis.com https://www.google-analytics.com https://v.shopify.com https://widget.intercom.io https://js.intercomcdn.com 'self' 'unsafe-inline' 'unsafe-eval'; upgrade-insecure-requests; report-uri /csp-report?source%5Baction%5D=destroy&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fproducts&source%5Bsection%5D=admin_api&source%5Buuid%5D=60cf7fde-d9c8-4cae-b641-5ff9920994b2], X-Shopify-API-Version=[2019-04], Set-Cookie=[__cfduid=d0c39f581be71521a046aebd2e321287a1570110922; expires=Fri, 02-Oct-20 13:55:22 GMT; path=/; domain=.myshopify.com; HttpOnly], X-Dc=[gcp-us-east1,gcp-us-east1], X-XSS-Protection=[1; mode=block; report=/xss-report?source%5Baction%5D=destroy&source%5Bapp%5D=Shopify&source%5Bcontroller%5D=admin%2Fproducts&source%5Bsection%5D=admin_api&source%5Buuid%5D=60cf7fde-d9c8-4cae-b641-5ff9920994b2], Content-Type=[application/json; charset=utf-8], Transfer-Encoding=[chunked], CF-RAY=[51ff69d0bfdf579f-IAD], X-Request-Id=[60cf7fde-d9c8-4cae-b641-5ff9920994b2], X-Content-Type-Options=[nosniff], Connection=[keep-alive], X-Download-Options=[noopen], Date=[Thu, 03 Oct 2019 13:55:22 GMT], CF-Cache-Status=[DYNAMIC], NEL=[{"report_to":"network-errors","max_age":2592000,"failure_fraction":0.01,"success_fraction":0.0001}], X-Sorting-Hat-PodId=[64], Vary=[Accept-Encoding], Expect-CT=[max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"], Location=[https://brontobrobot.myshopify.com/admin/products]}

Vadim1
Shopify Partner
16 0 7

Hi Alex, please let me know if you need an invite to my dev. store. Maybe it will help somehow to catch a problem.

 

Vadim.

thesilkroad
Tourist
4 0 1

We are having the same issue as well. We are deleting product from our platform using API and it’s working fine. But when the product is deleting from Shopify then the Webhook is not sending request to our server.

When are we expecting a fix on that one?

Andrew-Corknine
Explorer
76 1 29

+1.

We are also having this issue with several shops and it is causing major issues for merchants.  This needs to be fixed from Shopify's end ASAP.

Alex
Shopify Staff
1561 81 341

Hey everyone. We're still looking into this one, hang tight. The intermittent nature of the issue across our testing areas is making things difficult, but it's definitely being looked into.

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

Andrew-Corknine
Explorer
76 1 29

Thanks Alex,

Do you need anything else from us to help.

 

I created the webhook via the rest API and it works on some shops but for some other shops it never fires.  These are live merchant shops.  Let me know if the shop/app information would help you to get to the bottom of this.

thiagomaia
Shopify Partner
1 0 0

Hi Alex

   You can also count on us if need to help testing as we see this happening with some shops.

t.maia@udroppy.com

 

Fei1
Shopify Partner
12 0 3

Any news on this product deletion webhook issue?

It seems the notification webhooks still not receiving the product/delete event.

Alex
Shopify Staff
1561 81 341

Hey all, update:

 

We're continuing to work on the issue. It looks to be an issue with a core dependency, so we're working with he authors of that project to get a fix pushed up. When that deploys, I'll post here.

Alex | Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

StreamerBoutiqu
Visitor
1 0 0

11/3/2019

 

Created by the api

 

Update works (though sometimes I feel like I'm getting double posted)

 

Delete still does not work. No traffic. I verified by listing my webhooks the topic and url were correct. 

 

lang c#

 

 

sanjashoelace
Tourist
6 1 5

Hi Alex,

 

Thanks just checking again if there is any updates on ETA?

SearchaniseTeam
Shopify Partner
63 0 8

Hello Alex!

 

Any updates?

Hariman101
Visitor
1 0 0

Is there any update on this issue yet please?

wirsing
Visitor
2 0 0

We are facing the same problem: Delete Product Webhooks not working. Sending a test Webhooks from the settings/notifications panel works but also not always or delayed. Please let me know if you need anything from us to help debug, happy to send headers or paste requests here. This is a critical issues, clients freak out since products can't be deleted or they have to log into another system to delete by hand. Please advise!

David_OL
Shopify Partner
58 1 4

I'm also experiencing the same problem.

 

product/delete webhook create through API but when bulk deleting products in admin, webhook doesn't fire.

banned
David_OL
Shopify Partner
58 1 4

Right i've done some debugging and it appears the webhooks don't get fired for product/delete when the product has images.

 

Steps to reproduce:

 

All steps are done through Shopify admin.

1). create a product, upload an image for it

2). duplicate product numerous times, make sure images are copied over

3). bulk delete duplicated products

 

Delete webhook doesn't fire.

 

Try above steps but without an image. Delete webhook fires.

banned
juanpabs
Visitor
1 0 0

Y have the same issue with the same behave.

and sometimes the delete webhook triggers but it didn't have any payload

vishaal93
Visitor
1 0 1

We are experiencing this as well.  Tested manually deleting products from the dashboard with image vs no image and no image seemed to fire fine.

piecesoftheocea
Visitor
1 0 1

This issue has persisted for 3 straight weeks and it's costing us a lot of money because we run an auction app that our customers are accustomed to using weekly! Please fix asap.

SearchaniseTeam
Shopify Partner
63 0 8

Hi Alex,


Some of our clients complain that product deletions are not reflected in our app (https://apps.shopify.com/searchanise). We managed to reproduce the issue in our dev store and found out the following: If a deleted product has an image, we don’t receive the necessary webhook. The products are deleted manually or through Shopify API. When it’s done this way, we don’t receive product delete hooks.

 

We are looking forward for this bug to be fixed as soon as possible. Database consistency is crucial for our app.

vertigo37
Shopify Partner
4 0 0

Any progress on this one, it has been weeks and its a major flaw to our app.

wirsing
Visitor
2 0 0

I'm wondering the same thing, I posted a while ago and we don't hear anything back. Any news?

sanjashoelace
Tourist
6 1 5

Hey all,

 

We just checked recently and are receiving the webhook again!

Andrew-Corknine
Explorer
76 1 29

We are still not receiving these webhooks.  This is a major issue and needs to be fixed on Shopify's end.  This has been going on for months.  Shopify can we please have a fix?

elSomosot
Visitor
1 0 0

is this resolved already? not getting any webhook notification for real product deletion too at the moment. 

VivekH
Excursionist
12 1 14

Hi

Is there any update on this issue?