pubnub / dart

PubNub Dart SDK
Other
28 stars 15 forks source link

Connection problem #38

Closed Adidi closed 3 years ago

Adidi commented 3 years ago

I have tried several approaches - the connection to pubnub in some point (even if the app is active and there is internet connection) is disconnected and really really unstable - i cant get 3 devices "chatting" for more then 2 min without some connection drop: and the worst thing is i dont have any indication from the sdk that its happening so i cant do anything to restore it. This is a really big problem if u design chat system and really unreliable solution for me this is the log:

I/flutter (10579): [2021-03-03 17:27:03.522314] (info) root.pubnub.networking.request_handler: (50) Resource released... I/flutter (10579): [2021-03-03 17:27:03.526140] (warning) root.pubnub.subscribe.subscribe_loop: An exception has occured while running a subscribe fiber (retry #1). I/flutter (10579): [2021-03-03 17:27:03.529552] (warning) root.pubnub.subscribe.subscribe_loop: No diagnostics found. E/flutter (10579): [ERROR:flutter/lib/ui/ui_dart_state.cc(177)] Unhandled Exception: PubNubException: request timed out E/flutter (10579): #0 new PubNubException package:pubnub/…/core/exceptions.dart:9 E/flutter (10579): #1 new PubNubRequestTimeoutException package:pubnub/…/net/exceptions.dart:8 E/flutter (10579): #2 RequestHandler.response. package:pubnub/…/request_handler/io.dart:101 E/flutter (10579): #3 _rootRun (dart:async/zone.dart:1182:47) E/flutter (10579): #4 _CustomZone.run (dart:async/zone.dart:1093:19) E/flutter (10579): #5 _CustomZone.runGuarded (dart:async/zone.dart:997:7) E/flutter (10579): #6 _CustomZone.bindCallbackGuarded. (dart:async/zone.dart:1037:23) I/flutter (10579): [2021-03-03 17:22:03.255180] (info) root.pubnub.networking.request_handler: (50) Starting request to "https://ps.pndsn.com/v2/subscribe/sub-c-923609da-6eac-11eb-9994-e2667f94577d/,/0?pnsdk=PubNub-Dart%2F3.1.0&tt=16147848536165710&tr=12&channel-group=chats-TkbjkY9uagMShBb9XNE9Yr5ZFTe2&uuid=TkbjkY9uagMShBb9XNE9Yr5ZFTe2"... E/flutter (10579): #7 _rootRun (dart:async/zone.dart:1190:13) E/flutter (10579): #8 _CustomZone.run (dart:async/zone.dart:1093:19) E/flutter (10579): #9 _CustomZone.bindCallback. (dart:async/zone.dart:1021:23) E/flutter (10579): #10 Timer._createTimer. (dart:async-patch/timer_patch.dart:18:15) E/flutter (10579): #11 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:397:19) E/flutter (10579): #12 _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:428:5) E/flutter (10579): #13 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12) 2

Thank you very much but I am afraid dart sdk is still not mature enough

are commented 3 years ago

We actually have a bug fix in the release process for the error that you experiencing.

Apart from that, I'm sorry that you feel this way. We want to make sure that the Dart SDK is the best it can be.

Adidi commented 3 years ago

I want that too. Can u tell me when the fix should be released ? I think its pretty basic wanting a stable connection for 3 min :) dont u think ?

are commented 3 years ago

Fix will be released this week. It is a regression since connection was stable and tested before.

Adidi commented 3 years ago

@are any updates ?

Adidi commented 3 years ago

And I am asking again - is there any updates on this ? @are

are commented 3 years ago

Dart SDK v3.2.0 will be released today.

are commented 3 years ago

Fix for this has been released in 3.2.0.

Adidi commented 3 years ago

@are Nope. It still happening - connection is not stable at all in iphone and in android. Well - it was a fun ride but i think i will move on to some other solution because cleary dart pubnub is not stable enough to go production - I am sure one day it will be - good luck !

are commented 3 years ago

Please next time either report the issue with a reproducible example or logs attached. I also recommend contacting support.