flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

🐛 [Firebase/Firestore] - Could not reach data from Firestore when enable LTE on Physical device

Open hieulh94 opened this issue 4 years ago • 1 comments

Connection 21: received failure notification
Connection 21: failed to connect 1:50, reason -1
Connection 21: encountered error(1:50)
Task <29D75310-CBCB-48CC-9A86-5ECAA7E84A50>.<1> HTTP load failed, 0/0 bytes (error code: -1009 [1:50])
Task <29D75310-CBCB-48CC-9A86-5ECAA7E84A50>.<1> finished with error [-1009] Error Domain=NSURLErrorDomain Code=-1009 "The Internet connection appears to be offline." UserInfo={_kCFStreamErrorCodeKey=50, NSUnderlyingError=0x282b83270 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 "(null)" UserInfo={_NSURLErrorNWPathKey=unsatisfied (Denied over cellular interface), interface: pdp_ip0, ipv4, ipv6, dns, expensive, _kCFStreamErrorCodeKey=50, _kCFStreamErrorDomainKey=1}}, _NSURLErrorFailingURLSessionTaskErrorKey=LocalDataTask <29D75310-CBCB-48CC-9A86-5ECAA7E84A50>.<1>, _NSURLErrorRelatedURLSessionTaskErrorKey=(
"LocalDataTask <29D75310-CBCB-48CC-9A86-5ECAA7E84A50>.<1>"
), NSLocalizedDescription=The Internet connection appears to be offline., NSErrorFailingURLStringKey=[https://firebasestorage.googleapis.com:443/v0/b/dev-dadtitude.appspot.com/o?prefix=illustration/&delimiter=/](https://firebasestorage.googleapis.com/v0/b/dev-dadtitude.appspot.com/o?prefix=illustration/&delimiter=/), NSErrorFailingURLKey=[https://firebasestorage.googleapis.com:443/v0/b/dev-dadtitude.appspot.com/o?prefix=illustration/&delimiter=/](https://firebasestorage.googleapis.com/v0/b/dev-dadtitude.appspot.com/o?prefix=illustration/&delimiter=/), _kCFStreamErrorDomainKey=1}
8.15.0 - [Firebase/Firestore][I-FST000001] WatchStream (1064b2b88) Stream error: 'Unavailable: DNS resolution failed for firestore.googleapis.com: UNKNOWN: nodename nor servname provided, or not known'

adapty_flutter: ^0.3.4 cloud_firestore: ^3.1.15 firebase_analytics: ^9.1.8 firebase_auth: ^3.3.18 firebase_core: ^1.17.0 firebase_crashlytics: ^2.8.0 firebase_messaging: ^11.4.0 firebase_storage: ^10.2.16

hieulh94 avatar May 19 '22 04:05 hieulh94

@HieuHongLe94 From the error log you shared, below are the errors:

"The Internet connection appears to be offline."
unsatisfied (Denied over cellular interface)

Stream error: 'Unavailable: DNS resolution failed for firestore.googleapis.com:

UNKNOWN: nodename nor servname provided, or not known'

Indicating a network related issue / connection issue which doesn't seem to be in hands of flutterfire. See this similar issue for your reference https://github.com/firebase/flutterfire/issues/2753 and issue comment as conclusion on what need to be done.

Closing from here.

darshankawar avatar May 19 '22 10:05 darshankawar