Xcode 9 Swift 4 trying http request using tron and swifty
public func getWaniWifiList(){
    let tron = TRON.init(baseURL: Constants.waniBaseUrl)
    var parameters : [String : String] = [:]
    parameters["version"] = Constants.waniAPIVersion
    let request: APIRequest<WaniRespModel, ErrorModel> = tron.swiftyJSON.request(Constants.waniAPI)
    request.method = .get
    request.parameters = parameters
    request.perform(withSuccess: {response in
        print("error")
    }, failure: {error in
        print(error)
    })
}
Getting below Error:
APIError<ErrorModel>(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()))
 
    