I’m trying to setup peer to peer connection between active peer device and a passive peer device, and trying to start the replication once both the devices are connected. I’m using the following MessageEndpointTarget object and starting the replication.
val messageEndpointTarget = MessageEndpoint(
UUID.randomUUID().toString(), // Randomly generated ID got Active device.
undueId, // Unique ID of the passive device.
ProtocolType.MESSAGE_STREAM,
this // Callbacks.
)
val config = ReplicatorConfiguration(cbHelper?.db!!, messageEndpointTarget)
replicator = Replicator(config)
replicator?.start()
However, I get the following error message Got LiteCore error: LiteCore error 10 “BLIP protocol error: Bad incoming RES #123 (too high)” once the replication starts.
Here is the log related to the error:
2019-11-08 12:08:45.443 15924-16133/com.<package>.dev E/CouchbaseLite/REPLICATOR: {Repl#3}==> N8litecore4repl10ReplicatorE /data/user/0/com.<package>.dev/files/gh-dev.cblite2/ ->x-msg-endpt:////_blipsync @0x7cca5ed8c8
2019-11-08 12:08:45.444 15924-16133/com.<package>.dev E/CouchbaseLite/REPLICATOR: {Repl#3} Got LiteCore error: LiteCore error 10 "BLIP protocol error: Bad incoming RES #123 (too high)"
2019-11-08 12:08:45.447 15924-16133/com.<package>.dev E/CouchbaseLite/REPLICATOR: {Repl#3} Stopping due to fatal error: LiteCore error 10 "BLIP protocol error: Bad incoming RES #123 (too high)"
Please can you let me know why this error is occurring, and if there is a sample project I can refer to?
Thank you.