question

bankihotemh avatar image
bankihotemh asked

Many users are having difficulties connecting to the server

Hello.

Title ID:263C7

Many users are having difficulties connecting to the server (UpdateData).

/Client/UpdateUserData or

/Client/ExecuteCloudScript

There are many users who complain of no response when doing this.

Looking at the user's event history below, There are many "player_logged_in", so please check.

The client does not handle disconnection separately.

{ "Timestamp": "2021-08-28T14:00:23.9461654Z",

"PlayFabEnvironment":

{ "Application": "mainserver",

"Vertical": "master",

"Commit": "dc867fd",

"Cloud": "main"

},

"EventNamespace": "com.playfab",

"EntityType": "player",

"SourceType": "BackEnd",

"EventName": "player_logged_in",

"EntityId": "527423B49BB4CFE6",

"TitleId": "263C7",

"EventId": "87ebd11007934272ab1da0a9cf5eb432",

"Source": "PlayFab",

"Platform": "GooglePlay",

}

The user's environment was connected to the game using the PC's memu app player.

The Internet environment is wired. Stability is guaranteed.

There are many cases where similar issues have been reported.

Please analyze the event on the server, why is that?

10 |1200

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

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

For clarification, PlayFab API is a stateless REST API, there are no such states like “connected”, “disconnected”. And the Http connections established by the API calls of LoginWithGoogleAccount, UpdateUserData and ExecuteCloudScript are separate from each other. Players obtain the SessionTicket from the successful response of authentication APIs, then use the SesstionTicket as the credential to call other client APIs, so we can verify if they have the corresponding access. If the credentials of the players are not provided, our endpoints would return the errors such as “NotAuthenticated”. Even if the SessionTicket is provided correctly, there may be many causes may cause the failure of Client API calls.

Did you write the error handle functions on the clients to handle the error messages of the failed API UpdateUserData, ExecuteCloudScript? If you did, could you please provide the detailed error messages? And could you please provide the detailed CloudScript function name of the function that can’t work right so that we can research it in further?

10 |1200

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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