我正在用api做一些工作,我需要向我的解析服务器发一个帖子请求,但是我收到错误error:{unauthorized access}
,我很确定这是因为键,但我是不确定。我正在使用邮递员来查看我是否可以向app.post函数发出请求,但是我收到了上述错误。我正在向{https://xxxxxxxx.herokuapp.com/parse/index/testing
var mountPath = process.env.PARSE_MOUNT || '/parse';
app.use(mountPath, api);
app.get('/', function(req, res) {
res.status(200).send('I dream of being a website. Please star the parse- server repo on GitHub!');
});
app.post('/testing', twilio.webhook({ validate: false }), headers: {"AppId": "", "MasterKey": ""}, function (req, res) {
console.log("testing")
});
Heroku记录
at=info method=POST path="/parse/index/testing" host=xxxxxxx.herokuapp.com request_id=..... fwd="xx.xxx.xxx.xxx" dyno=web.1 connect=1ms service=41ms status=403 bytes=506