We have Unhandled exception on login:
"PlayFabError(ServiceUnavailable, Unhandled exception in Post : https://7EB4.playfabapi.com/Client/LoginWith.., 400 BadRequest)"
We have Unhandled exception on login:
"PlayFabError(ServiceUnavailable, Unhandled exception in Post : https://7EB4.playfabapi.com/Client/LoginWith.., 400 BadRequest)"
You are going to need to post more details about the request. I suggest posting the actual API calls and the details of the request object you are attempting to post.
edit: looks like I was 60 seconds late.
Can you post the complete error response? A 400 error will always contain an error, errorMessage, and errorDetails that will help to solve the question of why the error occurred. Here's an example:
{ "code": 400, "status": "BadRequest", "error": "InvalidParams", "errorCode": 1000, "errorMessage": "Invalid input parameters", "errorDetails": { "CustomId": [ "The CustomId field is required." ] } }
Hello @Brendan,
error.ErrorDetails is null
Here is callstack:
NotSupportedException: https://7eb4.playfabapi.com/client/loginwithxbox at System.Net.WebRequest.GetCreator (System.String prefix) [0x00000] in <filename unknown>:0 at System.Net.WebRequest.Create (System.Uri requestUri) [0x00000] in <filename unknown>:0 at System.Net.WebRequest.Create (System.String requestUriString) [0x00000] in <filename unknown>:0 at PlayFab.Internal.PlayFabWebRequest.Post (PlayFab.Internal.CallRequestContainer reqContainer) [0x00009] in Assets\PlayFabSdk hared\Internal\PlayFabHttp\PlayFabWebRequest.cs:178
LoginWithXboxRequest request = new LoginWithXboxRequest(); request.XboxToken = this.xboxToken; request.TitleId = ServersConfig.playFabTitleId; request.CreateAccount = true; PlayFabHttp.MakeApiCall<LoginResult>("/Client/LoginWithXbox", request, AuthType.None, this.onAuthenticate, this.onFailedAuth);
We have Exception in Post method, that is why we do not see request in logs. Why can it crash on creating request?
@Brendan Hello, I apologize for my bad English.
I get this error I use GDK.
Can you tell me if I need to confirm access to PlayFab from partner.microsoft ?
LogPlayFab: Response : {"code":400,"status":"BadRequest","error":"InvalidXboxLiveToken","errorCode":1188,"errorMessage":"Client token was not in correct format"}
3 People are following this question.