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

How to create user in couchbase from Xamarin application?

I am creating a xamarin app that uses couchbase lite , sync gateway and couchbase server , I followed this tutorial : https://docs.couchbase.com/userprofile-couchbase-mobile/sync/userprofile/xamarin/userprofile_sync.html (but I used server :…
1
vote
1 answer

Status 403 : SG Wrong User while using Couchbase

I'm sending a POST request to add Document to Couchbase Server via Sync Gateway Server. I'm using serviceconfig.json, similar to link. server key in "databases" contains a link to my Couchbase Server (http://localhost:8091). While firing the POST…
miPlodder
  • 795
  • 8
  • 18
1
vote
1 answer

How can Couchbase Mobile Client Lite pass through Proxy

I am using .net core Couchbase Mobile Lite client 2.5 on Windows 10. My machine is part of my corporate network while the Sync Gateway runs in our companies openshift platform in another network. From my machine I can reach the Sync Gateway public…
Siraf
  • 1,133
  • 9
  • 24
1
vote
0 answers

Couchbase server Restore

I am trying to restore a couchbase base from the backup file. I used the following command: ./cbrestore /backup/2019-02-06T121650Z-full http://127.0.0.1:8091 -u Administrator -p password –bucket-source=my_bucket…
Mohd Zafar
  • 19
  • 3
1
vote
0 answers

Update Sync Gateway Session Timeout

On my application I need to extend the user session, but Sync Gateway REST Api don't have a put method to extend the expiration time. And I'm creating a function to update the expiration meta data of the session document direct on the…
1
vote
0 answers

How to fix couchbase "Get error response to rev hotel_4396 -> wrong user"

I'm trying to sync couchbase data I'm using couchbase-server-enterprise:6.0.0 couchbase-sync-gateway-enterprise:2.1.2 I followed the steps in this sample When I run the application, the following error appears 2019-01-24 22:42:43.480…
1
vote
0 answers

Create user automatically with Sync Gateway and OIDC Implicit Flow

I’m setting up Couchbase Lite on android with Sync Gateway 2.1 and Couchbase Server 6.0. I've implemented authentication with Google Sign-in by using the OpenID Connect Implicit flow and I'm able to get the session cookie for authentication. Now I…
Chris B.
  • 101
  • 2
  • 2
  • 6
1
vote
1 answer

Where I can get completely sync-gateway configuration example for OAuth2?

I'm setting up sync-gateway with Auth0. My config is: { "interface":":4984", "log": ["*"], "databases": { "graps": { "username": "sync_gateway", "password": "sync_gateway", …
rastafarra
  • 131
  • 4
1
vote
2 answers

connection to couchbase with flutter

I am new to Flutter and Couchbase, trying to connect to a sample bucket travel-sample using fluttercouch plugin, but getting error "unable to set target endpoint to ws//10.0.2.2:8091/travel-sample" for setting endpoint as…
1
vote
0 answers

How to implement sync feature using couchbase-lite cordova plugin in ionic 2?

I'm trying to implement sync feture in an ionic 2 project using CouchBase sync gateway and CouchBase Lite Cordova Plugin The only method they provide is getUrl() method. Using that we can do CRUD operations to local CouchBase Lite. But I could't…
1
vote
1 answer

Block to saving _sync documents in to couchbase server

I'm using couchbase server & couchbase sync gateway as my backend databases. but the problem is once I configured the full setup _sync documents were saved to the central server. I only want to keep my master documents & transaction documents in the…
Kasunt
  • 45
  • 1
  • 10
1
vote
2 answers

DateToArray is not defined in couchbase sync gateway

I write the code for couchbase view. follow this https://blog.couchbase.com/understanding-grouplevel-view-queries-compound-keys/ const mapDate = `function(doc, meta) { emit(dateToArray(doc.updatedAt), { _id: meta.id, _rev: meta.rev, …
Donut.s
  • 15
  • 4
1
vote
1 answer

Sync PouchDb with CouchBase through Sync Gateway by channel - error 404 for local document

I am trying to sync pouchDB with CouchBase through Sync Gateway by channel. In pouch I have : var da = new PouchDB('example_DE'); da.sync(remoteDB, { create_target: true, live: true, retry: true, filter:…
1
vote
1 answer

Couchbase Sync-Gateway View Index Failure

I'm using Couchbase to power the back end of my mobile app and am experiencing a strange error when using views. I have a view set up to fetch a specific document type and am querying that view via the Sync-Gateway admin API. Normally it works well…
Rob Sanders
  • 5,197
  • 3
  • 31
  • 58
1
vote
0 answers

Sync Functionality Missing in PouchDB LocalStorage Adapter?

The pouchdb documentation says that the pouchdb-adapter-localstorage plugin is experimental. But, it also says that it passes all the CI tests. So, I am not sure whether this is a problem with my system or a problem with the plugin, but the problem…
R J
  • 4,473
  • 2
  • 22
  • 29