# Meeting sdk does not work for live server but it works fine on localhost

**URL:** <https://devforum.zoom.us/t/meeting-sdk-does-not-work-for-live-server-but-it-works-fine-on-localhost/97676>\
**Category:** Web\
**Created:** [November 1, 2023, 9:53am UTC](https://devforum.zoom.us/t/meeting-sdk-does-not-work-for-live-server-but-it-works-fine-on-localhost/97676 "2023-11-01T09:53:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashishdwivediw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ashishdwivediw/32/49346_2.png) [@ashishdwivediw](https://devforum.zoom.us/u/ashishdwivediw)\
**Post date:** [November 1, 2023, 9:53am UTC](https://devforum.zoom.us/t/meeting-sdk-does-not-work-for-live-server-but-it-works-fine-on-localhost/97676/1 "2023-11-01T09:53:36Z")

</div>

@chunsiong.zoom On my live (admin side) server i am able to start the host the meeting and also create. But when I join the meeting it does not start on live (student) server although it works when I switch to localhost .

and this is the error I get

```auto
errorCode
: 
200
reason
: 
"Fail to join the meeting."
type
: 
"JOIN_MEETING_FAILED"

```

```auto
 var authEndpoint = `${process.env.REACT_APP_BASE_URL}/api/v1/zoom/authEndpoint`
   var sdkKey = `${process.env.ZOOM_MEETING_SDK_KEY}`
  // var meetingNumber = zoomData.id
  // var passWord = zoomData.password
   var role = 0
   var userName = ''
   var userEmail = ''
   var registrantToken = ''  
   var zakToken = ''
  
   function getSignature(zoomData) {
    
  
    fetch(authEndpoint, {
     method: 'POST',
     headers: { 'Content-Type': 'application/json' },
     body: JSON.stringify({
      meetingNumber: zoomData.id,
      role: 0
     })
    }).then(res => res.json())
    .then(response => {
     startMeeting(response.Data, zoomData)
     console.log(response,"aaaaaaaaaa")
    }).catch(error => {
     console.error(error,"AAAAAA")
    })
   }
  
   function startMeeting(signature, zoomData) {
  
    let meetingSDKElement = document.getElementById('meetingSDKElement');
  
    client.init({
     debug: true,
     zoomAppRoot: meetingSDKElement,
     language: 'en-US',
     customize: {
      meetingInfo: ['topic', 'host', 'mn', 'pwd', 'telPwd', 'invite', 'participant', 'dc', 'enctype'],
      toolbar: {
       buttons: [
        {
         text: 'Custom Button',
         className: 'CustomButton',
         onClick: () => {
          console.log('custom button');
         }
        }
       ]
      }
     }
    });
  
    client.join({
     signature: signature,
     sdkKey: sdkKey,
     meetingNumber: zoomData.id,
     password: zoomData.password,
     userName: userName,
     userEmail: userEmail,
     tk: registrantToken,
     zak: zakToken
    })
   }

```

---

<div class="post-metadata">

**Author:** ![chunsiong.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/chunsiong.zoom/32/35488_2.png) [@chunsiong.zoom](https://devforum.zoom.us/u/chunsiong.zoom)\
**Post date:** [November 1, 2023, 11:32am UTC](https://devforum.zoom.us/t/meeting-sdk-does-not-work-for-live-server-but-it-works-fine-on-localhost/97676/2 "2023-11-01T11:32:09Z")

</div>

@ashishdwivediw do you have a sample of your SDK Auth token generated?

---

<div class="post-metadata">

**Author:** ![ashishdwivediw](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/ashishdwivediw/32/49346_2.png) [@ashishdwivediw](https://devforum.zoom.us/u/ashishdwivediw)\
**Post date:** [November 2, 2023, 5:58am UTC](https://devforum.zoom.us/t/meeting-sdk-does-not-work-for-live-server-but-it-works-fine-on-localhost/97676/3 "2023-11-02T05:58:04Z")

</div>

@chunsiong.zoom yes

```auto
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiJRVzNScDdIT1RZeUJ1Z041dEZZb0EiLCJtbiI6ODY1NTQ3NDYwMjIsInJvbGUiOjAsImlhdCI6MTY5ODkwNDUxNSwiZXhwIjoxNjk4OTExNzE1LCJhcHBLZXkiOiJRVzNScDdIT1RZeUJ1Z041dEZZb0EiLCJ0b2tlbkV4cCI6MTY5ODkxMTcxNX0.f26EiWHExefWw4qdMkYCpUX0rW16yY6k00RCuChz1F0

```

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/2/e278cee4147c12c5615a28e9a92a16320ef15dec.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/7/e7a434eb2e207232b070d447f9f4aa849842a243.png)

---

<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:** [December 2, 2023, 3:58pm UTC](https://devforum.zoom.us/t/meeting-sdk-does-not-work-for-live-server-but-it-works-fine-on-localhost/97676/4 "2023-12-02T15:58:53Z")

</div>

Closed on December 2, 2023, 3:58pm UTC

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