# Zoommtg.endmeeting({}) get errorcode 3003

**URL:** <https://devforum.zoom.us/t/zoommtg-endmeeting-get-errorcode-3003/14475>\
**Category:** Web\
**Created:** [April 22, 2020, 6:28pm UTC](https://devforum.zoom.us/t/zoommtg-endmeeting-get-errorcode-3003/14475 "2020-04-22T18:28:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![marlakhy](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@marlakhy](https://devforum.zoom.us/u/marlakhy)\
**Post date:** [April 22, 2020, 6:28pm UTC](https://devforum.zoom.us/t/zoommtg-endmeeting-get-errorcode-3003/14475/1 "2020-04-22T18:28:39Z")

</div>

I am trying to end meeting automatically with this method:

```
    setTimeout(function(){
      ZoomMtg.endMeeting({
        error: function(res){
          console.log(res, 'failed to end meeting')
          // alert('fail to join meeting')
        }
      })
     }, 10000);

```

but i got error code 3003. how to solve it ?

 ![Screen Shot 2020-04-23 at 01.10.42](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/6868bd86d15be7c6dde9f15c90cfd2bb8f9e03f0.png)

---

<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 23, 2020, 10:42pm UTC](https://devforum.zoom.us/t/zoommtg-endmeeting-get-errorcode-3003/14475/2 "2020-04-23T22:42:02Z")

</div>

Hey @marlakhy,

I was able to end the meeting. (Web SDK 1.7.6) Here is the code I used (from [angular sample app](https://github.com/zoom/websdk-sample-angular)):

```auto
ZoomMtg.init({
      leaveUrl: this.leaveUrl,
      isSupportAV: true,
      disableInvite: true,
      success: (success) => {
        console.log(success)

        ZoomMtg.join({
          signature: 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)
      }
    })

    setTimeout(() => {
      ZoomMtg.endMeeting({});
    }, 10000);
  }

```

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 8:55pm UTC](https://devforum.zoom.us/t/zoommtg-endmeeting-get-errorcode-3003/14475/3 "2020-08-21T20:55:27Z")

</div>

Closed on August 21, 2020, 8:55pm UTC


