I’ve updated my unity to 2017, made a backup of my project and tried to use the project in the new unity version, but now my requests return errors. I’ve logged the www.error but it’s empty aswell. Does anyone have a solution for this or has it occured more in Unity 2017?
IEnumerator RetrieveQuests()
{
WWW www;
www = new WWW("URL that I dont want to share here.");
yield return www;
if (www.error != null)
{
Debug.Log("There was an error sending request: " + www.error);
}
else
{
Debug.Log(www.text);
}
}
EDIT: I fixed this by changing the if statement to the following:
if (!string.isNullOrEmpty(www.error))
{
Debug.Log("There was an error sending request: " + www.error);
}
else
{
Debug.Log(www.text);
}
something seems to have changed regarding www.error, so now doing the check like this should work.