I followed the instructions of the documentation. But something seems to be wrong with the signature.
I try to join a webinar zoom.
-
{method: “join”, status: false, result: null, errorMessage: “{“signature”:”[REDACTED]"} signatrue length error, 0 < length < 150", errorCode: 4003}
-
errorCode: 4003
-
errorMessage: “{“signature”:”[REDACTED]"} signatrue length error, 0 < length < 150"
-
method: “join”
-
result: null
-
status: false
-
proto: Object
What i do in index.js:
ZoomMtg.setZoomJSLib(‘https://source.zoom.us/1.9.1/lib’, ‘/av’);
const meetConfig = {
apiKey: [REDACTED],
meetingNumber: [REDACTED],
leaveUrl: ‘https://zoom.us/’,
userName: ‘[REDACTED]’,
userEmail: ‘[REDACTED]’, // required
passWord: ‘[REDACTED]’, // if required
role: 0 // 1 for host; 0 for attendee
};
// prepare required files
ZoomMtg.preLoadWasm();
ZoomMtg.prepareJssdk();
// make a request for a signature
fetch('https://worldofstudentszoom.herokuapp.com/', {
method: 'POST',
body: JSON.stringify({ meetingData: meetConfig })
})
.then(result => result.text())
.then(response => {
// call the init method with meeting settings
ZoomMtg.init({
leaveUrl: meetConfig.leaveUrl,
isSupportAV: true,
// on success, call the join method
success: function() {
ZoomMtg.join({
// pass your signature response in the join method
signature: response,
apiKey: meetConfig.apiKey,
meetingNumber: meetConfig.meetingNumber,
userName: meetConfig.userName,
passWord: meetConfig.passWord,
// on success, get the attendee list and verify the current user
success: function (res) {
console.log("join meeting success");
console.log("get attendee list");
ZoomMtg.getAttendeeslist({});
ZoomMtg.getCurrentUser({
success: function (res) {
console.log("success getCurrentUser", res.result.currentUser);
},
});
},
error: function (res) {
console.log(res);
},
})
}
})
})