UnityWebRequest return Unknow Error code 0

I write a very simple script to read the string from my website:

    void Start()
    {
        StartCoroutine(SendRequest());
    }

    IEnumerator SendRequest()
    {
        UnityWebRequest uwr = UnityWebRequest.Get("https://www.gzztech.cn/");
        yield return uwr.SendWebRequest();
        if (uwr.isHttpError || uwr.isNetworkError)
        {
            Debug.Log(uwr.error + " " + uwr.responseCode);
        }
        else
        {
            Debug.Log("Get:Success");
            string a = uwr.downloadHandler.text;
            Debug.Log(a);
        }
    }

return error : “Unknown Error 0”. the url just return a very simple string. I can open the page in any brower.
what’s the wrong?Thank you!

Unity version : 2018.3.13f1

Hello, I have the same problem. Have you solved your problem?

1 Like

Anyone Get this figured out? Permission issue?

If I try to open that link in Firefox, it does not open it telling me the website is insecure, details are that certificate expired on 2021-09-27.
Granted, the error from UWR is not descriptiive, but since the original post is quite old, I believe that has been fixed.