Before Creating a New Topic:
If you’re experiencing unexpected Video SDK behavior please search the forum with relevant keywords (e.x. error message) and follow the guidance outlined in those posts. Please also leverage the following support links:
Description
{“code”: 124, “message”: “Invalid access token.”} and {“reason”: “unsupported grant type”, “error”: “unsupported_grant_type”}
Browser Console Error
Got above message while trying your postman collection Postman
Which Web Meeting SDK version?
whatever the above collection uses
Meeting SDK Code Snippets
[The code snippets that are causing the error / issue so we can reproduce.]
app.post("/create-meeting2", async (req, res) => {
console.log('abc');
let oPayload = {
method: "POST",
body: {
agenda: "This is Meeting",
default_password: false,
duration: 60,
password: "123456",
pre_schedule: false,
recurrence: {
end_date_time: "2024-04-18T19:35:00Z",
end_times: 7,
monthly_day: 1,
monthly_week: 1,
monthly_week_day: 1,
repeat_interval: 1,
type: 1,
weekly_days: "1",
},
schedule_for: "vaibhav.ga@cisinlabs.com",
settings: {
additional_data_center_regions: ["TY"],
allow_multiple_devices: true,
alternative_hosts: "gws.gorank@gmail.com;",
alternative_hosts_email_notification: true,
approval_type: 2,
audio: "telephony",
audio_conference_info: "test",
authentication_domains: "localhost",
authentication_exception: [
{
email: "vaibhav.ga@cisinlabs.com",
name: "Vaibhav Ga",
},
],
authentication_option: "signIn_" + process.env.ZOOM_MEETING_SDK_KEY,
auto_recording: "cloud",
breakout_room: {
enable: true,
rooms: [
{
name: "room1",
participants: ["gws.gorank@gmail.com"],
},
],
},
calendar_type: 1,
close_registration: false,
contact_email: "gorank.j@cisinlabs.com",
contact_name: "Jill Chill",
email_notification: true,
encryption_type: "enhanced_encryption",
focus_mode: true,
global_dial_in_countries: ["US"],
host_video: true,
jbh_time: 0,
join_before_host: false,
language_interpretation: {
enable: false,
},
sign_language_interpretation: {
enable: false,
},
meeting_authentication: false,
meeting_invitees: [
{
email: "gws.gorank@gmail.com",
},
],
mute_upon_entry: true,
participant_video: false,
private_meeting: false,
registrants_confirmation_email: false,
registrants_email_notification: false,
registration_type: 1,
show_share_button: true,
use_pmi: true,
waiting_room: false,
watermark: false,
host_save_video_order: true,
alternative_host_update_polls: true,
internal_meeting: false,
continuous_meeting_chat: {
enable: true,
auto_add_invited_external_users: true,
},
participant_focused_meeting: false,
push_change_to_calendar: false,
resources: [
{
resource_type: "whiteboard",
resource_id: "X4Hy02w3QUOdskKofgb9Jg",
permission_level: "editor",
},
],
auto_start_meeting_summary: false,
auto_start_ai_companion_questions: false,
},
start_time: "2024-04-18T19:35:55Z",
timezone: "Asia/Kolkata",
topic: "My Meeting",
type: 1,
},
signature: req.body.signature,
auth: {
bearer: req.body.signature,
},
headers: {
"User-Agent": "Zoom-api-Jwt-Request",
"content-type": "application/json",
Authorization: `Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiJrc3BOd09TOVNLdThYaUx1cUlHc2N3Iiwicm9sZSI6MCwiaWF0IjoxNzEzNTI5OTQ1LCJleHAiOjE3MTM1MzcxNDUsImFwcEtleSI6ImtzcE53T1M5U0t1OFhpTHVxSUdzY3ciLCJ0b2tlbkV4cCI6MTcxMzUzNzE0NX0.WGWXONlF0GPHWmr_mYmdBj8kK0MxUXkCpTEs2CCON4k`
},
json: true, //Parse the JSON string in the response
};
const sPayload = JSON.stringify(oPayload);
const data = await axios({
url: "https://api.zoom.us/v2/users/me/meetings",
method: 'POST',
data: sPayload,
headers: {
Authorization: `Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzZGtLZXkiOiJrc3BOd09TOVNLdThYaUx1cUlHc2N3Iiwicm9sZSI6MCwiaWF0IjoxNzEzNTI5OTQ1LCJleHAiOjE3MTM1MzcxNDUsImFwcEtleSI6ImtzcE53T1M5U0t1OFhpTHVxSUdzY3ciLCJ0b2tlbkV4cCI6MTcxMzUzNzE0NX0.WGWXONlF0GPHWmr_mYmdBj8kK0MxUXkCpTEs2CCON4k`
},
})
.then(response => {
return response;
})
.catch(error => {console.log('error', error)})
res.json({
data
})
})
To Reproduce(If applicable)
Steps to reproduce the behavior:
- Go to ‘…’
- Click on ‘…’
- Scroll down to ‘…’
- See error
Screenshots
If applicable, add screenshots to help explain your problem.
Troubleshooting Routes
tried your postman collection and on node js tried many ways I also checked and enabled the permission in scopes
Device (please complete the following information):
- Device: [hp Desktop]
- OS: [Ubuntu 22.04]
- Browser: [Chrome]
- Browser Version [Version 124.0.6367.60 (Official Build) (64-bit)]
Additional context
Got signature using your React and node sample code but unable to create a meeting