# {method: 'join', status: false, result: null, errorMessage: 'Sdk key length error, must 36', errorCode: 4003}

**URL:** <https://devforum.zoom.us/t/method-join-status-false-result-null-errormessage-sdk-key-length-error-must-36-errorcode-4003/86376>\
**Category:** Web\
**Created:** [April 10, 2023, 8:50am UTC](https://devforum.zoom.us/t/method-join-status-false-result-null-errormessage-sdk-key-length-error-must-36-errorcode-4003/86376 "2023-04-10T08:50:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![firas.ghobber](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/firas.ghobber/32/45688_2.png) [@firas.ghobber](https://devforum.zoom.us/u/firas.ghobber)\
**Post date:** [April 10, 2023, 8:50am UTC](https://devforum.zoom.us/t/method-join-status-false-result-null-errormessage-sdk-key-length-error-must-36-errorcode-4003/86376/1 "2023-04-10T08:50:28Z")

</div>

import React, {useEffect} from “react”;

declare var ZoomMtg;a

 ![ffff](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/e/2ef67008141f760f28aba695b5c8d1dc742fa6b1.png)

ZoomMtg.setZoomJSLib(“[https://source.zoom.us/2.6.0/lib](https://source.zoom.us/2.6.0/lib)”, “/av”);

ZoomMtg.preLoadWasm();  
ZoomMtg.prepareWebSDK();

ZoomMtg.i18n.load(‘en-US’);  
ZoomMtg.i18n.reload(‘en-US’);

function ZoomMSDK() {  
// Get Zoom MSDK KEY, Signature endpoint, and leave URL environment variables  
const {  
REACT\_APP\_ZOOM\_MSDK\_KEY = “”,  
REACT\_APP\_MSDK\_SIGNATURE\_ENDPOINT = “”,  
LEAVE\_URL = “[http://localhost:3000](http://localhost:3000)”,  
} = process.env;

// Get the meeting number and password from the URL parameters  
const queryParams = new URLSearchParams(window.location.search);  
const mn = queryParams.get(“mn”);  
const pw = queryParams.get(“pw”);

// Assign meeting role based on user type  
const role = “1”; // 1 for host, 0 for attendee

const getSignature = (e) =\> {

```
if (e) e.preventDefault();

const SIGNATURE_OPTIONS = {
  method: "POST",
  headers: { "Content-Type": "application/json"},
  body: JSON.stringify({
    meetingNumber: mn,
    role: parseInt(role, 10),
  }),
};

fetch(REACT_APP_MSDK_SIGNATURE_ENDPOINT, SIGNATURE_OPTIONS)
  .then((data) => data.json())
  .then(({ signature }) => !!signature && startMeeting(signature));

```

};

const startMeeting = (signature) =\> {  
document.getElementById(“zmmtg-root”).style.display = “block”;

ZoomMtg.init({  
leaveUrl: LEAVE\_URL,

```
  success: (success) => {
    console.log(success)

    ZoomMtg.join({
      signature: signature,
      meetingNumber: mn,
      sdkKey: REACT_APP_ZOOM_MSDK_KEY,
      userName: "firas ghobber",
      passWord: pw,
   // tk:'',
      success: (success) => {
        console.log(success)
      },
      error: (error) => {
        console.log(error)
      }
    })
  },
  error: (error) => {
    console.log(error)
  }
})

```

}

useEffect(() =\> {  
const mn = queryParams.get(“mn”);  
const pw = queryParams.get(“pw”);  
console.log(mn, pw)

if (mn && pw) getSignature();

});

return (

zoomMSDK
  
)  
}

export default ZoomMSDK

---

<div class="post-metadata">

**Author:** ![j.schoenemeyer](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@j.schoenemeyer](https://devforum.zoom.us/u/j.schoenemeyer)\
**Post date:** [April 10, 2023, 9:39am UTC](https://devforum.zoom.us/t/method-join-status-false-result-null-errormessage-sdk-key-length-error-must-36-errorcode-4003/86376/2 "2023-04-10T09:39:30Z")

</div>

do you use 2.6.0 with a new created Meeting SDK (without SDK credentials?)

- SDK Key is **36 char** long (apps created before Feb 11, 2023)
- Client ID is 20 char long

if yes - this is not possible, you have to upgrade to 2.10.1 or newer

---

<div class="post-metadata">

**Author:** ![firas.ghobber](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/firas.ghobber/32/45688_2.png) [@firas.ghobber](https://devforum.zoom.us/u/firas.ghobber)\
**Post date:** [April 10, 2023, 12:15pm UTC](https://devforum.zoom.us/t/method-join-status-false-result-null-errormessage-sdk-key-length-error-must-36-errorcode-4003/86376/3 "2023-04-10T12:15:23Z")

</div>

think you for response me, i have upgrade to 2.10.1 but still the same error but other error indicate to line 9 is “ZoomMtg.prepareWebSDK();”.

 ![dddd](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/2/0/20293f6f9c41bdf2bda802a81155976d14a6845d.png)

---

<div class="post-metadata">

**Author:** ![j.schoenemeyer](https://avatars.discourse-cdn.com/v4/letter/j/f9ae1b/32.png) [@j.schoenemeyer](https://devforum.zoom.us/u/j.schoenemeyer)\
**Post date:** [April 10, 2023, 8:16pm UTC](https://devforum.zoom.us/t/method-join-status-false-result-null-errormessage-sdk-key-length-error-must-36-errorcode-4003/86376/4 "2023-04-10T20:16:17Z")

</div>

you have a mixed installation 2.6.0 with libraries 2.10.1 → result: error 403 forbidden

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 11, 2023, 6:16am UTC](https://devforum.zoom.us/t/method-join-status-false-result-null-errormessage-sdk-key-length-error-must-36-errorcode-4003/86376/5 "2023-05-11T06:16:55Z")

</div>

Closed on May 11, 2023, 6:16am UTC

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