d
Topic
Serge Member
Posts:
8
3 months ago

Uninstall webhook invokes multiple times

I created a simple test public app that reacts on uninstall event through 'app/uninstalled' webhook which has callbal url in the form https://myserver.com/shopify/uninstall.

After a week of testing I found some unexpectable behaviour of my app. I found that Shopify server can callback on  'app/uninstalled' webhook multiple times even if each time my server responce is 200 OK (successfully uninstalled from my server). Why does it happen?

https://myserver.com/shopify/uninstall?installid=2af85f7e       <-  200 OK
https://myserver.com/shopify/uninstall?installid=2af85f7e       <- callbacks again!
https://myserver.com/shopify/uninstall?installid=18ed435c     <-  200 OK
https://myserver.com/shopify/uninstall?installid=18ed435c     <- callbacks again!
https://myserver.com/shopify/uninstall?installid=18ed435c     <- callbacks again!

What might be wrong?

Thanks in advance!

i
Replies
Shayne Developer Experience
Posts:
107
3 months ago

Hey Serge,

Looking at our logs, you didn't respond 200 OK in time. You have 5 seconds to respond, or we consider it a timeout.

Serge Member
Posts:
8
3 months ago

Hmm.. I used debug so may be.

One more question then: should I manually delete all subcsribed webhooks through API when application uninstalled or Shopify will remove it automatically?

Log in or sign up for an account to reply.

f
Your Reply