Search Unity

  1. Looking for a job or to hire someone for a project? Check out the re-opened job forums.
    Dismiss Notice
  2. Unity wants to learn about your experiences working on a Unity project today. We'd like to hear from you via this survey.
    Dismiss Notice
  3. Unity 2020 LTS & Unity 2021.1 have been released.
    Dismiss Notice
  4. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice
  5. Read here for Unity's latest plans on OpenXR.
    Dismiss Notice

Help Wanted Curl error 6 on the Oculus Quest

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

  1. vvaliusis

    vvaliusis

    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
unityunity