Solved

Webhook registered but not fired

iandme
Excursionist
13 1 3

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!

Accepted Solution (1)
iandme
Excursionist
13 1 3

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.

View solution in original post

Replies 6 (6)

iandme
Excursionist
13 1 3

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 😞

iandme
Excursionist
13 1 3

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.

 

???

iandme
Excursionist
13 1 3

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.

hussnainsheikh1
Shopify Partner
4 0 1

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

Artik
Shopify Partner
2 0 0

@iandme can you please let me know how we can configure for the  fullchain.pem webhook is not fired tried many times but working on local with NGROK

 

Please reply ASAP its urgent 

 

Looking forward to hearing from you

Thanks!

jigar_narola
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?