You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With stream_chat_flutter 8.x I used to create channels following the example app:
// in initState()
_channel =StreamChat.of(context).client.channel('messaging');
// then after the user selects the members for the new channel
_channel = chatState.client.channel('messaging', extraData: {
'members': [
..._selectedUsers.map((e) => e.id),
chatState.currentUser!.id,
],
'team': myteam,
});
However, this no longer works with 9.x, I get
StreamChatNetworkError(code: 4, message: GetOrCreateChannel failed with error: "When using member based IDs specify at least 2 members", statusCode: 400, data: ErrorResponse(code: 4, message: GetOrCreateChannel failed with error: "When using member based IDs specify at least 2 members", statusCode: 400,
The example app does not have a create feature, how should channels be created in 9.x?
The text was updated successfully, but these errors were encountered:
I too am having the issue. For me it is happening on the load of the new chat page, before I even call the api to create a new channel. It looks like the root is coming from loading an empty channel?
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: StreamChatNetworkError(code: 4, message: GetOrCreateChannel failed with error: "When using member based IDs specify at least 2 members", statusCode: 400, data: ErrorResponse(code: 4, message: GetOrCreateChannel failed with error: "When using member based IDs specify at least 2 members", statusCode: 400, moreInfo: https://getstream.io/chat/docs/api_errors_response))
#0 StreamHttpClient.post (package:stream_chat/src/core/http/stream_http_client.dart:150:7)
<asynchronous suspension>
#1 ChannelApi.queryChannel (package:stream_chat/src/core/api/channel_api.dart:35:22)
<asynchronous suspension>
#2 Channel.query (package:stream_chat/src/client/channel.dart:1662:24)
<asynchronous suspension>
With stream_chat_flutter 8.x I used to create channels following the example app:
However, this no longer works with 9.x, I get
The example app does not have a create feature, how should channels be created in 9.x?
The text was updated successfully, but these errors were encountered: