In upgrading to 4.3, Player.IO’s previously-working SimpleGetCaptcha call now at runtime throws:
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 :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, Callback1, Callback
1)
PlayerIOClient.Internal.identifier5:SimpleGetCaptcha(String, Int32, Int32, Callback1, Callback
1)
PlayerIOClient.Internal.identifier519:SimpleGetCaptcha(String, Int32, Int32, Callback1, 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)
[…]
I’m apparently not the only one to encounter it, and it’s somewhat crippling to our application. Did they try to add more strict WWW security checks in the latest update, and perhaps introduce a bug in the process?