Your webhook is failing

yanteb
Shopify Partner
32 0 4

i got this email from shopify:

Your webhook for products/create at https://app.com/webhooks/products/create is failing to return a successful response.

 

This webhook has been attempted 2 times. If your webhook continues to fail, it will be removed and your application will not receive any more notifications.

 

i put ctx.status = 200 after the webhook, but i'm still getting this email? how do i resolve?

0 Likes
achieveapplabs
Shopify Partner
470 36 74

Hi @yanteb ,

 

Webhooks can be removed by Shopify for too many failed attempts. You’ll have to subscribe to the webhook again and recover any lost data since that time. 

Best,

 

Sam 

Install Approovly to create and track order approvals | We want to hear from you hello@achieveapplabs.com | Follow us on Twitter @achieveapplabs | Custom Shopify Apps achieveapplabs.com
0 Likes
yanteb
Shopify Partner
32 0 4

I do not want the webhook to be removed. How do I respond with a 200 level response after receiving the webhook?

0 Likes
achieveapplabs
Shopify Partner
470 36 74

Depends on your programming language we use Nodejs with Express so it looks like this

 

response.status(200).send();

 

 

Install Approovly to create and track order approvals | We want to hear from you hello@achieveapplabs.com | Follow us on Twitter @achieveapplabs | Custom Shopify Apps achieveapplabs.com
0 Likes
yanteb
Shopify Partner
32 0 4
Do you happen to know what it would be with KOA server?
0 Likes
achieveapplabs
Shopify Partner
470 36 74

This question has been asked before:

 

https://community.shopify.com/c/Shopify-APIs-SDKs/How-do-I-send-200-response-to-shopify-webhook-usin...

Install Approovly to create and track order approvals | We want to hear from you hello@achieveapplabs.com | Follow us on Twitter @achieveapplabs | Custom Shopify Apps achieveapplabs.com
0 Likes