cancel
Showing results for 
Search instead for 
Did you mean: 
The Zoom Community will be placed in read-only mode January 9th, 2026 through January 22nd, 2026 to deliver you a new and improved community experience!

The community will still be accessible, however, the creation of any new discussions or replies will be temporarily unavailable. We appreciate your patience during this time.

Fail to join the meeting. error code 200. and This account does not exist or does not belong to you

NabeelTariq
Newcomer
Newcomer

I generated a meeting using server-to-server oauth app and when I join the meeting with SDK it gives me an error

  generateSignature(
    sdkSecret,
    sessionName,
    role,
    sessionKey,
    userIdentity
  ) {
    const iat = Math.round((new Date().getTime() - 30000) / 1000);
    const exp = iat + 60 * 60 * 2;
    const oHeader = { alg: "HS256", typ: "JWS" };

    const oPayload = {
      app_key: "xZYFwOaR7C1vP76lewExQ",
      tpc: sessionName,
      role_type: role,
      meeting_number: this.meetingNumber,
      session_key: sessionKey,
      user_identity: userIdentity,
      iat: iat,
      exp: exp,
    };

    const sHeader = JSON.stringify(oHeader);
    const sPayload = JSON.stringify(oPayload);
    const signature = KJUR.jws.JWS.sign("HS256", sHeader, sPayload, sdkSecret);
    console.log("signature: ", signature );
   
    return signature;
  }

  async startVideoMeeting() {
    // Using "await" syntactical sugar:
    try {
      const data = await this.videoClient.join(
        "Cool Cars",
               this.generateSignature(
          "05IA7zFz26Rc0S01eGyoWAENKEVreXoN",
          "Cool Cars",
          1,
          "testmeet123",
          "Nabeel Tariq"
        ),
        "Nabeel Tariq",
        "testmeet123"
      );
      this.stream = this.videoClient.getMediaStream();
      // console.log(data);
    } catch (error) {
      console.log("Error: ", error);
      if (error.type == "JOIN_MEETING_FAILED") {
        console.log("join meeting failed. Reason: ", error.reason);
        console.log("error code: ", error.errorCode);
       
      }
    }
  }
0 REPLIES 0