Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jeanniewang opened this issue Feb 5, 2024 · 4 comments
Closed

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

jeanniewang opened this issue Feb 5, 2024 · 4 comments
Assignees
Labels
bug A defect in the code

Comments

@jeanniewang
Copy link

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
}
@jeanniewang jeanniewang added bug A defect in the code Triage Issue needs to be triaged labels Feb 5, 2024
@dragonmantank
Copy link
Contributor

This will be corrected in #913, we'll update the ticket once a new release has been pushed out.

@dragonmantank dragonmantank removed the Triage Issue needs to be triaged label Feb 8, 2024
@dragonmantank
Copy link
Contributor

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
Copy link
Author

jeanniewang commented Feb 8, 2024 via email

@jeanniewang
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A defect in the code
Projects
None yet
Development

No branches or pull requests

4 participants