title: <1> HTTP load failed (error code: -1003 [12:8])
body: <p>I am using Xcode Version 9.4.1 simulater, I am getting this error:</p>
  
  <pre><code>&lt;1&gt; HTTP load failed (error code: -1003 [12:8])
  2018-08-15 05:14:42.275912+0000 FoodTaskerMobile[10864:360131] Task &lt;04D22041-2589-440F-AB57-2E4C2FFFF4CF&gt;.&lt;1&gt; finished with error - code: -1003
  
  
  
    // API to login an user
      func login(userType: String, completionHandler: @escaping (NSError?) -&gt; Void) {
  
          let path = "api/social/convert-token/"
          let url = baseURL!.appendingPathComponent(path)
          let params: [String: Any] = [
              "grant_type": "convert_token",
              "client_id": CLIENT_ID,
              "client_secret": CLIENT_SECRET,
              "backend": "facebook",
              "token": FBSDKAccessToken.current().tokenString,
              "user_type": userType
          ]
  </code></pre>
  
  <p>and</p>
  
  <pre><code>import Foundation
  
  let BASE_URL: String = "http://loaclhost:8000"
  let CLIENT_ID: String = "gvJawJBuORje858lQS4HBzTBHC84vUuzzw5vzjNi"
  let CLIENT_SECRET: String = "vkqJhkDbc3UOsxpxrlaXMwuReGVrWs9T55TmDixpFTGBTlY0MAtS9WsggM5Zaojnjw8LnfxB5k7fhKUfakhmsEmQgyKKZMsnckcUY4quCCsU3PH0qwRZoraQNjiE30Nf"
  </code></pre>
  
  <p>I have tried this way but still not fixe.</p>
  
  <p><a href="https://i.stack.imgur.com/yrIgE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yrIgE.png" alt="enter image description here"></a></p>