I am using zoomus/websdk component view.
When i join the meeting, {“type”: “INVALID_PARAMETERS”, “reason”: “userId is not correct” } error is logged.
When i end the meeting {type: ‘IMPROPER_MEETING_STATE’, reason: ‘closed’} is displayed.
How are these errors to be handled?
@aishwarya.wappnet,
Thank you for reaching out to the Developer Forum. In order to provide you with the best possible support, we kindly request that you share a screenshot of the browser console and include your Web SDK join method. By providing us with this information, we will be able to better understand the context of the issue and help diagnose what may be happening. Once we have this information we can help diagnose what may be happening.
Init and Join methods!
try {
const client = await ZoomMtgEmbedded.createClient();
const tmpPort = window.location.port === "" ? "" : ":" + window.location.port;
const avLibUrl =
window.location.protocol +
"//" +
window.location.hostname +
tmpPort +
"/lib";
let meetingSDKElement = document.getElementById('meetingSDKElement')
client.init({
debug: true,
webEndpoint: 'zoom.us',
zoomAppRoot: meetingSDKElement,
language: 'en-US',
assetPath: avLibUrl,
disableDraggable: true,
leaveUrl: 'http://localhost:3000/dashboard',
customize: {
video: {
isResizable: false,
defaultViewType: "gallery",
popper: {
disableDraggable: true,
},
viewSizes: {
default: {
width: 600,
height: "100%",
}
}
},
}
}).then((res) => {
console.log('success');
}).catch((error) => {
console.log(error);
})
client.join({
topic: 'Meeting',
sdkKey: process.env.REACT_APP_SDK_KEY,
signature: signature,
meetingNumber: "83147374877",
password: "177610",
userName: "Linux#chrome/117.0.0.0",
success: function (res) {
console.log(res);
console.log('success');
},
error: function (res) {
console.log('error');
}
}).then((res) => {
console.log(res);
}).catch((res) => {
console.log('catch error', res);
})
} catch (error) {
console.log(error);
}
When i join the meeting
When i end the meeting:
I have followed the @zoomus/websdk - npm and the Meeting SDK - web - component view - Meetings documentations. I am just unable to solve mentioned issue.
This meeting sdk is being integrated in react. Is there something extra to be configured in the project? Please give me the solution for the above mentioned issue such that it works on both PRODUCTION and DEVELOPMENT.
It is unclear what issue you are facing. Are you saying that the SDK works in the developer environment but not in production? If that is the case, could you please explain how you are deploying to production and provide details about what was working and what broke during your developer process? Deploying the SDK should not require any additional configuration.
Additionally, please verify that you are using the correct user ID. I recommend double-checking the role you have when joining the meeting. Are you the host or a participant?