Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Shopify Webhook not receiving 200 from me

Shopify Webhook not receiving 200 from me

Realitems
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!

Replies 2 (2)

Vellir
Shopify Partner
146 32 40

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;
  });
- Looking for a Wishlist? Try First Wish

- Shopify Merchants, manage your new arrivals with Newr

- Shopify Developers, if you're looking into selling your app to focus on other projects, drop me a line.
Realitems
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.