Description:
I am integrating the Zoom Web SDK (@zoomus/websdk version 2.18.3) into my web application, but I am encountering an issue where the join method fails with error code 1. The error response is as follows:
{
"method": "join",
"status": false,
"result": null,
"errorMessage": "Fail to join the meeting.",
"errorCode": 1
}
Fetching Signature & Joining the Meeting
fetch("generate_signature.php", {
method: "POST",
body: JSON.stringify({ meetingData: meetConfig }),
})
.then((result) => result.text())
.then((response) => {
console.log("Generated Signature:", response);
ZoomMtg.init({
leaveUrl: meetConfig.leaveUrl,
isSupportAV: true,
success: function () {
ZoomMtg.join({
signature: response,
sdkKey: meetConfig.sdkKey,
meetingNumber: meetConfig.meetingNumber,
userName: meetConfig.userName,
userEmail: meetConfig.userEmail,
passWord: meetConfig.passWord,
role: meetConfig.role,
success: function () {
console.log("Join meeting success");
},
error: function (err) {
console.error("Join error:", err);
},
});
},
});
});
Troubleshooting Steps Taken:
- Verified that the meeting number and password are correct.
- Ensured that the SDK Key used in
meetConfigmatches the one used to generate the signature. - Checked that the meeting is started when trying to join as an attendee (
role: 0). - Logged the generated signature and it appears correctly formatted.
- Tried joining from another device, and the meeting works fine through Zoom’s native client.
- Verified that the Web SDK version (
2.18.3) matches the version used insetZoomJSLib. - Checked for CORS errors or API call failures, and all requests seem to be succeeding.
Questions:
- What does error code
1specifically indicate in this context? - Are there any additional debugging steps I should take to verify why
ZoomMtg.join()is failing? - How to resolve this issue.