Hi, I’m having some problem using CBLite on P2P replication.
My versions are:
Windows -> 10
Android -> have tested in 4.4,5,6,7
CBLite -> 1.4.1
CBListener -> 1.41
My problem is:
I Have a .NET app that act like a windows WS (WebService) and have a active replication with a Bucket on the cloud also he share local database’s with CBListener, when I try to connect my smartphone Android using Xamarin (basically the same code that WS uses) I get HttpResponseError on Pull replication.
The pull stay in running state but when i going to add a channel (a basic channel for auth example) he start to give me the CouchbaseLiteResponseError.
Its a simple listener and a client trying to get information, just 2 devices (win/andr) happen the problem.
If i get the code base and run in Windows i managed to work and sync, if a put the same of the android app in another webservice as a client in windows, its works perfectly and sync very well.
So I Added a wireshark instance to monitoring http requisitions and try to see the P2P error, its appear that he make the connection with the listener but when he pass the channels filter he receive a NotImplementedException
This image show the URL that replication build for the listener and the message: https://drive.google.com/open?id=1pSqTHRSSLUOCAkP31rbAmCyhKIXKfW09
It’s appear that when i removing that get parameter “filter=syncgateway/bychannel” he stop the error and give me all the docs.
This is how a build my Replication. The others routines just stop or recreate and change the List of Channels (i think this is not the problem because the channels that he send if the correct): https://drive.google.com/open?id=1yJyr6sWIq1RZMHo7I4FAkWu0Y67HDgfT
In the past I had success tested this functionality and worked (dont remember if was 1.3 or 1.2) really breaking my head in this situation…
If listener is a simple HTTP API, its not a problem of communication between Android and Windows, the P2P replication should work right even with different Operation System right?
Message “Exception of type ‘Couchbase.Lite.HttpResponseException’ was thrown.”
StackTrace
at Couchbase.Lite.Util.TransientErrorRetryHandler.HandleTransientErrors (System.Threading.Tasks.Task1[TResult] request, System.Object stat e) [0x00152] in <c7a705781552411d8a71bf30383d29ba>:0 \n at Couchbase.Lite.Util.TransientErrorRetryHandler+<>c__DisplayClass4_0.<ResendHandler>b__0 (System.Threading.Tasks.Task
1[TResult] t) [0x00000] in :0 \n at
System.Threading.Tasks.Continuat
ionResultTaskFromResultTask2[TAntecedentResult,TResult].InnerInvoke () [0x00024] in <a590fc28503e44a68aa5eb20709ebce5>:0 \n at System.Threading.Tasks.Task.Execute () [0x00010] in <a590fc28503e44a68aa5eb20709ebce5>:0 \n--- End of stack trace from previous locat ion where exception was thrown ---\n at System.Runtime.ExceptionServices.ExceptionDispat chInfo.Throw () [0x0000c] in <a590fc28503e44a68aa5eb20709ebce5>:0 \n at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <a590fc28503e44a68aa5eb20709ebce5>:0 \n at System.Runtime.CompilerS ervices.TaskAwaiter.HandleNonSuccessAndDebuggerNotificat ion (System.Threading.Tasks.Task task) [0x00028] in <a590fc28503e44a68aa5eb20709ebce5>:0 \n at System.Runtime.CompilerServices.TaskAwaiter.Validat eEnd (System.Threading.Tasks.Task task) [0x00008] in <a590fc28503e44a68aa5eb20709ebce5>:0 \n at System.Runtime.CompilerServices.ConfiguredTaskAwaitable
1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in :0 \n at
System.Net.Http.HttpClient+d__49.MoveNext () [0x000ca] in :0
Someone could give me a tip to go?
Regards