TrueTime.swift icon indicating copy to clipboard operation
TrueTime.swift copied to clipboard

Connection Timed out Error

Open MohamedJaffer-24 opened this issue 3 years ago • 0 comments

"Error! Error Domain=com.instacart.TrueTimeErrorDomain Code=2 "The connection timed out." UserInfo={NSLocalizedDescription=The connection timed out.}"

Version : TrueTime (5.0.3)

My code:

let client = TrueTimeClient.sharedInstance
client.start()
let now = client.referenceTime?.now()
client.fetchIfNeeded { result in
    switch result {
        case let .success(referenceTime):
            let now = referenceTime.now()
        case let .failure(error):
            print("Error! \(error)")
    }
}

It was working before. When i check this yesterday, I came with this error. Kindly check this

MohamedJaffer-24 avatar Jul 22 '22 12:07 MohamedJaffer-24