Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
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.
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
Store - test-store-min.myshopify.com (or x-shopid: 5267456074 from the headers)
{"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}}}}
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.
I have the same issue, any updates here?
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
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.
@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
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.
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!
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
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.
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.
We're also experiencing this for our app!
Just started working again.
Thanks Shopify team for the fix!
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?
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
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.
It is affecting merchant shops as well.
Any update regarding the issue ?
We are facing the same issues.
@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
@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:
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]}
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.
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?
+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.
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
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.
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
Any news on this product deletion webhook issue?
It seems the notification webhooks still not receiving the product/delete event.
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
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#
Hi Alex,
Thanks just checking again if there is any updates on ETA?
Hello Alex!
Any updates?
Is there any update on this issue yet please?
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!
I'm also experiencing the same problem.
product/delete webhook create through API but when bulk deleting products in admin, webhook doesn't fire.
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.
Y have the same issue with the same behave.
and sometimes the delete webhook triggers but it didn't have any payload
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.
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.
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.
Any progress on this one, it has been weeks and its a major flaw to our app.
I'm wondering the same thing, I posted a while ago and we don't hear anything back. Any news?
Hey all,
We just checked recently and are receiving the webhook again!
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?
is this resolved already? not getting any webhook notification for real product deletion too at the moment.
Hi
Is there any update on this issue?