[Android][FLUTTER] Stream closed with status: Status{code=UNAVAILABLE, description=Unable to resolve host firestore.googleapis.com, cause=java.lang.RuntimeException
See original GitHub issueDescribe your environment
- Android Studio version: 2021.2.1
- Firebase Component: _____ Firestore
- Component version: _____
Describe the problem
Steps to reproduce:
iam working on a flutter app and i don’t think this is a flutterfire problem , just initialized firebase for my project , added the packages and did not execute any code but await Firebase.initializeApp(options: DefaultFirebaseOptions.currentPlatform);
error Code:
/ManagedChannelImpl(23932): [{0}] Failed to resolve name. status={1}
W/Firestore(23932): (24.3.1) [WatchStream]: (5cc1395) Stream closed with status: Status{code=UNAVAILABLE, description=Unable to resolve host firestore.googleapis.com, cause=java.lang.RuntimeException: java.net.UnknownHostException: Unable to resolve host "firestore.googleapis.com": No address associated with hostname
W/Firestore(23932): at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:223)
W/Firestore(23932): at io.grpc.internal.DnsNameResolver.doResolve(DnsNameResolver.java:282)
W/Firestore(23932): at io.grpc.internal.DnsNameResolver$Resolve.run(DnsNameResolver.java:318)
W/Firestore(23932): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
W/Firestore(23932): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
W/Firestore(23932): at java.lang.Thread.run(Thread.java:920)
W/Firestore(23932): Caused by: java.net.UnknownHostException: Unable to resolve host "firestore.googleapis.com": No address associated with hostname
W/Firestore(23932): at java.net.Inet6AddressImpl.lookupHostByName(Inet6AddressImpl.java:156)
W/Firestore(23932): at java.net.Inet6AddressImpl.lookupAllHostAddr(Inet6AddressImpl.java:103)
W/Firestore(23932): at java.net.InetAddress.getAllByName(InetAddress.java:1152)
W/Firestore(23932): at io.grpc.internal.DnsNameResolver$JdkAddressResolver.resolveAddress(DnsNameResolver.java:631)
W/Firestore(23932): at io.grpc.internal.DnsNameResolver.resolveAddresses(DnsNameResolver.java:219)
W/Firestore(23932): ... 5 more
and the error goes on and on and on till the app crashes , and if i opened any connection with firestore it won’t get the data NOTE : i have a stable internet fiber connection so i don’t this is the issue
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Offline Firestore : Stream closed with status - firebase
Offline Firestore : Stream closed with status: Status{code=UNAVAILABLE ... to resolve host firestore.googleapis.com, cause=java.lang.
Read more >FirebaseFirestoreException.Code - Google
The set of Cloud Firestore status codes. ... Operation was rejected because the system is not in a state required for the operation's...
Read more >firebasefirestore.instance.collection commands - You.com
Cloud Firestore provides powerful query functionality for specifying which documents you want to retrieve from a collection or collection group. These queries ...
Read more >Firestore take long time to retrieve data after reconnecting to ...
Stream closed with status: zzfof{code=UNAVAILABLE, description=null, cause=java.net.UnknownHostException: Unable to resolve host ...
Read more >Best practices | Firestore - Google Cloud
Your snapshot listeners can experience increased latency if you frequently add or remove snapshot listeners to references. In general, a constantly-attached ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I found a few problems with this issue:
@argzdev Thanks, I have done that