Webhook registered but not fired

Solved
Highlighted
Excursionist
13 1 1

I've been working on an app in dev store and noticed that my ngrok webhook (dev environment) works ok however once I change my calbackUrl to production name i. e. https://mysite... on the same website and reinstall the app (it reinstalls just fine, I see that webhook registration go through) the webhook no longer calls the callbackUrl.

 

Any ideas why is that or what I can do to try and figure this one out?

 

I suspect that shopify may remember the first registration somehow and never clear it, but I could be wrong.

 

Thanks!

0 Likes
Highlighted
Excursionist
13 1 1

So I did a little test, my app was reinstalled with production setup, webhooks registered with https://my-site... I triggered an action that causes webhook to execute while running my dev environment locally and the dev environment received the webhook. Why and how I don't know? There seems to be a similar bug/issue with proxies :(

0 Likes
Highlighted
Excursionist
13 1 1

Finally I received an email from Shopify with Error: x509: certificate signed by unknown authority  on my webhook what are known authorities does anybody know?

 

I signed with letsencrypt using cerbot command, which seems to be pretty standard.

 

???

0 Likes
Highlighted
Excursionist
13 1 1

This is an accepted solution.

For those having a similar issue here's what I had to do: I had to import fullchain.pem to my server's config/options. To test you can see posted link in here: https://community.shopify.com/c/API-Announcements/Changes-to-Webhook-SSL-certificate-verification-on...

 

My certificate was working only for some browsers and I needed fullchain.pem to make it work everywhere.

1 Like
Highlighted
New Member
1 0 0

Thank you, It is really helpful to sort out the issue. I was facing the same issue. Thanks

0 Likes
Highlighted
Shopify Partner
2 0 0

Where can you see that the webhook is registered?

I am having the same issue. I am a ruby developer with a rails framework.

I already added the question. question link: https://community.shopify.com/c/Shopify-APIs-SDKs/Not-able-to-add-webhook-on-the-Heroku/m-p/705030#M...

I deployed my code on Heroku but my Shopify webhook is not working, In my local development the webhooks are working fine with NGROK. But on Heroku, it's not working.

So, I want to know how can you know that the webhook is registered and where can you find the registered webhooks?

0 Likes