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.
Solved! Go to the solution
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 :(
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.
|4 hours ago|
|5 hours ago|
|6 hours ago|
|7 hours ago|
|7 hours ago|