question

fivefinger2015 avatar image
fivefinger2015 asked

When changing from WIFI to LTE.

When changing from WIFI to LTE, the following message is generated.

If you retransmit after a few seconds, it will be processed normally.

This error is being handled.

static public void LogPlayfab (PlayFabError error)

{

if (error.Error == PlayFabErrorCode.AccountBanned)

{

MessageObject.Instance.importantMessage.OpenPanel ("KickServer", Util.QuitApp);

return;

}

MessageObject.Instance.Log (error.ErrorMessage);

if (error.ErrorDetails! = null)

{

Dictionary <string, List <string >>. Enumerator enumList = error.ErrorDetails.GetEnumerator ();

while (enumList.MoveNext ())

{

foreach (string log in enumList.Current.Value)

{

MessageObject.Instance.Log (log);

}

}

}

}

To handle this error, which PlayfabErrorCode should be checked?

10 |1200

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

brendan avatar image
brendan answered

There isn't a PlayFab error for that, since no message makes it to PlayFab's servers - the error is stating that the client device is unable to look up the host. That's an error you'd need to watch for in your game depends upon what library you're using for your HTTP calls, but UnknownHostException is a good example, as shown in your case. That would be the error code to look for.

1 comment
10 |1200

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

brendan avatar image brendan commented ·

Looking at your code, I suspect you'll be getting a 400 error back - can you try logging the response in your repro, to check?

0 Likes 0 ·
fivefinger2015 avatar image
fivefinger2015 answered

Hi.

I have found error data.

When the network changes, "PlayfabAPI" will return a "PlayFabErrorCode.ServiceUnavailable" message.

I solved this by processing this message. Thank you.

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.