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

@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

errorCode
: 
200
reason
: 
"Fail to join the meeting."
type
: 
"JOIN_MEETING_FAILED"
 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
    })
   }

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

@chunsiong.zoom yes

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiJRVzNScDdIT1RZeUJ1Z041dEZZb0EiLCJtbiI6ODY1NTQ3NDYwMjIsInJvbGUiOjAsImlhdCI6MTY5ODkwNDUxNSwiZXhwIjoxNjk4OTExNzE1LCJhcHBLZXkiOiJRVzNScDdIT1RZeUJ1Z041dEZZb0EiLCJ0b2tlbkV4cCI6MTY5ODkxMTcxNX0.f26EiWHExefWw4qdMkYCpUX0rW16yY6k00RCuChz1F0


image

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