Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

Question Unknown Get error

Discussion in 'Multiplayer' started by joshuaradec, Jan 19, 2022.

  1. joshuaradec

    joshuaradec

    Joined:
    Jun 14, 2019
    Posts:
    14
    I tried to use a get function, but I got this error instead, I've been trying to find out what and how to debug it but to no avail as it yet.

    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_CN_MISMATCH

    Code (CSharp):
    1. public IEnumerator CubaGet()
    2.     {
    3.         UnityWebRequest request = UnityWebRequest.Get("https:/***.com/getdata.php");
    4.         yield return request.SendWebRequest();
    5.  
    6.         if (request.result != UnityWebRequest.Result.Success)
    7.         {
    8.             Debug.Log("fail bangsat " + request.error);
    9.         }
    10.         else
    11.         {
    12.             Debug.Log("anjir " + request.downloadHandler.text);
    13.  
    14.            // Response response = JsonUtility.FromJson<Response>(request.downloadHandler.text);
    15.         }
    16.     }