question

angq fasq avatar image
angq fasq asked Phong Vu answered

Internal server error when trying to create a large team

Hello,
We are trying to create a Team using REST API and we are wondering on how many members can a
Team have. We want to create a Team with max 1500 members, but when we send this through the createTeam api we get an Internal Server error 500. This seems to depend on the total size of message sent. By that we mean that if we use shorter email addresses we can increase the number of members we can add, but still we are not able to add 1500 members without server throwing internal server error.
So, is this a server bug?
- How many members can we add with a single request in Team?
- How many members can we add in total in a Team?
- If we use addTeamMembers API, how many member emails can we send per request?

Thank you

messageinternal server errormaximum members
1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered

Just check with the team. Basically there is no limit on the numbers of members in a team.

Create new team and add new team members has the same limit and it is 100 max per request. So it looks like you have to create a team with the first 100 members, then call the add member API with 100 members per API call.

Can you try that and let me know.

We will update our documentation with more info.

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

angq fasq avatar image
angq fasq answered

Hello Phong. Thank you for the answer. We will implement this after the holidays and come back to you.

So for 1500 users we will have to make 15 requests. Sometime we get a "service unavailable" error between requests. Is this something that happens in production as well, or is it only in sandbox?

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

angq fasq avatar image
angq fasq answered

Hello @Phong Vu.

Sorry for the delay. We have just completed our implementation and we see that sandbox can't handle the requests. In our attempt to create a team with 1500 users in bunches of 100 as you suggested, best case it handles only the first four add member requests(100 members from createTeam request + 400 from the addMembers) and then fails with internal server error.

Team created with 100 members

Adding 100 members 1/14

Adding 100 members 2/14

Adding 100 members 3/14

Adding 100 members 4/14

Adding 100 members 5/14

Jan 11, 2021 6:47:09 PM handleResponseError

WARNING: POST request for "https://platform.devtest.ringcentral.com/restapi/v1.0/glip/teams/709140486/add" resulted in 500 (Internal Server Error); invoking error handler

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Phong Vu avatar image
Phong Vu answered

Unfortunately, a sandbox account is limited to max 4 members only. In some case we can increase the limit to 8 or 10 but not as much as you want for your test. If you need to increase to 10, pls send a request to the developer support team by submitting a help ticket.

1 |1500 characters needed characters left characters exceeded

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys