# Error code 1 when creating zoom meeting via sdk

**URL:** <https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693>\
**Category:** Web\
**Created:** [November 17, 2019, 5:27pm UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693 "2019-11-17T17:27:43Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdelazizwaheed11](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abdelazizwaheed11/32/2382_2.png) [@abdelazizwaheed11](https://devforum.zoom.us/u/abdelazizwaheed11)\
**Post date:** [November 17, 2019, 5:27pm UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/1 "2019-11-17T17:27:43Z")

</div>

**Description/Error**  
using the demo provided in github I change the role to be equal 1 to create a meeting i get this error

1. {method: “join”, status: false, errorCode: 1, errorMessage: “Invalid signature.”, result: null}

2. errorCode: 1

3. errorMessage: “Invalid signature.”

4. method: “join”

5. result: null

6. status: false

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 18, 2019, 5:46pm UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/2 "2019-11-18T17:46:53Z")

</div>

Hey @abdelazizwaheed11, thanks for posting and using Zoom!

Are you passing in [JWT App Credentials](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-jwt-app) for the API key and secret?

Please share the code you are using to generate the signature so we can help.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![abdelazizwaheed11](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abdelazizwaheed11/32/2382_2.png) [@abdelazizwaheed11](https://devforum.zoom.us/u/abdelazizwaheed11)\
**Post date:** [November 18, 2019, 6:16pm UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/4 "2019-11-18T18:16:14Z")

</div>

@tommy yes i’m passing api key and secret from my dashboard also the account is pro account  
those keys are not real for privacy purpose

here is index.js file

```auto
(function(){

	console.log('checkSystemRequirements');
	console.log(JSON.stringify(ZoomMtg.checkSystemRequirements()));

    // it's option if you want to change the jssdk dependency link resources.
    // ZoomMtg.setZoomJSLib('https://source.zoom.us/1.6.0/lib', '/av'); // CDN version default
    // ZoomMtg.setZoomJSLib('https://jssdk.zoomus.cn/1.6.0/lib', '/av'); // china cdn option 
    // ZoomMtg.setZoomJSLib('http://localhost:9999/node_modules/zoomus-jssdk/dist/lib', '/av'); // Local version default
    ZoomMtg.preLoadWasm();

    ZoomMtg.prepareJssdk();
    // I changed api key and secret for privacy 
    var API_KEY = '';

    /**
     * NEVER PUT YOUR ACTUAL API SECRET IN CLIENT SIDE CODE, THIS IS JUST FOR QUICK PROTOTYPING
     * The below generateSignature should be done server side as not to expose your api secret in public
     * You can find an eaxmple in here: https://marketplace.zoom.us/docs/sdk/native-sdks/Web-Client-SDK/tutorial/generate-signature
     */
    var API_SECRET = '';

    document.getElementById('join_meeting').addEventListener('click', function(e){
        e.preventDefault();

        if(!this.form.checkValidity()){
            alert("Enter Name and Meeting Number");
            return false;
        }

        var meetConfig = {
            apiKey: API_KEY,
            apiSecret: API_SECRET,
            meetingNumber: parseInt(document.getElementById('meeting_number').value),
            userName: document.getElementById('display_name').value,
            passWord: "",
            leaveUrl: "https://zoom.us",
            role: 1
        };

        var signature = ZoomMtg.generateSignature({
            meetingNumber: meetConfig.meetingNumber,
            apiKey: meetConfig.apiKey,
            apiSecret: meetConfig.apiSecret,
            role: meetConfig.role,
            success: function(res){
                console.log(res.result);
            }
        });

        ZoomMtg.init({
            leaveUrl: 'http://www.zoom.us',
            isSupportAV: true,
            success: function () {
                ZoomMtg.join(
                    {
                        meetingNumber: meetConfig.meetingNumber,
                        userName: meetConfig.userName,
                        signature: signature,
                        apiKey: meetConfig.apiKey,
                        userEmail: 'email@gmail.com',
                        passWord: meetConfig.passWord,
                        success: function(res){
                            $('#nav-tool').hide();
                            console.log('join meeting success');
                        },
                        error: function(res) {
                            console.log(res);
                        }
                    }
                );
            },
            error: function(res) {
                console.log(res);
            }
        });

    });

})();

```

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 18, 2019, 10:01pm UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/5 "2019-11-18T22:01:53Z")

</div>

Hey @abdelazizwaheed11,

What is the meeting number you are using? It must be a valid Zoom meeting number.

Can you try generating your signature from here instead:

