Hi,
We are migrating our project from Unity 5.5 to Unity 2017.3, but now we are getting login errors with PlayFab in the Unity Console.
WebException: Error writing request: The authentication or decryption has failed. System.Net.WebConnectionStream.WriteHeaders () System.Net.WebConnectionStream.SetHeaders (System.Byte[] buffer)(wrapper remoting-invoke-with-check) System.Net.WebConnectionStream:SetHeaders (byte[]) System.Net.HttpWebRequest.SendRequestHeaders (Boolean propagate_error) Rethrow as WebException: Error: SendFailure (Error writing request: The authentication or decryption has failed.) System.Net.HttpWebRequest.EndGetRequestStream (IAsyncResult asyncResult) System.Net.HttpWebRequest.GetRequestStream () PlayFab.Internal.PlayFabWebRequest.Post (PlayFab.Internal.CallRequestContainer reqContainer) (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWebRequest.cs:189) Rethrow as WebException: SendFailure: WebException making http request to: https://8FF3.playfabapi.com/Client/LoginWithCustomIDUnityEngine.Debug:LogException(Exception) PlayFab.Internal.PlayFabWebRequest:Post(CallRequestContainer) (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWebRequest.cs:202) PlayFab.Internal.PlayFabWebRequest:WorkerThreadMainLoop() (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWebRequest.cs:122)
SendFailure: WebException making http request to: https://8FF3.playfabapi.com/Client/LoginWithCustomID UnityEngine.Debug:LogError(Object) PlayFabLogin:OnLoginFailure(PlayFabError) (at Assets/PlayFabLogin.cs:22) PlayFab.Internal.<QueueRequestError>c__AnonStorey0:<>m__0() (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWebRequest.cs:265) PlayFab.Internal.PlayFabWebRequest:Update() (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabWebRequest.cs:346) PlayFab.Internal.PlayFabHttp:Update() (at Assets/PlayFabSdk/Shared/Internal/PlayFabHttp/PlayFabHTTP.cs:279)
PlayFab SDK plugin version is 2.34.180102 and our code is the same in both Unity versions.
The PlayfabSharedSettings asset is correctly configured (using the PlayFab Editor Extension) and using Request Type "Http Web Request" as before.
We tested in a dumb project in Unity 2017.3, only with the PlayFab plugin and using the same script as the "Unity Get Started" tutorial. Same errors on login.
I read here about the WWW regressions on the Unity 2017 versions, and you recomend to use HttpWebRequest (with no compression) but the thing is that we are already using HttpWebRequest.
Thank you