Forum QuickConnect Web build CheckSecurityOnHeaders exception

Discussion and help relating to PlayerIO's QuickConnect feature, including Facebook Connect and Kongregate Connect.

Web build CheckSecurityOnHeaders exception

Postby Kp0c » May 24th, 2015, 9:27 am

Hello everyone!
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?
Kp0c
 
Posts: 16
Joined: June 23rd, 2014, 9:29 pm

Re: Web build CheckSecurityOnHeaders exception

Postby Kp0c » May 24th, 2015, 2:23 pm

On version 5.0.0f4 have same error :(
UPD: PlayerIO.Authenticate have same error :/
UPD 2: On version 4.6.0.f3 have same error. How to fix it :?:
Kp0c
 
Posts: 16
Joined: June 23rd, 2014, 9:29 pm

Re: Web build CheckSecurityOnHeaders exception

Postby SoftalexGames » June 22nd, 2015, 8:34 pm

Hmm, today I upgraded Unity to 5.1.1 and YahooGN SDK to (2.4.0.0 I guess, on web page it's still v3.2.323, released Jun 18 2015)...
And I started receive same error... only for web player build

UPD:
So I tried to clean and rebuild project, restart unity and other stupid tricks, nothing magic was happened...
I rolled back YahooGN SDK to v3.2.323, released Jun 02 2015 and my web player client start connect to server, I'm using Unity 5.1.1.
SoftalexGames
 
Posts: 20
Joined: January 11th, 2013, 5:32 am

Re: Web build CheckSecurityOnHeaders exception

Postby Kp0c » June 23rd, 2015, 10:07 pm

SoftalexGames wrote:Hmm, today I upgraded Unity to 5.1.1 and YahooGN SDK to (2.4.0.0 I guess, on web page it's still v3.2.323, released Jun 18 2015)...
And I started receive same error... only for web player build

UPD:
So I tried to clean and rebuild project, restart unity and other stupid tricks, nothing magic was happened...
I rolled back YahooGN SDK to v3.2.323, released Jun 02 2015 and my web player client start connect to server, I'm using Unity 5.1.1.


Please, give me your version of SDK. :(
Kp0c
 
Posts: 16
Joined: June 23rd, 2014, 9:29 pm


Return to QuickConnect



cron