Skip to content

Firestore "no internet connection" error #622

Closed
@HusamAamer

Description

@HusamAamer
  • Xcode version: 9
  • Firebase SDK version: 4.8
  • Firebase Component: Firestore
  • Component version: 0.9.4

The problem

When getting collection documents in offline, Firestore returns error = nil with empty snap, and the following error logged in the debug area .

<Firebase/Network/ERROR> Encounter network error. Code, error: -1009, Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={NSUnderlyingError=0x1c025d700 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, NSErrorFailingURLStringKey=https://play.googleapis.com/log, NSErrorFailingURLKey=https://play.googleapis.com/log, _kCFStreamErrorDomainKey=1, _kCFStreamErrorCodeKey=50, NSLocalizedDescription=The Internet connection appears to be offline.}

Is there a way to get no connection errors ??

I think It would be more convenient to have an error with no connection.
Even if data catches I prefer to have a cached snap with no connection error.

Regards,

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions