Meetingsdk-web-bot-sample unsupported grant type

Format Your New Topic as Follows:

API Endpoint(s) and/or Zoom API Event(s)
I’m currently trying to setup the web bot meeting sdk example.

Endpoints:

  • /oauth/token

Description
I’m getting an unsupported grant type error (400 bad request) when running the ‘npm run start’. After having started up the frontend and the ‘meetingsdk-sample-signature-node.js’ app.

I’ve also noticed that http is not accepted in the allow list, and only https urls are accepted. I mention this because I’ve seen similar errors in the forum.

I’ve followed the directions here but believe they are underspecified. Mainly in that the .env file contents aren’t clearly stated.

Error?

When joining via browser. The bot is able to join the meeting. However the following error is seen in the console when request for recording is sent. Everything seems to work well when the bot has been made host, so I may misunderstand what to expect.

Uncaught TypeError: t.detail.error is not a function
    Q https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    value https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    C https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    onCancel https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    T https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    M https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    React 31
    notify https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    notifyNestedSubs https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    handleChangeWrapper https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    Redux 3
    Vt https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    bn https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    n Redux
    Wt https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    handleOnMessage https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    onmessage https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    Z https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    React 12
    notify https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    notifyNestedSubs https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    handleChangeWrapper https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    Redux 3
    Vn https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    promise callback*40931/Vn/< https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    Redux 2
    value https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    C https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    P https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    y https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    promise callback*y https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    W https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    M https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    r https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    setInterval handler*join https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    success http://localhost:8080/client-view.js:70
    Z https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    value https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    C https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    init https://source.zoom.us/zoom-meeting-2.13.0.min.js:2
    startMeeting http://localhost:8080/client-view.js:65
    getSignature http://localhost:8080/client-view.js:54
    promise callback*getSignature http://localhost:8080/client-view.js:52
    onclick http://localhost:8080/:1
zoom-meeting-2.13.0.min.js:2:3902813

When I run npm run start from the web bot example. I see the following

403 
    data: {
      reason: 'unsupported grant type',
      error: 'unsupported_grant_type'
    }

My client-view.js looks like (is the sdk key the right thing to use for the zak endpoint)?

var authEndpoint = "http://localhost:4000";
var zakEndpoint = "https://api.zoom.us/v2/users/[sdk key for app]/token?type=zak";
var meetingDetailsEndpoint = "http://localhost:30015/api/zoom/mnum";

var sdkKey = "sdk key for app";

var url = 'https://us06web.zoom.us/j/[meetingnumber]?pwd=[meetingpassword]';


var {meetingNumber, password} = getMeetingNumberAndPasswordFromUrl(url)

// API Response data from the backend server.js ~ MAKE DYNAMIC
var meetingNumber = 'meetingnumber';
var passWord = 'meetingpass';

// -----------------------------------
var role = 0; // 1 for host; 0 for attendee or webinar
var userName = "Test Bot";

var getlocalRecordingToken = "";

var registrantToken = ''
var zakToken = ''
var leaveUrl = 'https://zoom.us'

@chris15,

Thank you for posting in the Zoom Developer Forum. Sorry for not getting back to you sooner. Is this behavior still an issue for you?

@chris15, if you’re still having issues, you could check out Recall.ai, which is an meeting bot API so you don’t have to manage the infrastructure yourself!

@chris15,

Just wanted to follow up on this post. Please let us know if this behavior still an issue for you?

I came across this post when trying to use the sample and am experiencing exactly the same symptoms with the unsupported_grant_type. I have a feeling I’m not specifying some of the auth parameters in .env properly, but the documentation is pretty lacking in the repo.

(and the whole purpose of using this SDK directly is so I don’t have to use a managed provider like recall, despite how useful that may be for some)

@aos_musculo ,
Are you still experiencing the same problem with the sample application? I’m ready to guide you through the process of using Zoom Clip with a step-by-step tutorial. Please let me know if this would be of interest to you.

@donte.zoom
I’ll be interested in how to test the maximum capacity Meeting SDK can support.
Our last customer experience failed at 100 attendees.