Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
Hi,
I have created an app for the shopify app store. Now when I am testing the application (installing, clicking around, uninstalling, ...) I noticed that the uninstall webhook get's called multiple times.
In the screenshot you can see when the request came in from shopify (via webhook) and how long it took and the response status code.
This happens to me all the time and I am not able to test my application efficiently because I am always receiving uninstall webhooks from shopify and my application thinks then that the shop uninstalled the app and acts that way.
Am I missing something so obvious here? Can somebody help me out here?
What I did
gql` mutation webhookSubscriptionCreate { webhookSubscriptionCreate( topic: APP_UNINSTALLED, webhookSubscription: {callbackUrl: "/webhooks/app/uninstall", format: JSON} ) { userErrors { field message } webhookSubscription { id } } } `
Would be great if somebody could help me out here.
EDIT:
To visualize it a bit better. Below is a image of the logs of the last 24 hours.
In the last 24 hours 24 webhook requests entered for my test store named app-test-dev-store.myshopify.com
I am not sure but I think this is not the desired behavior.
How did y'all solved this ? Am I registering the hooks wrong ?
Would appreciate every help.
Have you found any solution? I am having the same issue.