connectycube-flutter-samples icon indicating copy to clipboard operation
connectycube-flutter-samples copied to clipboard

Cannot create chat group with more than 30 people

Open divya-BV opened this issue 1 year ago • 4 comments
trafficstars

Hi @TatankaConCube , I am trying to create the chat group with around 50 peoples. While creating the group, i am getting the error as cannot create group with more than 30 perople.

Below code is used to create the group :

CubeDialog newDialog = CubeDialog(isPublicGroup == true ? CubeDialogType.PUBLIC : CubeDialogType.GROUP,
                name: groupName ?? name, photo: groupPhoto ?? "", occupantsIds: usersList, customData: customData);
            createDialog(newDialog).then((createdDialog) {
              successCallback(createdDialog);
            }).catchError((error) {
              errorCallback(error.toString());
            });

Below are the logs

I/flutter (23920): === REQUEST ==== 65da5ab2-c115-4443-874b-0af7ceba899f === I/flutter (23920): REQUEST I/flutter (23920): POST https://api.connectycube.com/chat/Dialog I/flutter (23920): HEADERS I/flutter (23920): {Content-type: application/json, ConnectyCube-REST-API-Version: 0.1.1, CB-SDK: Flutter 2.11.2, CB-Token: B9933855FB1812A154D2834C20459B7BA7BC} I/flutter (23920): BODY I/flutter (23920): {"photo":"","name":"Test Referthree , +49","type":2,"occupants_ids":[11355885,11449519,11358785,11365122,11451512,11404483,11426610,11432223,11489201,11449022,11510904,11435184,11385333,11432215,11365408,11376103,11455632,11428633,11362116,11373696,11452398,11428630,11353256,11428682,11423448,11286112,11458970,11362825,11286336,11356382,11295515,11285804,11285802,11404465,11396900,11356411,11506254,11314292,11356428,11509526,11355984,11362473,11435345,11435639,11432292,11497585,0,11428638,11432289,11435969,11408094]} I/flutter (23920): I/flutter (23920): CB-SDK: : ********************************************************* I/flutter (23920): *** RESPONSE *** 403 *** 65da5ab2-c115-4443-874b-0af7ceba899f *** I/flutter (23920): HEADERS I/flutter (23920): {connection: keep-alive, content-type: application/json; charset=utf-8, date: Mon, 08 Jan 2024 07:10:02 GMT, strict-transport-security: max-age=15768000; includeSubDomains, server: nginx/1.25.0, content-length: 62} I/flutter (23920): BODY I/flutter (23920): {"errors":{"base":["Max possible occupants_ids limit is 30"]}} I/flutter (23920): I/flutter (23920): CB-SDK: : createDialogForUser error ResponseException: 403: {"errors":{"base":["Max possible occupants_ids limit is 30"]}}

Can you please help?

divya-BV avatar Jan 08 '24 07:01 divya-BV

what plan do you use for your account?

TatankaConCube avatar Jan 08 '24 15:01 TatankaConCube

@TatankaConCube we are using the "Hobby" plan for our project

divya-BV avatar Jan 09 '24 06:01 divya-BV

@TatankaConCube any update for me?

divya-BV avatar Jan 10 '24 09:01 divya-BV

@divya-BV sorry for the delay, I asked our sales team and they answered that the server has some internal limits not provided on the Pricing page, they promised to update the page to add all limits there. For now these limits are the next:

Free Hobby Advanced Pro
Number of occupants per group chat 10 30 50 100
Number of occupants per public chat 20 50 100 200

TatankaConCube avatar Jan 10 '24 09:01 TatankaConCube

no activity for a long time, closing.

CubeRomanMagellan avatar Oct 25 '24 16:10 CubeRomanMagellan