WebHook keeps getting deleted

Highlighted
Tourist
8 0 2

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

0 Likes
Highlighted
Shopify Staff
Shopify Staff
5 1 0

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.

0 Likes
Highlighted
Tourist
8 0 2

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 
0 Likes
Highlighted
Shopify Staff
Shopify Staff
5 1 0

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.

0 Likes