【问题标题】:Signature verification failure - RTM Token签名验证失败 - RTM 令牌
【发布时间】:2020-05-19 07:26:14
【问题描述】:

https://github.com/AgoraIO-Usecase/Video-Calling/tree/master/OpenDuo-Web

我已经按照上面列出的步骤进行了设置。

我有一个 RTM 令牌生成器,并将生成的令牌放在 this._token = '' 中,如下面的代码示例中所列。

收到如下错误。 RTM:ERROR 错误代码5。签名验证失败

export default class RTMClient {
constructor () {
this._client = AgoraRTM.createInstance(appID)
this._uid = ''
this._token = '' // token placed here after generating 
this._invitation = null
this._remoteInvitation = null
this.eventBus = new EventEmitter() 

//This status is used to control whether the phone can be accessed
//The 'onLine' is ok.
this.status = 'offLine' //onLine, offLine, calling, meeting

this.peerInvitation()
}

【问题讨论】:

  • 嘿!你能提供堆栈跟踪吗?
  • 生成该特定 uid 的令牌。您生成的随机数。

标签: agora.io


【解决方案1】:

当您没有从为 rtc 和 RTM 包创建的 UID 生成令牌时,可能会出现此错误。 要解决此问题,您需要根据 uuid(随机数)生成令牌。

【讨论】:

    猜你喜欢
    • 2019-06-14
    • 2017-05-19
    • 2014-10-08
    • 2019-11-19
    • 2021-09-10
    • 2017-11-26
    • 2017-07-06
    • 1970-01-01
    • 2016-11-25
    相关资源
    最近更新 更多