I'm building a strategy game in Unity, which communicates with server using HTTP, retrieving JSON objects via WWW requests. So far it has been working properly, however recently I've added a tester who is experiencing a strange problem. One of the URLs called by the registration process is hanging at the IEnumerator's "yield return www". The user tried two different machines and two different Internet providers, which suggests it's not environmental problem.
Here is the IEnumerator code:
IEnumerator WaitForRequest(WWW www)
yield return www;
if (www.error == null)
addLogEntry("IEnumerator: " + www.url+" no error");
// do stuff
addLogEntry("IEnumerator: " + www.url + " " + www.error);
Debug.Log("WWW Error: " + www.error);
Once i also encountered the same issue. At that time, the issue was that one URL was taking too much time in giving response. By the logic of my code, the GameObject on which monobehavior was attached and coorutine was running got disabled, causing the game object with the coroutine to die. I thought i should share the issue I had.