This message was deleted.
# helpdesk
s
This message was deleted.
d
hi, which version of the server are you running? the issue is due to Express parsing the JSON payload. you'd have to use the
raw
handler for this path. Something like:
Copy code
router.use('/webhook/path', express.raw());
1
m
thank you solved 🙂
just express raw not worked,
Copy code
this.app.use('/webhook',function(req, res, next){
			var data = "";
			req.on('data', function(chunk){ data += chunk})
			req.on('end', function(){
			   req.rawBody = data;
			   next();
			})
		 });
i think it will usefull for someone 🙂
🙏 1
d
great to hear! thank you for sharing the solution.