GetStream / stream-video-js

GetStream JavaScript Video SDK
https://getstream.io/video/sdk/
Other
68 stars 24 forks source link

Creating StreamVideoClient triggers a "Chat is not enabled" error #890

Closed wooliet closed 1 year ago

wooliet commented 1 year ago

Which package/packages do you use?

Describe the bug

On creating a new StreamVideoClient instance, the following error is logged:

Chat is not enabled for your account, your trial is either expired or not activated. Check https://getstream.io/pricing/chat/ or reach out to support

image

The message is correct in that the Chat product is not activated. However, the "Video & Audio" product is activated with a valid key.

To Reproduce

Create a new instance of StreamVideoClient using valid token and user id.

const videoClient = new StreamVideoClient({
  apiKey: API_KEY,
  token: TOKEN,
  user: {
    id: 'useraaa',
    name: 'User AAA'
  }
});

A set of errors is logged to the console:

image

The StreamVideoClient instance is created, and a Call is created. But using it to join throws an error, and the error itself is undefined.

const videoCall = videoClient.call('default', VIDEO_ID);

try {
  await videoCall.join({ create:true });
}
catch (err) {
  // `err` is undefined
}

Expected behavior Expected a new StreamVideoClient instance that could be used to create a Call and then create a video.

Screenshots Included above

Version

Env:

Fill out what's applicable

React / JS client

Node JS client

Additional context

This is a web application built using Vue.

szuperaz commented 1 year ago

Thanks for reporting this. We're looking into it and get back to you shortly.

szuperaz commented 1 year ago

Please provide your API key via our support system: https://getstream.io/contact/support/

wooliet commented 1 year ago

The solution to my problem was an extension of the Chat trial (not Video). Seems like something that needs sorting out, but for now my issue has been resolved.

Thanks @szuperaz