Forum General PlayerIO:Authenticate crash in Web player build!!

Any issues or discussions relating to Unity development are welcome here.

PlayerIO:Authenticate crash in Web player build!!

Postby Rei-IO » May 31st, 2015, 12:09 pm

Cannot connect to server for webpalyer build!
If i build it for PC it works.

There is a related post:https://gamesnet.yahoo.net/forum/viewtopic.php?f=41&t=35148
But the last update was over a year ago.

I have tried on Unity 4.5 and Unity 5 now,
If i build the game as PC platform it works fine, but if I build it for web player it does not work:
Cannot overwrite header: host at UnityEngine.WWW.CheckSecurityOnHeaders

I just want to know if Unity Webplayer is being supported or not.. Anyone?

Thanks!

Call stack error her:
Code: Select all
System.ArgumentException: Cannot overwrite header: host
  at UnityEngine.WWW.CheckSecurityOnHeaders (System.String[] headers) [0x00044] in C:\BuildAgent\work\d63dfc6385190b60\Runtime\Export\WWW.cs:71
  at UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Generic.Dictionary`2 headers) [0x00018] in C:\BuildAgent\work\d63dfc6385190b60\artifacts\EditorGenerated\Utils.cs:88
  at PlayerIOClient.Internal.identifier114+identifier806.getRequest[identifier143] (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, identifier143, Callback`1, Callback`1)
PlayerIOClient.ChannelMonitor:Call(Int32, identifier143, Callback`1, Callback`1)
PlayerIOClient.Internal.identifier114:Authenticate(String, String, Dictionary`2, List`1, String, Dictionary`2, List`1, Callback`1, Callback`1)
PlayerIOClient.<>c__DisplayClass15:<Authenticate>b__10()
PlayerIOClient.PlayerIO:ensureInitialized(Callback)
PlayerIOClient.PlayerIO:Authenticate(String, String, Dictionary`2, String[], Callback`1, Callback`1)
GameManager:Start() (at Assets/Scripts/GameManager.cs:52)



Code: Select all
ArgumentException: Cannot overwrite header: host
UnityEngine.WWW.CheckSecurityOnHeaders (System.String[] headers) (at C:/BuildAgent/work/d63dfc6385190b60/Runtime/Export/WWW.cs:71)
UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Generic.Dictionary`2 headers) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/Utils.cs:88)
PlayerIOClient.Internal.identifier114+identifier806.getRequest[identifier143] (Int32 method, identifier1044 args)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
PlayerIOClient.Internal.identifier49:Enqueue(IEnumerator)
PlayerIOClient.Internal.identifier806:Call(Int32, identifier143, Callback`1, Callback`1)
PlayerIOClient.ChannelMonitor:Call(Int32, identifier143, Callback`1, Callback`1)
PlayerIOClient.Internal.identifier114:Authenticate(String, String, Dictionary`2, List`1, String, Dictionary`2, List`1, Callback`1, Callback`1)
PlayerIOClient.<>c__DisplayClass15:<Authenticate>b__10()
PlayerIOClient.PlayerIO:ensureInitialized(Callback)
PlayerIOClient.PlayerIO:Authenticate(String, String, Dictionary`2, String[], Callback`1, Callback`1)
GameManager:Start() (at Assets/Scripts/GameManager.cs:52)
Last edited by Rei-IO on May 31st, 2015, 6:48 pm, edited 3 times in total.
Rei-IO
 
Posts: 8
Joined: March 18th, 2011, 2:53 pm

Re: Is Unity Web Player build supported by the sdk??

Postby SoftalexGames » May 31st, 2015, 6:16 pm

Yep, It works well for Web builds, I have issues only with WebGL (HTML5) build so far.

PS. I'm using Yahoo GN SDK 3.2.0 and Unity 5.0.2.
SoftalexGames
 
Posts: 20
Joined: January 11th, 2013, 5:32 am

Re: Is Unity Web Player build supported by the sdk??

Postby Kp0c » June 2nd, 2015, 11:11 am

SoftalexGames wrote:Yep, It works well for Web builds, I have issues only with WebGL (HTML5) build so far.

PS. I'm using Yahoo GN SDK 3.2.0 and Unity 5.0.2.


You compile it on win 8?
Kp0c
 
Posts: 16
Joined: June 23rd, 2014, 9:29 pm

Re: Is Unity Web Player build supported by the sdk??

Postby Rei-IO » June 4th, 2015, 8:41 am

Wait it magically worked now... :shock:
I was on Unity4.5, now I am on Unity5, but I am pretty sure after I switched I was getting the same crash error..

I thought I would give up on webplayer for now... I made a new project...
today I tried it again and webplayer is connecting..

thanks!!
Rei-IO
 
Posts: 8
Joined: March 18th, 2011, 2:53 pm

Re: Is Unity Web Player build supported by the sdk??

Postby Kp0c » June 5th, 2015, 12:17 am

Rei-IO wrote:Wait it magically worked now... :shock:
I was on Unity4.5, now I am on Unity5, but I am pretty sure after I switched I was getting the same crash error..

I thought I would give up on webplayer for now... I made a new project...
today I tried it again and webplayer is connecting..

thanks!!


You have last release of SDK?
Kp0c
 
Posts: 16
Joined: June 23rd, 2014, 9:29 pm

Re: PlayerIO:Authenticate crash in Web player build!!

Postby SoftalexGames » June 22nd, 2015, 8:37 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

Looks like it's floating error... trying to find magic trick to solve it.

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: PlayerIO:Authenticate crash in Web player build!!

Postby rambert » June 28th, 2015, 8:09 pm

Hello Community,

i have the same problem. At the moment i try to use Unity with PlayerIO / YahooGN (some years ago i used Flash and PlayerIO).
If i switch from default build settings <PC, Mac & Linux Standalone> to <Web Player> i get the error:
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+identifier813.getRequest[identifier143] (Int32 method, identifier1052 args) [0x00000] in <filename unknown>:0


If i switch back to <PC, Mac & Linux Standalone> all i fine again. I use the latest version of YahooGN V3.2.336 from Jun 26 2015.
Can somebody help me?

Greetings,
Rambert
rambert
 
Posts: 5
Joined: April 12th, 2010, 5:19 pm

Re: PlayerIO:Authenticate crash in Web player build!!

Postby SoftalexGames » September 20th, 2015, 3:37 am

v3.2.401, released Sep 18 2015
Again with this error, so do not upgrade if you are going to use web builds...
SoftalexGames
 
Posts: 20
Joined: January 11th, 2013, 5:32 am

Re: PlayerIO:Authenticate crash in Web player build!!

Postby Guillaume » September 20th, 2015, 1:10 pm

If you have any problem to retrieve an old version, feel free to tell me, as i have nearly stocked all the version from 3.2.312 to 3.2.401.

Additionnaly, i don't know if you have Unity 4.x or Unity 5.x, but if you have a Pro licence, you may try to use the Build Pipeline in order to switch the DLL's depending the Building platform, in this case, using the last version for Desktop / Mobile, and switching to an older version when building for Webplayer.
Guillaume
 
Posts: 277
Joined: March 28th, 2014, 1:59 am
Location: France


Return to General