com.saasbee.webapp.security.token.LoginToken cannot be cast


#1

Hello!

 

I’m starting to have an error while try to access meeting’s links created trough the API. I didn’t change anything on my code and now I started receiving the following message after clicking on a zoom meeting:

 

com.saasbee.webapp.security.token.LoginToken cannot be cast to com.saasbee.webapp.security.token.RequestToken (-1)

 

Does anyone have any idea what to do in this case?


#2

I haven’t seen this error before. Can you be more specific about what steps you are taking?


#3

Sure, thing. Tim
I’m doing the following steps:

  1. Create a meeting using zoom API (success)

  2. Retrieve and users’ zpk token using API (sucess)

3. I built the meeting link: e.g:

https://zoom.us/s/224377991?zpk=uUN3we-_U3fC7VQt4M-fZte35vnfKrXlmXX7V2FzU60.BgQgZVR3ZlloZ3VXelpHS0dSSDB4SkRxZ3VUUXVxZDhrSEUAAAwzQ0JBdW9pWVMzcz0A

I got the following error:

com.saasbee.webapp.security.token.LoginToken cannot be cast to com.saasbee.webapp.security.token.RequestToken (-1)

If I try the link with /s/, 
https://zoom.us/j/224377991?zpk=uUN3we-_U3fC7VQt4M-fZte35vnfKrXlmXX7V2FzU60.BgQgZVR3ZlloZ3VXelpHS0dSSDB4SkRxZ3VUUXVxZDhrSEUAAAwzQ0JBdW9pWVMzcz0A

i got the following error

(-1)

I double checked my api credentials and meeting settings. 
The meeting only accepts users with my domain’s e-mails. 

For testing, I rolled back my app to a previous version that was working. But the error is still happening, It’s been a little hard for me to understand what’s causing it.  It would be great if anyone has any clue what’s causing it

Thanks!


#4

it looks like what’s causing this problem is the way I’m generating the zpk token for the user. 
I wasn’t adding the ‘token?type=zpk’ to the API request. 

https://api.zoom.us/v2/users/{{user id}}/token?type=zpk