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
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](https://private-user-images.githubusercontent.com/1421908/257652419-c449cd8e-f350-4038-9e57-a9c43f0c296c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyMjA3NDQsIm5iZiI6MTcyMjIyMDQ0NCwicGF0aCI6Ii8xNDIxOTA4LzI1NzY1MjQxOS1jNDQ5Y2Q4ZS1mMzUwLTQwMzgtOWU1Ny1hOWM0M2YwYzI5NmMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjlUMDIzNDA0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9NjE5Y2M0MzZlNjVjZGFhZDc0ZDY5MWUwMDRmZTc2YjJjNWQ3ZmMyMjRmMDg1Zjg3NTZiMzI0NWRkNTU3MzgxMyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.ulUPm7N06svS5RnJS-l_NUMlmeuUIrnAGm_IrIeVy-0)
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/