> **[Generate Signature - Essential Guides - Web - Native SDKs - Zoom Software...](https://marketplace.zoom.us/docs/sdk/native-sdks/web/essential/signature)**
>
> Generate Signature
> 
> Each request to Start or Join a Meeting / Webinar must be verified by an encrypted signature authorizing the user to enter.
> 
> The sig...

Let me know if that works!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![abdelazizwaheed11](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/abdelazizwaheed11/32/2382_2.png) [@abdelazizwaheed11](https://devforum.zoom.us/u/abdelazizwaheed11)\
**Post date:** [November 18, 2019, 11:03pm UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/6 "2019-11-18T23:03:20Z")

</div>

@tommy i took [Meeting not started!](https://devforum.zoom.us/t/meeting-not-started/5040/5)  
as my reference,  
can i create a zoom meeting using the sdk only .

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 19, 2019, 12:40am UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/7 "2019-11-19T00:40:41Z")

</div>

Hey @abdelazizwaheed11,

What is the meetingID you are using?

You can’t create a meeting using the SDK, you can using the [API](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingcreate).

You can however use your [personal meeting number](https://support.zoom.us/hc/en-us/articles/203276937-Using-Personal-Meeting-ID-PMI-).

Try using your PMI.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![sayeedshaikh09](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@sayeedshaikh09](https://devforum.zoom.us/u/sayeedshaikh09)\
**Post date:** [March 20, 2020, 2:50pm UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/8 "2020-03-20T14:50:55Z")

</div>

Hello @tommy I have created the Meeting using Create Meeting Endpoint, after that I am trying to join with the same meeting number returned from the response, it’s giving error: 1. errorMessage: “The meeting number is wrong.” . Meeting Id is  
Please help it is urgent

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [March 20, 2020, 5:01pm UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/9 "2020-03-20T17:01:48Z")

</div>

Hi @sayeedshaikh09,

Can you post the results you see within developer tools console log so that we can take a closer look?

Thanks  
Michael

---

<div class="post-metadata">

**Author:** ![sayeedshaikh09](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@sayeedshaikh09](https://devforum.zoom.us/u/sayeedshaikh09)\
**Post date:** [March 21, 2020, 10:47am UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/10 "2020-03-21T10:47:16Z")

</div>

Hi @michael_p.zoom the above issue got resolved thanks, I would like to ask I am using web SDK and I want utility where one has no option to share the video. Please help`

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [March 23, 2020, 3:51pm UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/11 "2020-03-23T15:51:28Z")

</div>

Hey @sayeedshaikh09,

Happy to hear you resolved the issue.

What are you trying to do? Hide the screen share button?

Just set `screenShare: false` in the `ZoomMtg.init()` function.

[https://marketplace.zoom.us/docs/sdk/native-sdks/web/reference](https://marketplace.zoom.us/docs/sdk/native-sdks/web/reference)

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tomybastin1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tomybastin1/32/5452_2.png) [@tomybastin1](https://devforum.zoom.us/u/tomybastin1)\
**Post date:** [April 8, 2020, 8:09am UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/12 "2020-04-08T08:09:46Z")

</div>

Hi, I am using the web sdk and I have an issue like the one which mentioned in the screenshot.  
meeting Number is :

 ![Capture](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/136d97db2e293870eb57d98cb02821c568e05c98.png)

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [April 8, 2020, 4:38pm UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/13 "2020-04-08T16:38:40Z")

</div>

@tomybastin1

Can you show us a screenshot of the entered meeting ID at the top of the page? What happens when you click retry?  
Also, looks like this meeting ID has a password. Be sure that the password is only alphanumeric.

Thanks

---

<div class="post-metadata">

**Author:** ![petr.dudka.n](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/petr.dudka.n/32/5049_2.png) [@petr.dudka.n](https://devforum.zoom.us/u/petr.dudka.n)\
**Post date:** [April 12, 2020, 11:32pm UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/16 "2020-04-12T23:32:06Z")

</div>

Hi @michael_p.zoom @tommy  
Could you please check this issue? If I click retry and join again, there is the same error.

 ![zoom](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8ca146e011a66b0497a11c69b9c2288c5510f38d.jpeg)

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [April 13, 2020, 2:09am UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/17 "2020-04-13T02:09:06Z")

</div>

@petr.dudka.n - Can you DM me your Account Number, API Key/Secret & marketplace developer email? From there we can investigate.

---

<div class="post-metadata">

**Author:** ![petr.dudka.n](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/petr.dudka.n/32/5049_2.png) [@petr.dudka.n](https://devforum.zoom.us/u/petr.dudka.n)\
**Post date:** [April 13, 2020, 7:29am UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/18 "2020-04-13T07:29:53Z")

</div>

@michael_p.zoom  
I’m sending the api key/secret & developer email.  
Api Key:

Thanks.  
Petr

---

<div class="post-metadata">

**Author:** ![tomybastin1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tomybastin1/32/5452_2.png) [@tomybastin1](https://devforum.zoom.us/u/tomybastin1)\
**Post date:** [April 14, 2020, 3:51am UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/19 "2020-04-14T03:51:42Z")

</div>

Hi, I am using the web sdk in my Angular 7 project and I have an issue like after zoom integration my Apps ngOnInit() method not working (only working on refresh each page). Is there any problem with Zoom in Angular7. I mentioned configuration in the screenshot

 ![Capture](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/7965e6d561e7155e2295cf9eef53b77f024856d4.png)

**class-room.component.ts**  
import { Component, OnInit, Inject } from ‘@angular/core’;  
import { ActivatedRoute } from ‘@angular/router’;  
import { HttpErrorResponse } from ‘@angular/common/http’;  
import { ClassRoomService } from ‘./class-room.service’;  
import { DOCUMENT } from ‘@angular/common’;  
import { ZoomMtg } from ‘@zoomus/websdk’;

ZoomMtg.preLoadWasm();  
ZoomMtg.prepareJssdk();

@Component({  
selector: ‘app-class-room’,  
templateUrl: ‘./class-room.component.html’,  
styleUrls: [’./class-room.component.scss’]  
})  
export class ClassRoomComponent implements OnInit {  
signatureEndpoint = ‘[http://localhost:4000](http://localhost:4000)’  
apiKey = ‘’  
meetingNumber = 0  
role = 0  
leaveUrl = ‘’  
userName = ‘’  
userEmail = ‘’  
passWord = ‘’  
apiSecretKey = ‘’  
studentId = ‘’  
studentName = ‘’  
constructor(@Inject(DOCUMENT) document,  
private classRoomModel: ClassRoomService,  
private route: ActivatedRoute,  
) {}

```
ngOnInit() {
	this.studentId = this.route.snapshot.params.id;
	this.studentName = this.route.snapshot.params.name;
	console.log(this.studentId);
	this.checkIsActive();
	
	
	
}
checkIsActive() {
	document.getElementById('zmmtg-root').style.display = 'none';
	this.classRoomModel.getActiveClassOrNot(this.studentId).subscribe(res => {
		if(res.success){
			this.getConfigaration();
		}
	});
}
getConfigaration() {
	this.classRoomModel.getClassRoomSettings(this.studentId).subscribe(res => {
		let flg = 0,error="";
		if(res.apiKey){
			this.apiKey = res.apiKey;
			flg++;
		}
		if(res.apiSecretKey){
			this.apiSecretKey = res.apiSecretKey;
			flg++;
		}
		if(res.username){
			this.userName = this.studentName ;//res.username;
			flg++;
		}
		if(res.password){
			this.passWord = res.password;
			flg++;
		}
		if(res.mailId){
			this.userEmail = res.mailId;
			flg++;
		}
		if(res.meetingNumber){
			this.meetingNumber = res.meetingNumber;
			flg++;
		}
			
		if(flg == 6){
			this.openConferencing();
		}
		
	});
}

```

openConferencing() {

```
    var data = {
	  "meetingNumber":this.meetingNumber,
	  "role":this.role,
	  "apiKey":this.apiKey,
	  "apiSecret":this.apiSecretKey
	};
	this.classRoomModel.getSignature(data).subscribe(res => {
	  //getSignature = res.signature;
	  document.getElementById('zmmtg-root').style.display = 'block'
		
	  ZoomMtg.init({
	  leaveUrl: this.leaveUrl,
	  isSupportAV: true,
	  success: (success) => {
		console.log(success)

		ZoomMtg.join({
		  signature: res.signature,
		  meetingNumber: this.meetingNumber,
		  userName: this.userName,
		  apiKey: this.apiKey,
		  userEmail: this.userEmail,
		  passWord: this.passWord,
		  success: (success) => {
			console.log(success)
		  },
		  error: (error) => {
			console.log(error)
		  }
		})

	  },
	  error: (error) => {
		console.log(error)
	  }
	})
	}, (err: HttpErrorResponse) => {
	  console.log(err);
	});

```

};  
}

---

<div class="post-metadata">

**Author:** ![petr.dudka.n](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/petr.dudka.n/32/5049_2.png) [@petr.dudka.n](https://devforum.zoom.us/u/petr.dudka.n)\
**Post date:** [April 14, 2020, 8:01am UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/20 "2020-04-14T08:01:22Z")

</div>

Hi @michael_p.zoom @tommy  
Have you checked with my api key and secret?

Thanks  
Petr

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 15, 2020, 5:56am UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/21 "2020-04-15T05:56:24Z")

</div>

Hey @petr.dudka.n,

Can you try creating a new meeting and joining again?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [April 15, 2020, 5:57am UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/22 "2020-04-15T05:57:16Z")

</div>

Hey @tomybastin1,

Please see the Zoom Angular Web SDK sample app:

> **[zoom/websdk-sample-angular](https://github.com/zoom/websdk-sample-angular)**
>
> Use the Zoom Web SDK in an Angular App. Contribute to zoom/websdk-sample-angular development by creating an account on GitHub.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![tomybastin1](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tomybastin1/32/5452_2.png) [@tomybastin1](https://devforum.zoom.us/u/tomybastin1)\
**Post date:** [April 15, 2020, 3:40pm UTC](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693/23 "2020-04-15T15:40:13Z")

</div>

Hey @tommy,  
As per the instruction we integrated the sdk kit in ‘classroom.component.ts’.But after integration ,when the app started running ngOnInit() route rendering is not working.But after when we tried commenting import {ZoomMtg} from ‘@zoomus/websdk’; then the ngOnInit() method is properly working.

[Next page](https://devforum.zoom.us/t/error-code-1-when-creating-zoom-meeting-via-sdk/6693.md?page=2)
