Sign In Register

How can we help you today?

Start a new topic

GetMyTeamsRequest doesn't send response back.

Hi,


We've got some weird behavior on one of our game's teams. We had the need of having a Global chat in game, so on the registrationReponse and the authenticationResponse we check if a team with the id and type: "GENERAL_CHAT" exists, if it doesn't exist, the player registrating creates it, if it did exist, joins it. 


The thing is, we are not sure why, but at some point, that chat can not be joined / queried, for instance now from the Test Harness we are unable to get the 'getMyTeamRequest''s response. The inspector shows the green request, but it stays there, never receiving the response, the same happens when trying to join it manually (commenting the auth and registration response's code).


The only "special" thing this current team has is that it was created by a player, whose account has been deleted (we are on preview stage and we create/delete a lot of players) anyways we believe that isn't the root of the error.


Any clues of what could be going on here?


ps: Feel free to create a test user and test in our project.


Cheers,

Chris


Hi Chris,


The deleted player could be linked to this, although we can come back to that later. I believe the issue may be to do with the team ID you are using. Can you try creating the General Chat team again but on the CreateTeamRequest sending the request like this.


 

{
 "@class": ".CreateTeamRequest",
 "teamId": "",
 "teamName": "GENERAL_CHAT",
 "teamType": "GENERAL_CHAT"
}

 

Leave the teamID blank and a uniqueId will be generated for the team. Next add some players to it and then try the GetMyTeamsRequest again. Let me know how you get on after trying that.


Thanks,

Liam

Hi Liam,


Thanks for the quick response. I've tried it your way and it's working, I've even tried creating it with a user1, adding the user2 to the team, deleting user1, and creating a 3rd user and now works fine, but I still have some doubts about how is this happening. So far, the only difference between our last code and the new one, is the teamId, the rest is exactly the same, could you please elaborate on what's the reason why this is happening?


Thanks in advance!

Uhmm, I've tried to revert the code and start over and it works also with the older version of the code... Not sure what's going on here.

Actually, just realized there are some nasty errors shown now on our ScriptLog, I'm pretty sure they're related to the issue I experienced when the response never came back, in case you want to take a look, the error trace is the same all the time:


{"stackTrace":"\tat 297351-forms-null:30 (deletion)\n\tat 297351-forms-null:14 (SnippetProcessor)\n\tat 297351-forms-null\n","error":"TypeError: Cannot call method \"drop\" of null (297351-forms-null#30)","script":null}

Cheers!

Hi Christian, 


I'm still looking into this for you. Quick question on that last error, do you know the origin of it ? Were you trying to drop the General_Chat team that you had deleted the original owner owner from ? 


Thanks,

Liam

Hi Liam,


I'm pretty sure that last error was shown right after I got the "stuck in request" issue I commented earlier, I actually remember happening before, but I didn't care much since it was a long time ago and didn't really know what was going on, but I do remember that it happened to me due to the same reason, un-responsive requests. The General Chat wasn't being deleted when that happened.


Hope that helps,

Chris

Hi Chris,


I've been testing this out but so far unable to replicate but may have figured out why. First I created a team with a teamID, deleted the owner, and then performed a GetMyTeamsRequest with another team member, it worked fine. I then did the same with the teamID left blank, I got the same results here also. Seems no matter what I try I always get the team back in the response, doesn't seem to get stuck. I then created a test user in your game who was successfully added to the General Chat team when registered, I then did a GetMyTeamsRequest which returned the team and its members, this also worked fine. I think the issue with it hanging may be to do with the amount of scriptData that you are attaching to players, as there is quite a bit on each player, this will only continue to make the GetMyTeamResponse bigger and bigger as players register and join the team. You could try moving the scriptData values to privateData to avoid this or store them in a collection. Try that out and let me know how you get on.


Thanks,

Liam

Hi Liam,


Thanks for the response and the testing you have been through. Glad to know there may be a reason for this error, I will move the player data to PrivateData and perform some tests, also will let you know if I run into the same error again after that (I hope not!).


Cheers,

Login to post a comment