Description
Dears,
I've met issue with re-connection to database. Time by time re-connection is unsuccessful with this error message: "Firebase.Database.Internal.TubeSock.WebSocketException: IO Exception ---> System.IO.IOException: IO exception during Write. ---> System.ObjectDisposedException: The object was used after being disposed."
Please check the log for more detalies:
I/Unity ( 1137): WebSocket:ws_1 - had an error
I/Unity ( 1137): Firebase.Database.Internal.TubeSock.WebSocketException: IO Error ---> System.IO.IOException: EndRead failure ---> System.Net.Sockets.SocketException: Connection timed out
I/Unity ( 1137): at System.Net.Sockets.Socket+SocketAsyncResult.CheckIfThrowDelayedException () [0x00000] in :0
I/Unity ( 1137): at System.Net.Sockets.Socket.EndReceive (IAsyncResult asyncResult, System.Net.Sockets.SocketError& errorCode) [0x00000] in :0
I/Unity ( 1137): at System.Net.Sockets.Socket.EndReceive (IAsyncResult result) [0x00000] in :0
I/Unity ( 1137): at System.Net.Sockets.NetworkStream.EndRead (IAsyncResult ar) [0x00000] in :0
I/Unity ( 1137): --- End of inner exception stack trace ---
I/Unity ( 1137): (Filename: ./artifacts/generated/common/runtim
I/Unity ( 1137): WebSocket:ws_1 - |IO Error|
I/Unity ( 1137): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
I/Unity ( 1137): WebSocket:ws_1 - closing itself
I/Unity ( 1137): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
I/Unity ( 1137): Connection:conn_1 - Realtime connection lost
I/Unity ( 1137): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
I/Unity ( 1137): Connection:conn_1 - closing realtime connection
I/Unity ( 1137): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
I/Unity ( 1137): PersistentConnection:pc_0 - Got on disconnect due to Other
I/Unity ( 1137): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
I/Unity ( 1137): PersistentConnection:pc_0 - Scheduling connection attempt
I/Unity ( 1137): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
I/Unity ( 1137): ConnectionRetryHelper:Scheduling retry in %dms
I/Unity ( 1137): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
I/Unity ( 1137): EventRaiser:Raising 1 event(s)
I/Unity ( 1137): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
I/Unity ( 1137): WebSocket:ws_1 - closed
I/Unity ( 1137): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
I/Unity ( 1137): WebSocket:ws_1 - had an error
I/Unity ( 1137): Firebase.Database.Internal.TubeSock.WebSocketException: IO Exception ---> System.IO.IOException: IO exception during Write. ---> System.ObjectDisposedException: The object was used after being disposed.
I/Unity ( 1137): at System.Net.Sockets.NetworkStream.CheckDisposed () [0x00000] in :0
I/Unity ( 1137): at System.Net.Sockets.NetworkStream.BeginWrite (System.Byte[] buffer, Int32 offset, Int32 size, System.AsyncCallback callback, System.Object state) [0x00000] in :0
I/Unity ( 1137): at Mono.Security.Protocol.Tls.SslStreamBase.InternalBeginWrite (Mono.Security.Protocol.Tls.InternalAsyncResult asyncResult) [0x00000] in :0
I/Unity ( 1137): --- End of inner exception stack trace ---
I/Unity ( 1137): at Mono.Security.Protocol.Tls.SslStreamBase.InternalBeginWrite (Mono.Security.Protocol.Tls.InternalAsyncResult asyncResult) [0x00000] in :0
I/Unity ( 1137): at Mono.Security.Protocol.Tls.SslStreamBase.BeginWrite (System.Byte[] buffer, Int32 offset, Int32 count, System.AsyncCallback callback, System.Obj
I/Unity ( 1137): WebSocket:ws_1 - |IO Exception
I/Unity ( 1137): (Filename: ./artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 42)
I/Unity ( 1137): EventRaiser:Raising /.info/connected: Value: False
Thank you!