It would be great to be able to sync from CouchbaseLite 2.x to CouchDB. But 
I don't think they support that.

It's what's keeping me from upgrading to 2.x.

Brendan

On Saturday, September 1, 2018 at 6:32:33 PM UTC-6, Adam Wilson wrote:
>
>
> I'm trying to replicate from CouchDB using LiteCore (from C++). I'm 
> linking to the static libraries, and using C4CivetWebSocketFactory. 
>
> It looks like its trying to connect via WebSocket and receiving an HTTP 
> response. Since CouchDB does not currently support WebSockets, how can I 
> get it to fall back to HTTP? (If that is the issue)
>
> Console output below:
>
> 01:19:41.614057| [DB]: Opening database ../../../../c4db/db/db.sqlite3
> 01:19:41.618855| [Sync]: {Repl#1}==> litecore::repl::Replicator 
> ../../../../c4db/db/ ->http://<couchdb-ip>:5984/mydb
> 01:19:41.618917| [Sync]: {Repl#1} Push=passive, Pull=one-shot, 
> Options={{}}
> 01:19:41.628659| [Sync]: {Repl#1} No local checkpoint 
> 'cp-HdL43k4ltUI/79YYeGCRxvY6KsM='
> 01:19:41.691422| [WS] WARNING: {C4SocketImpl#1}==> 
> litecore::repl::C4SocketImpl http://<couchdb-ip>:5984/mydb
> 01:19:41.691502| [WS] WARNING: {C4SocketImpl#1} WebSocket closed 
> abnormally with status 200
> 01:19:41.691727| [Sync]: {Repl#1} Connection closed with WebSocket status 
> 200: "Unexpected response status 200 OK" (state=1)
> 01:19:41.691790| [Sync] ERROR: {Repl#1} Got LiteCore error: Unexpected 
> response status 200 OK (6/200)
> 01:19:41.691832| [Sync]: {Repl#1} now stopped
> 01:19:41.692051| [DB]: Closing database ../../../../c4db/db/db.sqlite3
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/0128a502-2783-4c18-badd-e506e96a5152%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to