Couchbase Questions: Couchbase Mobile

Have a Question? Get it answered by our community

yuzkan's picture
Asked 4 months 5 days ago
Latest activity 4 months 4 days ago

Invalid top-level key '_removed' in document to be inserted

Hello,

With couchbase-lite for android on pull I'm getting an error " Invalid top-level key '_removed' in document to be inserted".
And everytime I start a new pull I keep getting this error for the same revision ID.

Is that a bug with couchbase-lite for android or should I...

AnupVeerapur's picture
Asked 4 months 6 days ago
Latest activity 4 months 6 days ago

Insert to CB Lite

Hi Team,

I have a json data. Can you pls tel me a simple way how to insert it into couchbase lite db and fetch from it. A simple example would be a lot of help. I am using phonegap and i wanted the help mostly in javascript.

Please let me know, this would save a lot of time....

flo_vonderuni's picture
Asked 4 months 1 week ago
Latest activity 4 months 1 week ago

Sync with Couchbase Lite through Couchbase Sync Gateway doesn’t see any documents (Channel issue?)

[The same question but with better formatting is available here: http://stackoverflow.com/questions/23249293/sync-with-couchbase-lite-thr... ]

I’m...

Evengers's picture
Asked 4 months 1 week ago

Wrong version of ios-sim? (In case others are having tutorial problem)

The tutorial here: http://docs.couchbase.com/couchbase-lite/cbl-phonegap/

Says "you have the latest released version of each tool."

I and others got it running with iOS-sim 1.8 but not the latest 1.9.

...

bmhardy's picture
Asked 4 months 2 weeks ago

How to get name of logged in user from cookie

Hi

I authenticated with persona using the _persona endpoint. I was able to retrieve the cookie sent back on the call. It had a named entry syncGatewaySession and an alpha numerical value. Can I get the name of the logged in user from that cookie.

Could I access that cookie after...

bmhardy's picture
Asked 4 months 2 weeks ago

requireUser not working for me.

I authenticate using persona and I see a message in the sync gateway logs that confirms I’m authenticated as user bsg2@gmx.com

When my sync function reads like this (with requireUser commented out):
"sync": `function(doc, oldDoc) {...

bmhardy's picture
Asked 4 months 2 weeks ago
Latest activity 4 months 2 weeks ago

How to get the session cookie after persona authentication

Hi,

I read this about using persona with couchbase:

Clients log in by sending a POST request to /dbname/_persona. The request body is a JSON document that contains an assertion property whose value is the signed assertion received from the identity provider. Just as with a _session...

bmhardy's picture
Asked 4 months 2 weeks ago
Latest activity 4 months 2 weeks ago

Wrong user exception not thrown in client code.

I'm using authorization in my couchbase config.

In my config.json, my sync function says this:

if (oldDoc) {
requireUser("importantUser@consultant.com");
}

This does indeed stop un authorized users from...

bmhardy's picture
Asked 4 months 2 weeks ago
Latest activity 4 months 2 weeks ago

Trouble with authorization in sync function

I'm having some trouble adding some authorization into our couchbase mobile app. Can you offer any help or insight?

I'm running this on an amazon ec2 instance so the couchbase version may be a little older than current.

I'm using persona to authenticate. I successfully...

AnupVeerapur's picture
Asked 4 months 2 weeks ago
Latest activity 4 months 1 week ago

Phonegap TodoLite Project creation error.

Hi, I am trying to create the TodoLite example project. I am always getting the error "Couchbase Lite not installed" and the porject does not seem to work later.

Please suggest what would have gone wrong.
I have followed all the steps as per the "...

Pages