Today i set Unity to web player build and get an error at code:
- Code: Select all
PlayerIO.QuickConnect.SimpleConnect(GAME_ID, loginField.text, passwordField.text, null, Connected, Error);
error log:
- Code: Select all
System.ArgumentException: Cannot overwrite header: host
at UnityEngine.WWW.CheckSecurityOnHeaders (System.String[] headers) [0x00044] in C:\buildslave\unity\build\Runtime\Export\WWW.cs:71
at UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Generic.Dictionary`2 headers) [0x00018] in C:\buildslave\unity\build\artifacts\generated\common\runtime\Utils.gen.cs:107
at PlayerIOClient.Internal.identifier114+identifier806.getRequest[identifier582] (Int32 method, identifier1044 args) [0x00000] in <filename unknown>:0
UnityEngine.Debug:LogError(Object)
PlayerIOClient.Internal.identifier806:getRequest(Int32, identifier1044)
PlayerIOClient.Internal.identifier808:MoveNext()
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
PlayerIOClient.Internal.identifier49:Enqueue(IEnumerator)
PlayerIOClient.Internal.identifier806:Call(Int32, identifier582, Callback`1, Callback`1)
PlayerIOClient.Internal.identifier114:SimpleConnect(String, String, String, List`1, String, Dictionary`2, Callback`1, Callback`1)
PlayerIOClient.Internal.identifier947:SimpleConnect(String, String, String, String[], Callback`1, Callback`1)
Connection:Connect() (at Assets/Scripts/Connection.cs:33)
UnityEngine.EventSystems.EventSystem:Update()
and
- Code: Select all
ArgumentException: Cannot overwrite header: host
UnityEngine.WWW.CheckSecurityOnHeaders (System.String[] headers) (at C:/buildslave/unity/build/Runtime/Export/WWW.cs:71)
UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Generic.Dictionary`2 headers) (at C:/buildslave/unity/build/artifacts/generated/common/runtime/Utils.gen.cs:107)
PlayerIOClient.Internal.identifier114+identifier806.getRequest[identifier582] (Int32 method, identifier1044 args)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
PlayerIOClient.Internal.identifier49:Enqueue(IEnumerator)
PlayerIOClient.Internal.identifier806:Call(Int32, identifier582, Callback`1, Callback`1)
PlayerIOClient.Internal.identifier114:SimpleConnect(String, String, String, List`1, String, Dictionary`2, Callback`1, Callback`1)
PlayerIOClient.Internal.identifier947:SimpleConnect(String, String, String, String[], Callback`1, Callback`1)
Connection:Connect() (at Assets/Scripts/Connection.cs:33)
UnityEngine.EventSystems.EventSystem:Update()
Unity version is 5.0.2f1. How i can fix it?