App reviews, troubleshooting, and recommendations
I am getting success message on webhook registration for `APP_UNINSTALLED`
await Shopify.Webhooks.Registry.register({
shop,
accessToken,
path: webhookPath,
topic: 'APP_UNINSTALLED',
});
Shopify.Webhooks.Registry.addHandler('APP_UNINSTALLED', {
path: `/${API_BASE}/${WEBHOOK_ROUTES.SHOPIFY}`,
webhookHandler: async (_topic, shop) => {
console.log({ shop });
console.log('webhookHandler emitted');
this.eventEmitter.emit('shop.removed');
},
});
And I am processing it in my endpoint. However, no request to my endpoint
Are you using body-parsing middleware anywhere in your app?
express.json / bodyParser / anything that consumes the req.on('end') event will completely brick the Node package's 'process' function for webhook parsing.
Thank you for your reply
I am using Nest JS for backend of my app. I am not doing any of body parsing there.
The problem is that I am not getting any request to my endpoint.
I am console logging before processing
Facing the same problem, did you solve it?
By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024We appreciate the diverse ways you participate in and engage with the Shopify Communi...
By JasonH Sep 9, 2024Thanks to everyone who participated in our AMA with 2H Media: Marketing Your Shopify St...
By Jacqui Sep 6, 2024