在尝试使用下面的示例代码时需要帮助修复我得到的错误:
var aws = require('aws-sdk');
const alexaforbusiness = new aws.AlexaForBusiness({ region: "us-east-1" });
export async function main(event, context) {
try{
var params = {
UserId: event.body.uid,
Email: event.body.email,
FirstName: event.body.FirstName,
LastName: event.body.LastName,
Tags: [{
Key: event.body.tag,
Value: event.body.tagVal
},
]
};
var cData = await alexaforbusiness.createUser(params);
}
catch(err){
console.log(err, err.stack);
}
}
我收到以下错误:
err.message : Converting circular structure to JSON
--> starting at object with constructor 'Request'
| property 'response' -> object with constructor 'Response'
--- property 'request' closes the circle
谢谢 !!