Search code examples
flutterfirebasedartgoogle-cloud-firestorestream

W/Firestore: Stream closed with status: Status{code=INTERNAL, description=error in frame handler,


I am using flutter firestore, it was working properly but suddenly this error came and stop writing operation

W/Firestore(25709): (24.4.0) [WriteStream]: (3513ff8) Stream closed with status: Status{code=INTERNAL, description=error in frame handler, cause=java.lang.NoSuchMethodError: No interface method getBuffer()Lokio/Buffer; in class Lokio/BufferedSource; or its super classes (declaration of 'okio.BufferedSource' appears in /data/app/~~G9c6fWlNC5LeVKO_bfdo8Q==/com.example.taafi_application_v1-WbGfHWKKjFunYoB6Qy7Syw==/base.apk!classes7.dex) W/Firestore(25709): at io.grpc.okhttp.OkHttpClientTransport$ClientFrameHandler.data(OkHttpClientTransport.java:1123) W/Firestore(25709): at io.grpc.okhttp.internal.framed.Http2$Reader.readData(Http2.java:234) W/Firestore(25709): at io.grpc.okhttp.internal.framed.Http2$Reader.nextFrame(Http2.java:147) W/Firestore(25709): at io.grpc.okhttp.OkHttpClientTransport$ClientFrameHandler.run(OkHttpClientTransport.java:1082) W/Firestore(25709): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) W/Firestore(25709): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) W/Firestore(25709): at java.lang.Thread.run(Thread.java:923) W/Firestore(25709): }.

i try to upgrade the firestore,and flutter clean but nothing happend


Solution

  • I ran into this problem in my Flutter project when I added a dependency to google_ml_kit in my pubspec.yaml file. This issue is documented at https://github.com/bharat-biradar/Google-Ml-Kit-plugin/issues/286. If you recently added some dependencies in your pubspec.yaml file, you might try temporarily removing them to see if the problem goes away.