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. Dismiss Notice

Question Curl error 6 on the Oculus Quest

Discussion in 'AR/VR (XR) Discussion' started by ViliusVal, Sep 14, 2020.

  1. ViliusVal

    ViliusVal

    Joined:
    Nov 7, 2019
    Posts:
    2
    When I try to run my app on the quest I'm greeted by these guys. Any clue? Seem like all of the outgoing traffic is blocked before it gets sent.
    upload_2020-9-14_15-17-38.png
    Here is the auth function that's used for the request.

    Code (CSharp):
    1. var url = $"{_environmentApiUrl}{authenticationEndpoint}";
    2.             var data = JsonUtility.ToJson(user);
    3.        
    4.             var request = new UnityWebRequest(url, UnityWebRequest.kHttpVerbPOST)
    5.             {
    6.                 uploadHandler = new UploadHandlerRaw(Encoding.UTF8.GetBytes(data)),
    7.                 downloadHandler = new DownloadHandlerBuffer()
    8.             };
    9.    
    10.             request.SetRequestHeader("Content-Type", "application/json");
    11.             request.SetRequestHeader("Accept", "application/json");
    12.    
    13.             yield return request.SendWebRequest();
    14.        
    15.             // Process response
    16.             if (JsonHelperUtil.ProcessResponse<AuthDetails>(request,out var response))
    17.             {
    18.                 _authDetails= response.Result;
    19.             }
    This code perfectly works on other platforms(WebGL and Windows)

    Using XR Toolkit on Unity 2020.1.5f1
     
    Last edited: Sep 14, 2020