i got this email from shopify:
Your webhook for products/create at https://app.com/webhooks/orders/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.
Im getting this message because Shopify is telling me they are not getting a 200 successful response after receiving the webhook
this is what my webhook looks like:
router.post('/webhooks/orders/create', webhook, (ctx) => {
ctx.status = 200
ctx.body = {
status: 'success',
message: 'Successfully updated.'
};
console.log('received order webhook: ', ctx.state.webhook);
])
as you see i have both
ctx.status = 200
and
ctx.body = {
status: 'success',
message: 'Successfully updated.'
};
and they are telling me i am not sending a success response. Anybody know what i have to do here?