Search Unity

  1. We would like to hear your feedback about Unity and our products. Click here for more information.
    Dismiss Notice

Unity + Parse + iOS NSURLErrorDomain error -1012.

Discussion in 'iOS and tvOS' started by Bestlis, Dec 3, 2015.

  1. Bestlis

    Bestlis

    Joined:
    Jan 15, 2014
    Posts:
    27
    Hello!
    I try to integrate parse.com into my iOS game.

    When I try get info from DB I get exception

    Exception: {"error":"The operation couldn’t be completed. (NSURLErrorDomain error -1012.)"}

    Here is my code:

    var query = ParseObject.GetQuery(ParseTableName).WhereEqualTo("DeviceId", SystemInfo.deviceUniqueIdentifier);
    var res = query.FindAsync();

    while (!res.IsCompleted)
    yield return null;

    if (res.IsFaulted)
    {
    print("Parse exception: " + res.Exception.Message);

    foreach (var excep in res.Exception.InnerExceptions)
    print("Exception: " + excep.Message);

    yield break;
    }

    Does anybody know what is my problem?
    Thanks!

    P.S. I read this post, but didn't solve the problem.
    http://forum.unity3d.com/threads/unity-5-api-authentication.306566/
     
  2. Bestlis

    Bestlis

    Joined:
    Jan 15, 2014
    Posts:
    27
    Nobody knows?...