Webhook responds with 422

Shopify Partner
115 0 7

I am getting an error when trying to install an app on my dev-shop. Durnig the installation process, after receiving the permanent access_token,  I send a request to '/admin/webhooks.json', to set up an uninstall webhook, and get an error back:

{"error":{"address":["for this topic has already been taken"]},"code":422}

What can I do to resolve this issue?

I'm guessing that this is the result of the uninstall webhook not being deleted after the app is uninstalled.

I have tried uninstalling and reinstalling the app, but keep getting the same error. This only became an issue after I moved the app from heroku to my own server.

Shopify Staff (Retired)
Shopify Staff (Retired)
531 0 88

Hi Halley,

This error is thrown when there is already a webhook registered with this topic and address combination. Is it possible that your application is attempting to register the webhook twice?

If you perform a GET request on /webhooks.json, you should be able to see the existing webhook registrations for your particular API client.