Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by blitzen · Nov 17, 2013 at 10:52 AM · nullreferenceexceptionwww

WWW.CheckSecurityOnHeaders throwing NullReferenceException

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, 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) [...]

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?

Comment
Add comment · Show 8
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image ArkaneX · Nov 18, 2013 at 08:49 AM 0
Share

I've just took a look into the method throwing exception. It's new in 4.3 and it is called if another method (`enforceWebSecurityRestrictions`) returns true. Unfortunately this method is external, so it's not possible to check what's going on inside.

Your problem is not exactly related to the question you linked. In the linked one, Unity throws an exception after checking specific condition. In your case, exception is unexpected and is probably a Unity bug.

avatar image nareshkumaryakkala · Nov 18, 2013 at 05:38 PM 0
Share

I also updated to 4.3 and i am unable to connect to Player.IO. Getting following exceptions.

NullReferenceException: Object reference not set to an instance of an object UnityEngine.WWW.CheckSecurityOnHeaders (System.String[] headers) (at C:/BuildAgent/work/d3d49558e4d408f4/Runtime/Export/WWW.cs:56) UnityEngine.WWW..ctor (System.String url, System.Byte[] postData, System.Collections.Hashtable headers) (at C:/BuildAgent/work/d3d49558e4d408f4/artifacts/EditorGenerated/Utils.cs:72) PlayerIOClient.Internal.identifier5+identifier414.getRequest[identifier22] (Int32 method, identifier576 args) UnityEngine.$$anonymous$$onoBehaviour:StartCoroutine(IEnumerator) PlayerIOClient.Internal.identifier414:Call(Int32, identifier22, Callback`1, Callback`1) PlayerIOClient.Internal.identifier5:SimpleConnect(String, String, String, Callback`1, Callback`1) PlayerIOClient.Internal.identifier519:SimpleConnect(String, String, String, Callback`1, Callback`1)

avatar image ArkaneX nareshkumaryakkala · Nov 18, 2013 at 10:31 PM 0
Share

This is not an answer - converting to comment.

avatar image DarkPlan · Nov 20, 2013 at 05:25 PM 0
Share

I am having the exact same problem. This is only happening when using the web-player platform. Standalone and android work fine.

Note: Unity 4.3.0f4, latest player.io

avatar image basti · Nov 21, 2013 at 07:32 AM 0
Share

same problem here. can't connect to player.io with webplayer since yesterday. Unity 4.1.5.

avatar image blitzen · Feb 08, 2014 at 03:19 AM 0
Share

Looks like as of 4.3.4f1 it's still not fixed. FYI, Player.IO's FacebookOAuthConnect also has the same issue.

Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by basti · Feb 19, 2014 at 07:28 AM

there is beta unity-api available (if you ask the people of player.io very nicely), which solves this issue (at least for us).

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image blitzen · Feb 25, 2014 at 04:31 PM 0
Share

Indeed it does. Thanks for the mention.

avatar image DjEmix · Feb 28, 2014 at 12:09 AM 0
Share

Can you post the link to download the new api for unity please?

avatar image blitzen · Feb 28, 2014 at 08:18 AM 0
Share

There's no official link yet, as it's not openly released. P$$anonymous$$ me and I'll send it to you.

avatar image DjEmix · Feb 28, 2014 at 10:21 PM 0
Share

Hi blitzen! Sorry, I'm a little noob in this forum and I don't know how send P$$anonymous$$, can you send me with the link please? Thanks!

avatar image DjEmix · Mar 05, 2014 at 09:16 AM 0
Share

Please, anyone can send or publish the new api for player.io? It's the only one I need to publish my game please.

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

23 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

NullReferenceException error with dreamlo 0 Answers

Best practice: URL address for storing streamed music files 1 Answer

assetBundle.mainAsset exception 0 Answers

Load mp3 from Harddrive on PC (again) 1 Answer

StopAllCoroutines does NOT cancel a yield WWW download? 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges