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/a77292cd-f166-4126-8a90-25910cef9720%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to