0

我正在尝试通过 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)
4

0 回答 0