Joining meeting timeout - Invalid parameter (Web SDK 2.4.5)

Description
How can I get 36 character length key for my zoom web SDK to pass into Zoom SDK console?

Browser Console Error
When I click on join button on Zoom Join preview window? The error comes as
"Joining meeting timeout.
Invalid parameter"
The dev tools window shows as SDK_KEY length must be 36. However, in our Zoom Marketplace, we got JWT key of length 22 only.

Which Web Meeting SDK version?
Zoom Web SDK v2.4.5
(can also be verified from console logs in the screenshot)

Meeting SDK Code Snippets

// it's option if you want to change the WebSDK dependency link resources. setZoomJSLib must be run at first
  // ZoomMtg.setZoomJSLib("https://source.zoom.us/2.4.5/lib", "/av"); // CDN version defaul
  if (meetingConfig.china)
    ZoomMtg.setZoomJSLib("https://jssdk.zoomus.cn/2.4.5/lib", "/av"); // china cdn option
  ZoomMtg.preLoadWasm();
  ZoomMtg.prepareJssdk();
  function beginJoin(signature) {
    ZoomMtg.init({
      leaveUrl: meetingConfig.leaveUrl,
      webEndpoint: meetingConfig.webEndpoint,
      disableCORP: !window.crossOriginIsolated, // default true
      // disablePreview: false, // default false
      success: function () {
        console.log(meetingConfig);
        console.log("signature", signature);
        ZoomMtg.i18n.load(meetingConfig.lang);
        ZoomMtg.i18n.reload(meetingConfig.lang);
        ZoomMtg.join({
          meetingNumber: meetingConfig.meetingNumber,
          userName: meetingConfig.userName,
          signature: signature,
          sdkKey: meetingConfig.sdkKey,
          userEmail: meetingConfig.userEmail,
          passWord: meetingConfig.passWord,
          success: function (res) {
            console.log("join meeting success");
            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);
      },
    });

Screenshots

Device (please complete the following information):

  • HP Pavilion 15
  • OS: Windows 10
  • Chrome
  • 102.0.5005.63

@rohitbhargava

You should recreate an SDK type application, not a JWT application type. JWT is going to be removed in 2023 and should not be used anymore to generate credentials (jwt token) to access with the Web SDK.

By creating an SDK type app, you’ll get a 36 lenght key and the secret you need to generate your credentials, even for the web SDK.

@nvivot
I already have SDK type credentials which we use for Android/ iOS platforms.

I tried to use that key for webapp (utilizing Zoom WebSDK here) but every time it asks to log into Zoom, which shouldn’t happen with end-users.

Hey @rohitbhargava

Can you please share a screenshot of this page? If you could share more details about this specific issue including how to reproduce it that will help us provide a solution. :slight_smile:

Thanks,
Tommy

Are there any restrictions based on (account_type) who organizes the Webinars from Zoom account, e.g., account_type of owner, member, admin, etc, for which it asks to log into Zoom first.

Hey @rohitbhargava ,

It sounds like the webinar requires authentication to join:

If you could share more details that would be helpful. :slight_smile:

Thanks,
Tommy

@tommy Thanks for your response.

I checked it in our code. We have now used the SDK type key in place of the JWT type key (seeing that it will be deprecated by 01/2023) and with that, we have checked that if the Owner’s account hosts the Meeting, the login issue doesn’t occur.
So, it confirmed that for SDK type, the meeting must be from the Owner’s account.
Also, our issue is resolved for now.

1 Like

Happy to help @rohitbhargava ! :slight_smile:

FYI You can use OAuth now to start meetings that are not owned by the SDK account holder. Details here:

Thanks,
Tommy

Hi @tommy Thanks for your response.

Can you share a few tutorials on implementing OAuth using Web SDK, so that we can try out on our project?
The method provided above looks promising to tackle several use-cases faced while using JWT and SDK type credentials.

Hey @rohitbhargava ,

Checkout our OAuth guide: Zoom Developer Docs

Let me know if that helps! :slight_smile:

Thanks,
Tommy

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