我的代码是:
exports.main = async (event, context) => {
const content = event.content;
const tokenResp = await got(TOKEN_URL);
const tokenBody = JSON.parse(tokenResp.body);
const token = tokenBody.access_token;
const checkResp = await got(CHECK_URL+token,{
body: JSON.stringify({
content: content
})
});
const checkBody = JSON.parse(checkResp.body);
console.log(checkBody);
}
提示错误:{"errorCode":1,"errorMessage":"user code exception caught","stackTrace":"Unexpected token *"}
相似问题