Forum QuickConnect Unity 4.3 Broken Cookie Headers Breaking SimpleGetCaptcha

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

Unity 4.3 Broken Cookie Headers Breaking SimpleGetCaptcha

Postby blitzen » November 15th, 2013, 9:57 am

In upgrading Unity3D from 4.2 to 4.3, it seems that cookies in WWW headers are broken. The previously-working PlayerIO.QuickConnect.SimpleGetCaptcha() call now yields:

System.NullReferenceException: Object reference not set to an instance of an object
at UnityEngine.WWW.CheckSecurityOnHeaders (System.String[] headers) [0x0010b] in C:\BuildAgent\work\d3d49558e4d408f4\Runtime\Export\WWW.cs:56
at UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Hashtable headers) [0x00018] in C:\BuildAgent\work\d3d49558e4d408f4\artifacts\EditorGenerated\Utils.cs:72
at PlayerIOClient.Internal.identifier5+identifier414.getRequest[identifier33] (Int32 method, identifier576 args) [0x00000] in <filename unknown>:0
UnityEngine.Debug:LogError(Object)
PlayerIOClient.Internal.identifier414:getRequest(Int32, identifier576)
PlayerIOClient.Internal.identifier415:MoveNext()
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
PlayerIOClient.Internal.identifier414:Call(Int32, identifier33, Callback`1, Callback`1)
PlayerIOClient.Internal.identifier5:SimpleGetCaptcha(String, Int32, Int32, Callback`1, Callback`1)
PlayerIOClient.Internal.identifier519:SimpleGetCaptcha(String, Int32, Int32, Callback`1, Callback`1)
SignupMenu:GetCaptcha() (at Assets/playerio/Scripts/SignupMenu.cs:249)
SignupMenu:Init() (at Assets/playerio/Scripts/SignupMenu.cs:74)
ClientManager:OnGUI() (at Assets/playerio/Scripts/ClientManager.cs:678)


Is a workaround for this in the works for the next (hopefully soon) Player.IO update?
blitzen
 
Posts: 12
Joined: February 6th, 2013, 4:48 am

Re: Unity 4.3 Broken Cookie Headers Breaking SimpleGetCaptch

Postby yangamedev » November 15th, 2013, 6:10 pm

I got the same thing, just running the demo provokes it. I swear I searched the forums...
yangamedev
 
Posts: 3
Joined: July 20th, 2013, 5:02 am

Re: Unity 4.3 Broken Cookie Headers Breaking SimpleGetCaptch

Postby Basti » November 21st, 2013, 8:53 am

I've got a similar problem. Cant connect to Player.io since yesterday. This only happens with webplayer, I am working with Unityy 4.1.5. The problem occurs when calling SimpleConnect and SimpleRegister.

System.NullReferenceException: Object reference not set to an instance of an object

at UnityEngine.WWW.CheckSecurityOnHeaders (System.String[] headers) [0x00000] in <filename unknown>:0

at UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Hashtable headers) [0x00000] in <filename unknown>:0

at PlayerIOClient.Internal.PlayerIOChannel+UnityWWW.getRequest[SimpleConnectArgs] (Int32 method, pioa1 args) [0x00000] in <filename unknown>:0

(Filename: C:/BuildAgent/work/d3d49558e4d408f4/artifacts/WebPlayerGenerated/UnityEngineDebug.cpp Line: 53)

NullReferenceException: Object reference not set to an instance of an object
at UnityEngine.WWW.CheckSecurityOnHeaders (System.String[] headers) [0x00000] in <filename unknown>:0

at UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Hashtable headers) [0x00000] in <filename unknown>:0

at PlayerIOClient.Internal.PlayerIOChannel+UnityWWW.getRequest[SimpleConnectArgs] (Int32 method, pioa1 args) [0x00000] in <filename unknown>:0
UnityEngine.MonoBehaviour:StartCoroutine_Auto(IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine(IEnumerator)
PlayerIOClient.Internal.UnityWWW:Call(Int32, SimpleConnectArgs, Callback`1, Callback`1)
PlayerIOClient.Internal.PlayerIOChannel:SimpleConnect(String, String, String, Callback`1, Callback`1)
PlayerIOClient.Internal.QuickConnectImpl:SimpleConnect(String, String, String, Callback`1, Callback`1)
PlayerIOService:ConnectUser(String, String)
SweepstakeScreen:CheckAndConnectUser()
Basti
 
Posts: 11
Joined: August 1st, 2012, 1:08 pm


Return to QuickConnect