ConnectyCube / connectycube-flutter-samples

Code samples for Flutter, based on ConnectyCube platform
https://developers.connectycube.com/flutter/
Apache License 2.0
85 stars 90 forks source link

Cannot create chat group with more than 30 people #325

Open divya-BV opened 5 months ago

divya-BV commented 5 months ago

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?

TatankaConCube commented 5 months ago

what plan do you use for your account?

divya-BV commented 5 months ago

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

divya-BV commented 5 months ago

@TatankaConCube any update for me?

TatankaConCube commented 5 months ago
@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