question

Christian avatar image
Christian asked

Annoying warning when making requests on Unity 2020.1.0b8

Hi,

It's just a warning, but it's a bit annoying, we believe it basically happens every time you make an API call, this is the stack trace:

The header Accept-Encoding is managed automatically, setting it may have no effect or result in unexpected behavior.
UnityEngine.Networking.UnityWebRequest:SetRequestHeader(String, String)
PlayFab.Internal.d__12:MoveNext() (at Assets/Plugins/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:139)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
PlayFab.Internal.PlayFabUnityHttp:MakeApiCall(Object) (at Assets/Plugins/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabUnityHttp.cs:119)
PlayFab.Internal.PlayFabHttp:_MakeApiCall(String, String, PlayFabRequestCommon, AuthType, Action1, Action1, Object, Dictionary2, Boolean, PlayFabAuthenticationContext, PlayFabApiSettings, IPlayFabInstanceApi) (at Assets/Plugins/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabHTTP.cs:228) PlayFab.Internal.PlayFabHttp:MakeApiCall(String, PlayFabRequestCommon, AuthType, Action1, Action1, Object, Dictionary2, PlayFabAuthenticationContext, PlayFabApiSettings, IPlayFabInstanceApi) (at Assets/Plugins/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabHTTP.cs:133)
PlayFab.PlayFabEventsInstanceAPI:WriteEvents(WriteEventsRequest, Action1, Action1, Object, Dictionary`2) (at Assets/Plugins/PlayFabSDK/Events/PlayFabEventsInstanceAPI.cs:63)
PlayFab.Public.ScreenTimeTracker:Send() (at Assets/Plugins/PlayFabSDK/Entity/ScreenTimeTracker.cs:181)
PlayFab.Internal.d__17:MoveNext() (at Assets/Plugins/PlayFabSDK/Shared/Internal/PlayFabHttp/PlayFabHTTP.cs:101)
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

Thanks for looking into it,

10 |1200

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

1 Answer

·
Sarah Zhang avatar image
Sarah Zhang answered

This warning is a known issue caused by the updates of Unity native API. You can refer to this thread for the details of the reasons. In our testing, this warning won't affect the use. Currently, please wait for our updates or use Unity 2019. You can keep an eye on our blogs for the latest updates.

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.

Christian avatar image Christian commented ·

Hi Sarah, thanks for the quick update, will keep an eye indeed, cheers!

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.