Vonage / vonage-node-sdk

Vonage API client for Node.js. API support for SMS, Voice, Text-to-Speech, Numbers, Verify (2FA) and more.
Apache License 2.0
375 stars 178 forks source link

[Bug]: vonage video createSession returns undefined sessionId #912

Closed jeanniewang closed 4 months ago

jeanniewang commented 4 months ago

Node Version

16.x

Platform

Mac (intel)

SDK Version

3.12.2

Code Sample

const { Vonage } = require('@vonage/server-sdk');
const { Auth } = require('@vonage/auth');
const fs = require('fs');

const keyBuffer = fs.readFileSync(PATH_TO_PRIVATE_KEY);

const credentials = new Auth({
  applicationId: applicationId,
  privateKey: keyBuffer,
});

const vonage = new Vonage(credentials);

const createSession = async () => { 
 const session = await vonage.video.createSession();
 return session;
}

Expected Behavior

Should return an object with valid sessionId

Actual Behavior

{
  sessionId: undefined,
  archiveMode: 'manual',
  mediaMode: 'disabled',
  location: null
}
dragonmantank commented 4 months ago

This will be corrected in https://github.com/Vonage/vonage-node-sdk/pull/913, we'll update the ticket once a new release has been pushed out.

dragonmantank commented 4 months ago

A release has been pushed for video and our server-client, if you run an npm update you should be all good. If there's any issues feel free to re-open this ticket and let us know!

jeanniewang commented 4 months ago

Thanks for prompt reply and solution! Will take a look when I get time.

On Thu, Feb 8, 2024 at 11:01 AM Chris Tankersley @.***> wrote:

A release has been pushed for video and our server-client, if you run an npm update you should be all good. If there's any issues feel free to re-open this ticket and let us know!

— Reply to this email directly, view it on GitHub https://github.com/Vonage/vonage-node-sdk/issues/912#issuecomment-1934438223, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASBOZGWZYL3IJTTNJXRFN3TYSTZGFAVCNFSM6AAAAABCZQKVECVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZUGQZTQMRSGM . You are receiving this because you authored the thread.Message ID: @.***>

--

Jeannie Wang

Software developer

226.220.9250 RouteThis.com https://routethis.com/

jeanniewang commented 4 months ago

It worked. Now the session Id can be properly returned. Thank you!