Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

NSURLErrorDomain error -1012 on iOS

Discussion in 'Unity 5 Pre-order Beta' started by Claytonious, Feb 21, 2015.

  1. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    902
    We're getting "NSURLErrorDomain error -1012" whenever we use anything that requires basic http authentication headers when deployed to iOS devices from Unity 5 RC3.

    For example, Parse no longer works, and Playfab no longer works. You cannot use any services that require auth from Unity 5/iOS. This is a lot of broken services with Unity 5, right?

    Is anybody else seeing this? Does anyone have a workaround?

    (I've filed a bug report already).
     
    akeplinger likes this.
  2. Claytonious

    Claytonious

    Joined:
    Feb 16, 2009
    Posts:
    902
    OK, then, let me flip it around: is anyone successfully using services like Parse or Playfab that require http basic auth in Unity 5 on iOS today?
     
  3. milkshakeiii

    milkshakeiii

    Joined:
    Feb 16, 2013
    Posts:
    9
    Hello Claytonious,

    We are experiencing a similar issue. Any word? I'll post here if I find anything. I did see several other posts on other websites related to this.

    milkshakeiii
     
  4. blueteak

    blueteak

    Joined:
    Feb 19, 2013
    Posts:
    140
    Experiencing the same issue using simple google API with key
     
  5. cryptoforge

    cryptoforge

    Joined:
    Jan 21, 2015
    Posts:
    60
    Parse does not work with Unity 5 for me on IOS but works in 4.6.2.

    I just migrated my project to Unity 5. Please fix ASAP.

    This is the exception I am getting (IOS console output).

    System.AggregateException: Exception of type 'System.AggregateException' was thrown.
    -----------------
    Parse.ParseException: The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
    at Parse.ParseClient+<>c__DisplayClass8.<RequestAsync>b__7 (System.Threading.Tasks.Task`1 t) [0x00000] in <filename unknown>:0
    at Parse.Internal.InternalExtensions+<>c__DisplayClass1`2[System.Tuple`2[System.Net.HttpStatusCode,System.String],System.Tuple`2[System.Net.HttpStatusCode,System.Collections.Generic.IDictionary`2[System.String,System.Object]]].<OnSuccess>b__0 (System.Threading.Tasks.Task t) [0x00000] in <filename unknown>:0
    at Parse.Internal.InternalExtensions+<>c__DisplayClass7`1[System.Tuple`2[System.Net.HttpStatusCode,System.Collections.Generic.IDictionary`2[System.String,System.Object]]].<OnSuccess>b__6 (System.Threading.Tasks.Task t) [0x00000] in <filename unknown>:0
    at System.Threading.Tasks.Task+<>c__DisplayClass3`1+<>c__DisplayClass5[System.Threading.Tasks.Task`1[System.Tuple`2[System.Net.HttpStatusCode,System.Collections.Generic.IDictionary`2[System.String,System.Object]]]].<ContinueWith>b__2 () [0x00000] in <filename unknown>:0

    UnityEngine.Debug:Internal_Log(Int32, String, Object)
    UnityEngine.Debug:LogError(Object)
     
    Last edited: Mar 3, 2015
    akeplinger likes this.