Node.js YouTube Live Webhook回调内容为空

Node.js YouTube Live Webhook回调内容为空,node.js,youtube-api,youtube-data-api,Node.js,Youtube Api,Youtube Data Api,这是我对YT Live的pubsubhub的回调端点,当我上线时,它会收到来自YouTube的请求,但它的输出是空的 server.post('/yt_webhook', async function(req,res){ console.log('in post'); console.log(req.read()); console.log(req.body); console.log(req.query); res.status(200); re

这是我对YT Live的pubsubhub的回调端点,当我上线时,它会收到来自YouTube的请求,但它的输出是空的

server.post('/yt_webhook', async function(req,res){
    console.log('in post');
    console.log(req.read());
    console.log(req.body);
    console.log(req.query);
    res.status(200);
    res.send();
})
此操作的输出为

in post
null
{}
{}

当文档声明它应该是youtube视频的XML格式时。搜索完整的请求对象时,我看不到任何指向该对象的内容。

使用ExpressXMLBodyParser作为中间件就可以做到这一点。现在我有:

var xmlbodyparser = require('express-xml-bodyparser');
server.use(xmlbodyparser())
server.post('/yt_webhook', async function(req,res){
    console.log(req.body);
    res.status(200);
    res.send();
})