App reviews, troubleshooting, and recommendations
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
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?