Questions tagged [couchbase-sync-gateway]

Couchbase Sync Gateway is an add-on that enables Couchbase Server 2.0 and later to act as a replication endpoint for Couchbase Lite. Sync Gateway runs an HTTP listener process that provides a passive replication endpoint and uses a Couchbase Server bucket as persistent storage for all database documents.

Couchbase Sync Gateway is an add-on that enables Couchbase Server 2.0 and newer versions to act as a replication endpoint for Couchbase Lite. Sync Gateway runs an HTTP listener process that provides a passive replication endpoint and uses a Couchbase Server bucket as persistent storage for all database documents.

Resources:

230 questions
1
vote
1 answer

Sync Gateway Query PUT is not compatible with GET

The object returned by GET {db}/_design/{ddoc} injects a whole bunch of extra validation syntax into the 'map' value for a view which, when returned to the server in a PUT request, invalidates the view. For example: PUT {db}/_design/{ddoc} {'views':…
R J
  • 4,473
  • 2
  • 22
  • 29
1
vote
1 answer

How To Flush a Bucket in Couchbase Sync Gateway

Couchbase server has a method to remove all the stored data in a bucket called doFlush. It is invoked through the following command: POST /pools/default/buckets/[bucket-name]/controller/doFlush When I try to invoke this function using the Sync…
R J
  • 4,473
  • 2
  • 22
  • 29
1
vote
0 answers

Sync Gateway - Get information about all the document whose revision-id changed during syncing

I would like to know is there is a way to know whether a document with new revision-id is synced in pouch DB. As for know, I am only able to know that new document is Synced. What I mean, is that whenever a new document is written in pouch DB, I…
1
vote
0 answers

PouchDB with Couchbase sync-gateway not stable. Is it advised to use these two in a production stack?

We are using pouchDB with couchBase sync gateway for a new application. In general it works, but we are finding it not stable. There are three issues for us The unavailability of bulk processing through the sync gateway. Is there some solution for…
willemvdw
  • 11
  • 1
1
vote
0 answers

Sync gateway connection Error: connect EMFILE - Local (undefined:undefined)

I am trying to get couchbase document revision identifier via sync gatetway API GET /{db}/{doc} within Node server: function _getRev(docIdUrl, gateway, callback) { let options = { host: gateway.host, path: gateway.path +…
leonsPAPA
  • 657
  • 2
  • 13
  • 29
1
vote
1 answer

Couchbase lite not pulling channels via Sync Gateway

I'm having a problem pulling data via Sync Gateway channels. The way I understand channels is they are basically a form of tag that will allows you to mark a document in a special way. What I am trying to do When I close the application, delete…
Hypnic Jerk
  • 1,192
  • 3
  • 14
  • 32
1
vote
0 answers

understanding couchbase server

We are developing an App which has overall core 15 modules. Whenever a new business is registered either thru mobile or thru web, then we planned to create 15 docs (biz1_users, biz1_loans..etc) which are array type like below. (ref fig 1.0) ex :…
1
vote
2 answers

Using Couchbase Lite and Sync Gateway, how to have documents from revoked channels removed?

I'm developing an application with Couchbase Lite on client side, and Couchbase Sync Gateway on server side. On server-side, I manage "access grant" documents. When such a document is created, the user given in that document is granted access to a…
Riduidel
  • 22,052
  • 14
  • 85
  • 185
1
vote
1 answer

PouchDB basic auth does not work with sync gateway

When I try to sync from PouchDB to couchbase server using sync gateway I am getting following error: XMLHttpRequest cannot load http://localhost:4984/test/. Request header field Authorization is not allowed by Access-Control-Allow-Headers in…
1
vote
1 answer

Why am I getting a 409 Conflict deleting a document through Couchbase Sync Gateway?

Can anyone explain to me why I'm getting this response trying to delete a document? curl -X DELETE --header 'Accept: application/json' 'http://localhost:4985/mydb/uprofile:testing' When I run this, I get: { "error": "conflict", "reason":…
Sthe
  • 2,575
  • 2
  • 31
  • 48
1
vote
1 answer

Couchbase Key Replication

Is it possible in Couchbase to get notified only if a specific key in a document was changed (in the SyncGateway) or could that be achieved through LiveQueries and how? { "test": "BaseCouch" "test2": "foo" } changing to: { "test":…
pbertsch
  • 320
  • 2
  • 14
1
vote
1 answer

Unable to install Couchbase sync gateway

I am trying to install Couchbase sync gateway using the steps from the following URL for MacOS https://developer.couchbase.com/documentation/mobile/current/installation/sync-gateway/index.html This issue is, i downloaded…
Stella
  • 1,728
  • 5
  • 41
  • 95
1
vote
0 answers

How to get image from couchbase?

I am doing a web site which has an admin side, the following is the code for creating an image attachment: AttachmentModel.create=function(data,callback){ var link = data.link; var fileName= data.name; var id= uuid(); var options = { …
1
vote
0 answers

Although allowing guest users, couchbase requires authentication

I created a couchbase bucket to sync it with ionic 2 app using PouchDB In the sync-gateway file I allowed guest users : "users": { "GUEST": { "disabled": false, "admin_channels": ["*"] } } I was able…
Ahmed Elgendy
  • 1,670
  • 2
  • 12
  • 17
1
vote
1 answer

Upsert Document which comes via Couchbase sync gateway Webhook to an API

I'm using webhook event handler in my sync gateway. Whenever a particular doc syncs, it is sent as request to an API. Now I tried to upsert the Doc with some changes in the Doc property. My issue is the doc gets updated, but the same document is…