GetStream/stream-video-js

Creating StreamVideoClient triggers a "Chat is not enabled" error

wooliet opened this issue · 3 comments

Which package/packages do you use?

  • @stream-io/video-react-sdk
  • @stream-io/video-react-native-sdk
  • @stream-io/video-client

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

  • @stream-io/video-client: 0.1.9

Env:

Fill out what's applicable

React / JS client

  • Browser: chrome

Node JS client

  • Node version: v18.16.0

Additional context

This is a web application built using Vue.

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

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

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