I loaded the sync-gateway and used the simple react tutorial, which works 
fine.  Then I loaded the ToDoLite iOS app, and ran it in Xcode and 
Simulator. It worked fine with the default kSyncGatewayUrl of "
http://demo-mobile.couchbase.com/todolite"; .  Then I tried to run it with 
my the URL of my sync-gateway, and I see errors in the logs like this:

03:18:54.034| Sync: CBLReplication[from http://cb1.vieulabs.net:4984]: 
active, progress = 0 / 0, err: (null)
03:18:54.034| Query: CBLLiveQuery[lists]: ...async query finished (5 rows, 
status 200)
03:18:54.034| Query: CBLLiveQuery[lists]: ...Rows changed! (now 5)
03:18:54.036‖ CBLRemoteJSONRequest[GET 
http://cb1.vieulabs.net:4984/_session]: Got error Error Domain=CBLHTTP 
Code=404 "404 not_found" 
UserInfo={NSURL=http://cb1.vieulabs.net:4984/_session, 
NSLocalizedFailureReason=not_found, NSLocalizedDescription=404 not_found}
03:18:54.037‖ Sync: CBLRestPuller[http://cb1.vieulabs.net:4984]: Server is 
(null)

In my sync-gateway-config.json, I have stripped down the config to this (I 
wasn't sure whether the database was 'todos' or 'todolite' so I did both):

{

  "log":["*"],

  "verbose": true,

  "databases": {

    "todos": {

      "server":"http://couchbase1:8091";,

      "users": {"GUEST": {"disabled": false, "all_channels": ["*"], 
"admin_channels": ["*"]}},

      "sync":`

        function(doc) {

          channel(doc.channels);

        }`

    },

    "todolite": {

      "server":"http://couchbase1:8091";,

      "users": {"GUEST": {"disabled": false, "all_channels": ["*"], 
"admin_channels": ["*"]}},

      "sync":`

        function(doc) {

          channel(doc.channels);

        }`

    }

  }

}

I tried to include the line for   "facebook": { "register": true }, but 
that failed the same way. I also get the same results from 
using "server":"walrus:".   Is there a simple way forward?

-- 
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/5d413216-4e34-450f-bfda-3f0606e570df%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to