Sign In Register

How can we help you today?

Start a new topic
Answered

Running cloud code only once

Is there a way to run code only once on the server, I want to create a preset amount of teams to use for chat rooms (1 per location) but I'm struggling on both the code to create the teams once and also joining from Unity because I keep recieving this error;


GS: RECV:{"@class":".JoinTeamResponse","error":{"teamType":"NOT_SINGULAR_USE_TEAMID"},"requestId":"636362617647336400_1"}


Join team request code:


Best Answer
Hi Ian,

The reason you're getting the error is due to the following:

A player can own more than one of the specified teamType, therefore joining by ownerId and teamType is not sufficient to uniquely identify the team to join. Specify the team by teamId instead.

How are you creating your teams? and what are the settings for the team type?

Cheers,
Omar

 


Answer
Hi Ian,

The reason you're getting the error is due to the following:

A player can own more than one of the specified teamType, therefore joining by ownerId and teamType is not sufficient to uniquely identify the team to join. Specify the team by teamId instead.

How are you creating your teams? and what are the settings for the team type?

Cheers,
Omar

 

Hi Lan, 


     I have been facing a similar issue. In which, I created the team as mentioned in the tutorial page (link). 

with Max Membership per user is 0 & Max Ownership per user is Unbounded.


I can able to create a team from one user and when I tried to join the team which I created from the previous user gives me the same error.


FYI: I don't understand the (Max Membership per user & Max Ownership per user) I'm getting this error ("teamType":"NOT_SINGULAR_USE_TEAMID") is mainly because of those parts. If so, please give me how to proceed with that, what values to give for that.


Regards,

Saravana Kumar

bump.  Same exact question

Login to post a comment