我正在尝试通过Twilio在Meteor上设置传出呼叫。为此,我在后端有一个方法来生成一个能力令牌。
当我尝试实际发起呼叫时,我得到了RangeError
似乎没有其他人经历过。
// get capability token
Meteor.call('twilioCallToken', function(err, capToken) {
if (capToken) {
Twilio.Device.setup(capToken, { closeProtection: true }); // RangeError thrown on this line
}
});
确切的错误是:
Exception in delivering result of invoking 'twilioCallToken': RangeError: Maximum call stack size exceeded
at a.addCommand.(anonymous function) [as setup] (https://static.twilio.com/libs/twiliojs/1.2/twilio.min.js:1:411)
at a.addCommand.(anonymous function) [as setup] (https://static.twilio.com/libs/twiliojs/1.2/twilio.min.js:1:411)
at a.addCommand.(anonymous function) [as setup] (https://static.twilio.com/libs/twiliojs/1.2/twilio.min.js:1:411)
at a.addCommand.(anonymous function) [as setup] (https://static.twilio.com/libs/twiliojs/1.2/twilio.min.js:1:411)
at a.addCommand.(anonymous function) [as setup] (https://static.twilio.com/libs/twiliojs/1.2/twilio.min.js:1:411)
at a.addCommand.(anonymous function) [as setup] (https://static.twilio.com/libs/twiliojs/1.2/twilio.min.js:1:411)
at a.addCommand.(anonymous function) [as setup] (https://static.twilio.com/libs/twiliojs/1.2/twilio.min.js:1:411)
at a.addCommand.(anonymous function) [as setup] (https://static.twilio.com/libs/twiliojs/1.2/twilio.min.js:1:411)
at a.addCommand.(anonymous function) [as setup] (https://static.twilio.com/libs/twiliojs/1.2/twilio.min.js:1:411)
at a.addCommand.(anonymous function) [as setup] (https://static.twilio.com/libs/twiliojs/1.2/twilio.min.js:1:411)