Shopify Webhook not receiving 200 from me

Highlighted
Shopify Partner
5 0 1

Hello!

I'm having trouble with webhooks. Seems like Shopify is not receiving response 200 from me anytime. I've even removed all code and just response to a webhook trigger and it's still the same, Shopify retries sending the webhook.

I'm using everything same as it is in Node.js example app. What could be the issue? How should the response really look like (code) when I have multiple webhook subscriptions?

Thank you!

0 Likes
Highlighted
Shopify Partner
112 23 27

Hi Realitems,

 

Can you post the code you're using so I can have a look?

 

If you're using the React/Node example, your code should look like this:

 

  router.post("WEB_HOOK_URL", ctx => {
    ctx.res.statusCode = 200;
  });
- Yes, we build Shopify Apps. Hit me with your idea: https://vellir.tech
- Let customers preview your products and easily add them to cart with Peek Mode
- Add free, good looking social share icons with built-in analytics to your store with Share Lab
- Manage your new arrivals with Newr
1 Like
Highlighted
Shopify Partner
5 0 1

Hello there, thank you for your reply!

This is exactly how it's done, but for some reason Shopify does not receive response 200
Maybe it's not receiving it in wait time period, but I've tested with only that line and I can see receiving the same trigger again.

0 Likes