# Signatrue length error, 0 \< length \< 150", errorCode: 4003

**URL:** <https://devforum.zoom.us/t/signatrue-length-error-0-length-150-errorcode-4003/48501>\
**Category:** Web\
**Created:** [April 21, 2021, 12:06pm UTC](https://devforum.zoom.us/t/signatrue-length-error-0-length-150-errorcode-4003/48501 "2021-04-21T12:06:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![worldofstudents](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/worldofstudents/32/26135_2.png) [@worldofstudents](https://devforum.zoom.us/u/worldofstudents)\
**Post date:** [April 21, 2021, 12:06pm UTC](https://devforum.zoom.us/t/signatrue-length-error-0-length-150-errorcode-4003/48501/1 "2021-04-21T12:06:50Z")

</div>

I followed the instructions of the documentation. But something seems to be wrong with the signature.  
I try to join a webinar zoom.

1. {method: “join”, status: false, result: null, errorMessage: “{“signature”:”[REDACTED]"} signatrue length error, 0 \< length \< 150", errorCode: 4003}

2. errorCode: 4003

3. errorMessage: “{“signature”:”[REDACTED]"} signatrue length error, 0 \< length \< 150"

4. method: “join”

5. result: null

6. status: false

7. **proto** : Object

What i do in index.js:

ZoomMtg.setZoomJSLib(‘[https://source.zoom.us/1.9.1/lib](https://source.zoom.us/1.9.1/lib)’, ‘/av’);

const meetConfig = {  
apiKey: [REDACTED],  
meetingNumber: [REDACTED],  
leaveUrl: ‘[https://zoom.us/](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);
      },
                                    })
                            }
                    })
   })
```

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [April 22, 2021, 5:24pm UTC](https://devforum.zoom.us/t/signatrue-length-error-0-length-150-errorcode-4003/48501/2 "2021-04-22T17:24:28Z")

</div>

Hi @worldofstudents,

Thanks for reaching out about this.

In taking a look at your signature, I can see that the meeting ID and role fields are undefined. Please make sure you’re passing valid values to these fields before you encode/generate the signature.

Thanks,  
Will

---

<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 23, 2021, 3:24am UTC](https://devforum.zoom.us/t/signatrue-length-error-0-length-150-errorcode-4003/48501/3 "2021-05-23T03:24:37Z")

</div>

Closed on May 23, 2021, 3:24am UTC

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