Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClientDisconnectedError #76

Closed
furkanKotic opened this issue Feb 27, 2023 · 11 comments
Closed

ClientDisconnectedError #76

furkanKotic opened this issue Feb 27, 2023 · 11 comments

Comments

@furkanKotic
Copy link

While the application was in the foreground, the following error occurred in the log records. It wasn't in the background.

Fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: ClientDisconnectedError
       at Transport.sendAsyncMessage(transport.dart:155)
       at ClientImpl._onPing(client.dart:711)
       at ClientImpl._onPush(client.dart:719)
       at Transport._onData.<fn>.<fn>(transport.dart:266)
       at _GrowableList.forEach(_GrowableList.java)
       at Transport._onData.<fn>(transport.dart:262)

image

@FZambia
Copy link
Member

FZambia commented Feb 27, 2023

Hello, it seems that this error is thrown when client tries to send pong to closed connection. Does the connection stops working (not reconnecting) after that?

@furkanKotic
Copy link
Author

No. It works because I can still get messages even though the error occurs.

@FZambia
Copy link
Member

FZambia commented Feb 28, 2023

I see, in general it's normal that connection errors happen. And if SDK successfully reconnected - then it's an expected normal behaviour. Probably we should handle and suppress this error in the SDK when sending pong 🤔

@furkanKotic
Copy link
Author

It seems to be ok as the message transmission is not interrupted but it is a bit sad to see this in Firebase. I will be happy if improvement is made. thanks

@BrianMwas
Copy link

I am also getting the error. Though I get the following information:- Client Connecting

@TomBeckett
Copy link

TomBeckett commented May 14, 2023

Its something we see very often in our Sentry logging. A bit frustrating as these errors take up a lot of our Sentry allowance (50k per month) and I think we're using the Dart SDK correctly 😕

I can see this being a bit confusing to users of the SDK as when you Google this error, all results point to the SDK being used incorrectly (i.e. not connecting/reconnecting between Foreground)

@FZambia
Copy link
Member

FZambia commented May 15, 2023

Trying to address this in #79

@FZambia
Copy link
Member

FZambia commented May 21, 2023

Please let me know whether v0.9.4 fixes this.

@TomBeckett
Copy link

@FZambia We've pulled this into our app and are pushing to production soon. Will let you know if we see an improvement. We've not forgotten about it 😃

@furkanKotic
Copy link
Author

Significantly reduced log records. We can say the problem is solved.
Thanks 😃

@FZambia
Copy link
Member

FZambia commented Jul 1, 2023

@TomBeckett hello, still waiting for the feedback about your use case, do you have any updates?

@FZambia FZambia closed this as completed Aug 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants