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
0
votes
0 answers

How to Subscribe to Sync Gateway using RESTFul API in Java for 'GET /{db}/_changes'?

Connect to Sync Gateway using Stand alone Java program/Spring FrameWork, RESTFul API in Java for GET /{db}/_changes
0
votes
1 answer

Couchbase lite gateway server another database in server

If I choose to work with Couchbase lite (in a Ionic 2 app), can I make a gateway with another database in server (SQL database) using private synchronisation APIs?
HichMAN
  • 37
  • 6
0
votes
0 answers

Xamarin couchbase server and sync gateway not syncing

In Xamarin, I am trying to sync the local database with sync gateway, but it is not syncing. I am trying it with sample https://github.com/couchbaselabs/mini-hacks/tree/master/kitchen-sync Local database is getting updated but it is not syncing with…
0
votes
1 answer

What hooks does couchbase sync gateway provide for sync?

Is it possible to use couchbase syny gateway in the following way: 1) Mobile client queries couchbase for data. 2) No data in couchbase present so this triggers a import of the needed data from for example a mysql database into couchbase. 3) The…
jack
  • 1,861
  • 4
  • 31
  • 52
0
votes
0 answers

By trying replicate my database with sync gateway, the documents aren't syncronized because sync gateway return 401 Login required

I'm using couchbase lite cordova plugin v1.3.1 from https://github.com/couchbaselabs/Couchbase-Lite-PhoneGap-Plugin.git Trying to syncronize my databse with sync, the log sync shows that request {server_ip:4984}/{mysync-gateway}/_local/... responses…
0
votes
1 answer

Efficiently querying documents from Couchbase using sync-gateway

The public port of sync-gateway returns meta-data of documents in the bucket. Using the id field from meta data it would take a one GET request per document to fetch all documents by using the URL http://host:port/bucket-gateway/{document-id} I…
Anuj
  • 994
  • 11
  • 21
0
votes
2 answers

Is Couchbase right choice for mobile apps which don't need to sync always?

I just want a NoSql database for my new android app. Clients will just get a bit of data stored in remote server, they don't need to save it at all, since the data stored in the server is too big for a mobile device... I prefer NoSql to let users…
Ahmed
  • 125
  • 1
  • 4
0
votes
1 answer

Couchbase -> PouchDB deleted document issue

I have this setup: Couchbase -> Sync Gateway -> PouchDB. I had a document in couchbase bucket which was deleted (manual delete from bucket) at a later point of time, Problem is when the sync happens on a new client., I get with other documents that…
vijeth.ag
  • 515
  • 5
  • 8
0
votes
0 answers

deserialize api results from json c#

What should be the class for de-serializing this json? { "_attachments": { "Test.png": { "content_type": "application/octet-stream", "digest": "sha1-wGqfYwROlnGdNmiVIEpiTKHTm5I=", "length": 2461, "revpos": 10, …
Vasu Inukollu
  • 120
  • 1
  • 3
  • 10
0
votes
0 answers

In iOS,How to sync CBL with server through terminal without using CouchDB dmg?

I trying to run sync gateway code into the terminal but i don't understand how it works, even through needless response. see the code below, { "log": ["HTTP+"], "databases": { "grocery-sync": { "server": "http://localhost:8091", …
0
votes
0 answers

Couchbase lite react native tracking network and replication

I'm a newbie in both react native and couchbase lite, and I try this sample application https://github.com/jmn8718/RNCouchbaseExample.git . This sample, connect mobile couchbase lite db to a remote sync gateway. But when mobile go offline, and then…
0
votes
1 answer

PouchDB - Unable to start sync gateway

I am trying to the Sync Ionic app with Couchbase and PouchDB for that I have used couchbase sync gateway. Here is my sync-gateway-config.json { "log":["CRUD+", "REST+", "Changes+", "Attach+"], "databases": { "test-database": { …
0
votes
0 answers

Couchbase Lite iOS Replication stops replicating after restart

I'm still a bit new to Couchbase and iOS, but I'm running into a problem restarting my replications that I'm having trouble with. Here are a few notes about the flow. The backend is using custom authentication. When the user logs in, a new session…
0
votes
2 answers

how do i use couchbase lite session to authorize nodejs app?

I'm using couchbase lite in an android app with sync gateway and couchbase in the server and it works great. Now I want to make a request to node.js from the android app, and i want to use the same session to authorize the user in the node.js…
0
votes
1 answer

CouchBase Lite Filter Replication sequencing/ordering

I have a server-side filter (javascript: function(doc, req)) setup which checks the document type and returns true or false for replication status. I have a scenario where I have to check content of a document say DocumentA in order to decide…
Nagesh
  • 167
  • 1
  • 2
  • 11