Error when join to meeting from Web SDK: The meeting number is wrong

I’m trying to join a meeting from Web SDK. The meeting created from Zoom Desktop app.
I copy the meeting id and password from desktop app and paste it to my meeting config.
When I run my Javascript client it gives following error:

errorCode: 3706
errorMessage: "The meeting number is wrong."
method: "join"
result: "The meeting number is wrong."
status: false

Here is my example js code, maybe I’m missing some parameters:

const meetingConfig = {
apiKey: 'API_KEY_HERE',
meetingNumber: 'IM WRITING MEET ID HERE',
leaveUrl: 'http://localhost:8080/',
userName: 'Demo Username',
userEmail: 'firstname.lastname@yoursite.com', // required for webinar
passWord: 'PWWWD', // if required
role: 0 // 1 for host; 0 for attendee or webinar
};

$(function () {
ZoomMtg.setZoomJSLib('https://source.zoom.us/1.7.9/lib', '/av');
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();

getSignature(meetingConfig);
});


function getSignature() {
    fetch('/mtg/signature', {
        method: 'GET'
    })
        .then(result => result.text())
        .then(response => {
            console.log(response);
            beginJoin(response);
        })

}

function beginJoin(signature) {
ZoomMtg.init({
    leaveUrl:meetingConfig.leaveUrl,
    isSupportAV: true,
    debug: true,
    success: function () {
        console.log(meetingConfig);
        console.log("signature", signature);
        ZoomMtg.join({
            meetingNumber: meetingConfig.meetingNumber,
            userName: meetingConfig.userName,
            signature: signature,
            apiKey: meetingConfig.apiKey,
            userEmail: meetingConfig.userEmail,
            passWord: meetingConfig.passWord,
            success: function (res) {
                console.log("join meeting success: ", res);
                console.log("get attendeelist");
                ZoomMtg.getAttendeeslist({});
                ZoomMtg.getCurrentUser({
                    success: function (res) {
                        console.log("success getCurrentUser", res.result.currentUser);
                    },
                });
            },
            error: function (res) {
                console.log(res);
            },
        });
    },
    error: function (res) {
        console.log(res);
    },
});
}

Hey @Joshgun,

Please share your Web SDK signature so I can help you debug it.

Thanks,
Tommy

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.