Today suddenly UnityWebRequest started to throw out "unknown error" with the website which was fine during at least 1 year. Here is the code:
WWWForm form = new WWWForm();
UnityWebRequest www = UnityWebRequest.Post("https://somedomain.com", form);
StartCoroutine(WaitForRequestLoad(www));
private IEnumerator WaitForRequestLoad(UnityWebRequest www)
{
using (www)
{
yield return www.SendWebRequest();
if (www.isHttpError)
{
}
else if (www.isNetworkError)
{
// THIS IS WHERE THE PROBLEM OCCURS
// www.error = "unknown error"
}
else
{
}
}
}
- "http" version of the required domain works fine
- "https" version of the required domain was working fine BEFORE today
- some websites with "https" are called properly though others throw out "unknown error"
What can be the case? Couple of days ago, I cleaned the system with some special program and it could delete some locally required files. I did a search and it is advised to check locally stored certificates. I'm going to check the advise if it works.
Please advise