Joining meeting timeout. - websdk-sample-angular

I am receiving the following message

Joining meeting timeout.
Your connection has timed out and you cannot join the meeting. Verify your network connectivity and try again.

I clone the websdk-sample-angular
the code is apparently correct
but I’m getting this error

{
method: “join”
status: false
result: null
errorMessage: undefined
errorCode: 1
}

Hey @felipe_alvess,

Can you please private message me the signature you are generating so I can debug?

Thanks,
Tommy

Hi Tommy !

thanks for answering

I’m putting my code so you can run it if you want

import { Component, OnInit, Inject } from ‘@angular/core’;

import { HttpClient } from ‘@angular/common/http’;

import { DOCUMENT } from ‘@angular/common’;

import { ZoomMtg } from ‘@zoomus/websdk’;

ZoomMtg.preLoadWasm();

ZoomMtg.prepareJssdk();

@Component({

selector: ‘app-root’,

templateUrl: ‘./app.component.html’,

styleUrls: [’./app.component.css’]

})

export class AppComponent implements OnInit {

signatureEndpoint = MY_ENDPOINT;

apiKey = MY_API_KEY

meetingNumber =;

role = 0;

leaveUrl = ‘localhost:4200’;

userName = ‘WebSDK’;

userEmail = ‘’;

passWord = ‘’;

constructor(

public httpClient: HttpClient,

@Inject(DOCUMENT) document: any

) { }

ngOnInit() {

}

getSignature() {

this.httpClient.get(`${this.signatureEndpoint}?apiKey=${this.apiKey}&meetingNumber=${this.meetingNumber}&role=${this.role}`,

  { responseType: 'text' }).toPromise().then((data: any) => {

    this.startMeeting(data);

  });

}

startMeeting(signature: any) {

document.getElementById('zmmtg-root').style.display = 'block';

ZoomMtg.init({

  debug: true,

  leaveUrl: this.leaveUrl,

  isSupportAV: true,

  success: (success: any) => {

    ZoomMtg.join({

      signature,

      meetingNumber: this.meetingNumber,

      userName: this.userName,

      apiKey: this.apiKey,

      userEmail: this.userEmail,

      passWord: this.passWord,

      success: (suc: any) => {

        console.log('join suc', suc);

      },

      error: (error: any) => {

        console.log('join error', error);

      }

    });

  },

  error: (error: any) => {

    console.log('errorrrr', error);

  }

});

}

}

Thank you so much!

Hey @felipe_alvess,

What are you passing in for the meeting ID? Thanks for sharing your code, but it would be great to know the signature value because that is where the issue will be.

Thanks,
Tommy

signatureEndpoint = ‘’;

apiKey = ‘’;

meetingNumber = ;

getSignature() {

this.httpClient.get(`${this.signatureEndpoint}?apiKey=${this.apiKey}&meetingNumber=${this.meetingNumber}&role=${this.role}`,

  { responseType: 'text' }).toPromise().then((data: any) => {

    this.startMeeting(data);

  });

}

Hey @felipe_alvess,

Make sure you are accessing the signature key to get the value, for example in your code you have:

startMeeting(signature: any) {

document.getElementById('zmmtg-root').style.display = 'block';

ZoomMtg.init({

  debug: true,

  leaveUrl: this.leaveUrl,

  isSupportAV: true,

  success: (success: any) => {

    ZoomMtg.join({

      signature,

Try:

startMeeting(signature: any) {

document.getElementById('zmmtg-root').style.display = 'block';

ZoomMtg.init({

  debug: true,

  leaveUrl: this.leaveUrl,

  isSupportAV: true,

  success: (success: any) => {

    ZoomMtg.join({

      signature.signature,

Let me know if that works!

Thanks,
Tommy

signature.signature is an invalid code
can i use
signature: signature

iam using shorthand in object literal
signature

none of these options worked

Hey @felipe_alvess,

Gotcha!

What version of the Web SDK are you using? Please try using the latest 1.7.6.

Thanks,
Tommy

Hello @tommy

i’m using

@zoomus/websdk”: “^1.7.6”,

Hello @tommy

after trying hard to find the problem on the front end I decided to make a backend node to test,
the problem was in the java backend that someone else did and I had no way to verify

1 Like

Hey @felipe_alvess,

Were you able to get it working?

Thanks,
Tommy

Hey @tommy

yes, it’s working

an unstable version with angular 8

now we need to work on angular 9

Hey @felipe_alvess,

Glad to hear it is working! :slight_smile: I will test and upgrade the Angular sample app to Angular 9.

Thanks,
Tommy

Thanks @tommy

will help a lot

Hey @felipe_alvess,

I tested with Angular 9 and it worked. :slight_smile:

I will update the repo soon to Angular 9.

Thanks,
Tommy

Thanks @tommy

it’s working

1 Like

Happy to hear you got it working! :slight_smile:

Thanks,
Tommy