Calling opentok.startArchive for two requests of mine. Both have valid room name values which are given for this method. Thus, I do not think that it is because of my request.
One error indicates that "Unexpected response from OpenTok", another error in the successful part. Not sure what specifically the problem is. JSON.stringify(err)
gives me that much details. Any ideas how I can dig in?
router.post('/startArchive', function (req, res, next) {
......
........
}).then(function (sessionId) {
console.log("#start_archive")
opentok.startArchive(sessionId, {
name: roomName,
outputMode: "individual" //composed
}, function (err, archive) {
if (err) {
console.log("opentok error")
res.json(err);
res.end();
return console.log(JSON.stringify(err));
}
else{
/*SUCCESSFULL*/
}
});