instacart / instacart/TrueTime.swift

Connection Timed out Error

Open
#101 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
634
Forks
154
PR merge metrics
No merged PRs in 30d

Description

"**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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.