Subject: Matrix vNext in Xamarin.Forms - DotNetty.Transport.Channels.ClosedChannelException
Hi,
I'm not sure how active these forums are but I couldn't find anywhere else of use.
I'm running into issues when trying to use Matrix.vNext in Xamarin forms. I have a sample (taken from github https://github.com/matrix-xmpp/matrix-vnext/tree/master/ex…) that works perfectly well when running on a windows box.
However, when moving to Xamarin.Forms, in either Android or iOS I'm getting a ClosedChannelException (see below). It seems to do the initial connect and get the features, but fails when setting up the Tls.
Does anyone have any ideas?
Thanks in advance,
Paul.
I'm not sure how active these forums are but I couldn't find anywhere else of use.
I'm running into issues when trying to use Matrix.vNext in Xamarin forms. I have a sample (taken from github https://github.com/matrix-xmpp/matrix-vnext/tree/master/ex…) that works perfectly well when running on a windows box.
However, when moving to Xamarin.Forms, in either Android or iOS I'm getting a ClosedChannelException (see below). It seems to do the initial connect and get the features, but fails when setting up the Tls.
DotNetty.Transport.Channels.ClosedChannelException: I/O error occurred.
at Matrix.Network.Handlers.XmppStanzaHandler.SendAsync (System.String s) [0x0004c] in C:\vs_samples_repos\matrix-vnext\src\Matrix\Network\Handlers\XmppStanzaHandler.cs:114
at Matrix.Network.Handlers.XmppStanzaHandler.SendAsync[T] (System.Func`1[TResult] sendTask, System.Func`2[T,TResult] predicate, System.Int32 timeout, System.Threading.CancellationToken cancellationToken) [0x000b8] in C:\vs_samples_repos\matrix-vnext\src\Matrix\Network\Handlers\XmppStanzaHandler.cs:438
at Matrix.Network.Handlers.XmppStanzaHandler.SendAsync[T1,T2] (System.String s, System.Int32 timeout, System.Threading.CancellationToken cancellationToken) [0x00098] in C:\vs_samples_repos\matrix-vnext\src\Matrix\Network\Handlers\XmppStanzaHandler.cs:169
at Matrix.XmppConnection.SendAsync[T1,T2] (System.String data, System.Int32 timeout, System.Threading.CancellationToken cancellationToken) [0x00037] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppConnection.cs:199
at Matrix.XmppConnection.SendStreamHeaderAsync (System.Int32 timeout, System.Threading.CancellationToken cancellationToken) [0x00068] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppConnection.cs:480
at Matrix.XmppConnection.SendStreamHeaderAsync (System.Threading.CancellationToken cancellationToken) [0x0002b] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppConnection.cs:469
at Matrix.XmppConnection.ResetStreamAsync (System.Threading.CancellationToken cancellationToken) [0x0003c] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppConnection.cs:447
at Matrix.XmppClient.DoStartTlsAsync (System.Threading.CancellationToken cancellationToken) [0x0018f] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppClient.cs:228
at Matrix.XmppClient.HandleStreamFeaturesAsync (Matrix.Xmpp.Stream.StreamFeatures features, System.Threading.CancellationToken cancellationToken) [0x000c0] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppClient.cs:179
at Matrix.XmppClient.ConnectAsync (System.Threading.CancellationToken cancellationToken) [0x0021f] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppClient.cs:169
at Matrix.XmppClient.ConnectAsync () [0x00025] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppClient.cs:142
at Matrix.Network.Handlers.XmppStanzaHandler.SendAsync (System.String s) [0x0004c] in C:\vs_samples_repos\matrix-vnext\src\Matrix\Network\Handlers\XmppStanzaHandler.cs:114
at Matrix.Network.Handlers.XmppStanzaHandler.SendAsync[T] (System.Func`1[TResult] sendTask, System.Func`2[T,TResult] predicate, System.Int32 timeout, System.Threading.CancellationToken cancellationToken) [0x000b8] in C:\vs_samples_repos\matrix-vnext\src\Matrix\Network\Handlers\XmppStanzaHandler.cs:438
at Matrix.Network.Handlers.XmppStanzaHandler.SendAsync[T1,T2] (System.String s, System.Int32 timeout, System.Threading.CancellationToken cancellationToken) [0x00098] in C:\vs_samples_repos\matrix-vnext\src\Matrix\Network\Handlers\XmppStanzaHandler.cs:169
at Matrix.XmppConnection.SendAsync[T1,T2] (System.String data, System.Int32 timeout, System.Threading.CancellationToken cancellationToken) [0x00037] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppConnection.cs:199
at Matrix.XmppConnection.SendStreamHeaderAsync (System.Int32 timeout, System.Threading.CancellationToken cancellationToken) [0x00068] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppConnection.cs:480
at Matrix.XmppConnection.SendStreamHeaderAsync (System.Threading.CancellationToken cancellationToken) [0x0002b] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppConnection.cs:469
at Matrix.XmppConnection.ResetStreamAsync (System.Threading.CancellationToken cancellationToken) [0x0003c] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppConnection.cs:447
at Matrix.XmppClient.DoStartTlsAsync (System.Threading.CancellationToken cancellationToken) [0x0018f] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppClient.cs:228
at Matrix.XmppClient.HandleStreamFeaturesAsync (Matrix.Xmpp.Stream.StreamFeatures features, System.Threading.CancellationToken cancellationToken) [0x000c0] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppClient.cs:179
at Matrix.XmppClient.ConnectAsync (System.Threading.CancellationToken cancellationToken) [0x0021f] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppClient.cs:169
at Matrix.XmppClient.ConnectAsync () [0x00025] in C:\vs_samples_repos\matrix-vnext\src\Matrix\XmppClient.cs:142
Does anyone have any ideas?
Thanks in advance,
Paul.
This post was edited 2 times, last on 2019-11-26, 19:28 by Alex.