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

Android Couchbase Lite Replication

I am having issues getting the replication function to work for my local Couchbase database and my Android app: private void startSync() { URL syncUrl; try { syncUrl = new URL("http://10.0.2.2:4984/sync_gateway"); // I am testing…
user1927638
  • 1,133
  • 20
  • 42
1
vote
1 answer

Couchbase create document fails through sync-gateway public rest API

As per Couchbase Sync-Gateway REST API documentation here below mentioned cURL should create a document in the specified database. Below is the generated cURL from Postman. curl -X PUT -H "Cache-Control: no-cache" -H "Postman-Token:…
Aswin Kumar K P
  • 1,023
  • 2
  • 12
  • 21
1
vote
1 answer

Creating batch documents using pouchdb slows the webapp

I am trying to save documents using pouchdb's bulkSave() function. However, when these documents are saved it starts to sync with master database using sync gateway & in doing so the webapp slows down and when I try to navigate to different tabs no…
1
vote
2 answers

Couchbase Sync Gateway Client and Server Side

I am starting a project and after reading a lot I have come to the conclusion that I should use Sync Gateway REST API calls from mobile AND server (backend) apps, instead of bucket shadowing. However, Sync Gateway is obviously pretty annoying when…
gcc
  • 283
  • 1
  • 3
  • 14
1
vote
1 answer

Couchbase Server to iOS Phone

I'm developing an iOS application. Little bit confused about implementing the login module which the (Username/Password, Register and Forgot Password). New to Couchbase. Used the Couchbase Enterprise Editon…
1
vote
0 answers

pouchdb listeners issue with angularjs

I am using pouchdb with couchbase and angularjs. I have a service which has different pouchdb functions like save(), getAllDocs(), delete() etc. Also, have defined a listener for pouchdb to start listening for changes. I have different controllers…
1
vote
0 answers

Error in shadowing bucket in sync gateway

I am trying to connect sync gateway to couchbase server with following config.json file { "interface":":4984", "adminInterface":":4985", "log":["REST"], "databases":{ "sync_gateway":{ "server":"http://localhost:8091", …
Ram
  • 233
  • 1
  • 17
1
vote
2 answers

Couchbase Lite filtered pull replication

I've got android and web apps. Android app uses Couchbase Lite, web app uses Couchbase. I'm using Couchbase Sync Gateway to enable data replication between those two databases. When user logs in to mobile app for the first time I'd like to pull…
Mohru
  • 725
  • 1
  • 7
  • 17
1
vote
1 answer

Restrict deleting documents via pouchdb

I am using pouchdb with sync gateway to sync documents from Couchbase to the browser. Using pouchdb inspector the user can make changes to these documents. So, my question is, is there a way that we can stop user from modifying the document via…
ajinkya udgirkar
  • 223
  • 1
  • 10
1
vote
1 answer

Couchbase nodejs how to retrieve data from sync gateway bucket to server bucket

So I have this config.json on my couchserver running locally on my machine. { "couchbase": { "server": "127.0.0.1:8091", "bucket": "restful-sample", "username": "restful-sample", "password": "123456" } } And…
jofftiquez
  • 7,548
  • 10
  • 67
  • 121
1
vote
1 answer

Couchbase server and sync gateway not syncing

So I was doing a sample app that will have an offline functionality. I have 2 buckets on my couch server hosted on my local machine, first is restful-sample and the other is sync_gateway. Now I already have written the api code for the backend and…
jofftiquez
  • 7,548
  • 10
  • 67
  • 121
1
vote
1 answer

Handling discarded events in Server Integration using Webhooks in Couchbase

When an event is not added to the event queue, but is instead discarded, What is the way to access discarded event and process it? How can we access the response to a POST operation after an event gets processed?
user2787531
  • 41
  • 1
  • 5
1
vote
1 answer

Couchbase Lite - synchronising reference fields

How does Couchbase Lite treat the Ottoman's ref fields when synchronising with Couchbase Server using Sync Gateway? Trying to get myself familiar with Couchbase and after watching and reading about Couchbase Server & Couchbase Lite combination (This…
1
vote
3 answers

PouchDB+Couchbase+Sync Gateway Cookie authentication

I have following scenario: PouchDB sends user login info into application server: POST /api/login {user:'test', password:'test'} Application server authenticates into Sync Gateway: POST /sync_gateway/_sessions/ Obtained Cookie is being returned to…
Vladimir Nani
  • 2,774
  • 6
  • 31
  • 52
1
vote
0 answers

Shadow sync bucket to main bucket

I have 1 sync gateway bucket(lets say sg_bucket) and anther main bucket(lets say mb_bucket). When I put data in mb_bucket I can see it in sg_bucket because I have done bucket shadowing. But when I retrieve a document on an app from sg_bucket and…
xyz
  • 21
  • 1