question

Dmitriy Fokin avatar image
Dmitriy Fokin asked

LoginWithXbox WebException : 400 BadRequest

Hello, we are using PlayfabAnalytics for our game title. It is not released yet. Recently we published our title to the sandbox to check download from Microsoft store. By doing this we've encountered exception during LoginXbox call. The code we use:

yield return Xbox.XDK.GetTokenAsync(PLAYFAB_LOGIN_ENDPOINT, (token, signature) =>
		{
			var xboxRequest = new LoginWithXboxRequest
			{
				CreateAccount = true,
				TitleId = PlayFabSettings.TitleId,
				XboxToken = token,
			};


			PlayFabClientAPI.LoginWithXbox(xboxRequest, OnLoginSuccess, OnLoginFail);
		});
we have request similar to the
https://bb6d9.playfabapi.com/Client/LoginWithCustomID?CreateAccount=true&TitleId=BB6D9&CustomId=5BA417257AE72971
But the error we get is (please see screenshot 2020-05-06-13-45-19-фотографии.png).

We should mention that this problem is reproduces only with package downloaded from Microsoft Store and doesn't if I upload build directly from PC.
analytics
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.

Dmitriy Fokin avatar image Dmitriy Fokin commented ·

UPD: I was able to reproduce this issue on a dev build with uploading from pc

0 Likes 0 ·

1 Answer

·
Citrus Yan avatar image
Citrus Yan answered

Does it happen frequently? If it does, how often are you seeing this? Generally speaking it should be fairly rare, most likely there was a connection issue between your device and our endpoints when the Timeout error happened, please check your web connections. And, you may find these threads helpful:

https://community.playfab.com/questions/12072/serviceunavailable-error-400-badrequest.html

https://community.playfab.com/questions/14955/timeoutslow-connection-issues.html

2 comments
10 |1200

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

Dmitriy Fokin avatar image Dmitriy Fokin commented ·

Hi, thanks a lot for the answer. Indeed, yesterday I saw that this error happens quite often, but today everything is working fine. I also recall that we had problems connecting to the provider.

0 Likes 0 ·
Citrus Yan avatar image Citrus Yan Dmitriy Fokin commented ·

Great! Any issues please let us know:)

0 Likes 0 ·

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.