title: Swift Api request error NSURLErrorDomain Code=-999 "cancelled"
body: <p>Xcode 9 Swift 4 trying http request using tron and swifty</p>
  
  <pre><code>public func getWaniWifiList(){
      let tron = TRON.init(baseURL: Constants.waniBaseUrl)
      var parameters : [String : String] = [:]
      parameters["version"] = Constants.waniAPIVersion
  
      let request: APIRequest&lt;WaniRespModel, ErrorModel&gt; = tron.swiftyJSON.request(Constants.waniAPI)
      request.method = .get
      request.parameters = parameters
      request.perform(withSuccess: {response in
          print("error")
      }, failure: {error in
  
          print(error)
  
      })
  }
  </code></pre>
  
  <p>Getting below Error:</p>
  
  <pre><code>APIError&lt;ErrorModel&gt;(request: Optional(http://www.i2e1.in/trai/parsexmldata?version=1.0), response: nil, data: Optional(0 bytes), error: Optional(Error Domain=NSURLErrorDomain Code=-999 "cancelled" UserInfo={NSErrorFailingURLKey=http://www.i2e1.in/trai/parsexmldata?version=1.0, NSErrorFailingURLStringKey=http://www.i2e1.in/trai/parsexmldata?version=1.0, NSLocalizedDescription=cancelled}), errorModel: Optional(SwApp.ErrorModel()))
  </code></pre>