WebHook keeps getting deleted

lam3001
Tourist
8 0 5

Hi there,

We have a custom webhook and it keeps getting deleted with no warning or messages that I am aware of.

If the webhook is failing intermittently, it would be great to see a log or get some kind of notification about that.

It has been completely deleted twice now, and resulted in bunch of manual operational work & heartache.

Thanks

Replies 9 (9)

armurray
Shopify Staff
15 4 3

In general, webhook subscriptions should only be automatically deleted after an individual webhook delivery fails 20 times over a 48 hour period. You should receive two emails during that process: A warning email when repeated failures are detected on the subscription, and a deletion email when the subscription is actually deleted.

If you haven't received those emails we'd be happy to look into this further, but we'll need a bit more information. In particular, it would be helpful to know your best estimate of when the subscriptions were deleted and the endpoint URL the subscriptions had. You can post that information in this thread if you're comfortable doing so, but you can also DM them to me directly if you'd prefer.

armurray | Developer @ 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 Shopify.dev or the Shopify Web Design and Development Blog

lam3001
Tourist
8 0 5

I can confirm two things:

  1. We did not receive a single email message (checked spam/trash too) about this. They have been deleted twice now so we would have expected multiple emails.
  2. Our webhooks are succeeding because we are seeing the data show up in our other system. However on close inspection they return 204 not 200. All 200-level response codes are considered success, and 204 is actually more accurate in our case. Are you saying that Shopify considers 204 an error? From the HTTP specification, "Successful responses (200–299)" https://developer.mozilla.org/en-US/docs/Web/HTTP/Status 
armurray
Shopify Staff
15 4 3

A 204 is fine-- the webhook delivery service will treat any 200-level response as a success.

I would like to investigate this further to see what the problem is. Would you mind sharing the destination URL or shop_id? You can post it in this thread or DM it to me.

armurray | Developer @ 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 Shopify.dev or the Shopify Web Design and Development Blog

mariyakorotko
Tourist
3 0 1

Hi there, were you able to resolve this issue? We are experiencing something very similar where the webhook gets deleted with out any warnings

Alexishh670
Visitor
2 0 0

@armurray  i´m having the same problem, we always return 200 code but we still seeing webhooks removed every week. what can we do to avoid this?

mariyakorotko
Tourist
3 0 1

Hi there, was your problem ever resolved? We are getting the same issue of our webhook getting deleted every Sunday. Any help would be appreciated. 

NehaJain
Visitor
2 0 0

Hi, I'm also getting the same issue. I've created a Webhook on order creation but It's getting removed automatically every Sunday Is your issue get resolved?

Alexishh670
Visitor
2 0 0

Hello. do you still have the same issue? @Mariyakorotko ?
i´m having the same problem.

Tantu
Visitor
1 0 0

Hello all, 

 

Were you able to solve the issue? I am having the same problem with webhooks for "order creation" getting deleted every week.