Webhook registered but not fired

Solved
Highlighted
Tourist
11 1 0

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
Tourist
11 1 0

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
Tourist
11 1 0

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

Success.

Tourist
11 1 0

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.

0 Likes