Hi,
I'm trying to send a request to connect my user to playfab but when i send it, i receive ther error 400:
XboxXASSExchangeFailure. It's not really helping so i can't see why is it happening, expetially because it was working the last week.
I have already setup single sign-on parameters with the Partner Center. I have also check my xboxlive Token, try two user test accounts on two sandboxes and try to send my token whitout the user identification part.
Can someone tell me if i can have more information about why it fail? here is my code but like i said, it worked fine before and the same code work fine on switch and PS4
public class CallRequestContainer
{
public HttpRequestState HttpState = HttpRequestState.Idle;
public System.Net.HttpWebRequest HttpRequest = null;
// This class stores the state of the request and all associated data
public string ApiEndpoint = null;
public string FullUrl = null;
public byte[] Payload = null;
public string JsonResponse = null;
public PlayFabRequestCommon ApiRequest;
public Dictionary<string, string> RequestHeaders;
public PlayFabResultCommon ApiResult;
public PlayFabError Error;
public Action DeserializeResultJson;
public Action InvokeSuccessCallback;
public Action<PlayFabError> ErrorCallback;
public object CustomData = null;
public CallRequestContainer()
{
}
}
private IEnumerator Post(CallRequestContainer reqContainer)
{
var www = new UnityWebRequest(reqContainer.FullUrl)
{
uploadHandler = new UploadHandlerRaw(reqContainer.Payload),
downloadHandler = new DownloadHandlerBuffer(),
method = "POST"
};
foreach (var headerPair in reqContainer.RequestHeaders)
{
if (!string.IsNullOrEmpty(headerPair.Key) && !string.IsNullOrEmpty(headerPair.Value))
www.SetRequestHeader(headerPair.Key, headerPair.Value);
else
Debug.LogWarning("Null header: " + headerPair.Key + " = " + headerPair.Value);
}
yield return www.SendWebRequest();
}