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

Protect Admin REST API of SyncGateway

I have an application will request Sync gateway through Admin REST API. So it’s possible to configure the sync gateway to use the client credentials grant flow to request Admin API? My application and sync gateway are in different network. The…
youssef Liouene
  • 873
  • 6
  • 15
  • 28
1
vote
0 answers

Couchbase to PouchDB not syncing existing docs

Couchbase 6.6 with Sync-gateway 2.8 My Pouchdb app can save a doc and it will replicate bidirectional with my Couchbase. The existing docs in Couchbase are not syncing to PouchDB nor can I use alldocs function to receive existing docs from…
1
vote
1 answer

Can we execute N1QL query in exetrnal UDFs in couchbase?

How we can execute N1QL query in External UDF ? I am using couchbase 7.0 beta version I am trying to figure out Can we execute N1QL query in exetrnal UDFs in couchbase? ...... If we can then how? External UDF support javascript only.
Avinash Kumar
  • 85
  • 1
  • 6
1
vote
2 answers

how to create udf in couchbase

I am trying to create a function ...... curl -v -X POST http://localhost:8091/functions/v1/libraries/math/function/dateEpoc -H 'content-type: application/json' -d '{"name": "dateEpoc", "code": "function dateEpoc(epoc) { let date = new Date(); return…
Avinash Kumar
  • 85
  • 1
  • 6
1
vote
1 answer

Couchbase Sync Gateway business logic

I'm currently working on an architecture with an offline mobile client and a database server. I was thinking about using the sync-gateway component from couchbase, hence, couchbase as a server db and pouchdb as a client db. The business logic is…
1
vote
1 answer

does couchbase syncgateway support login with access_token instead of id_token?

I have a pair of questions: Does syncgateway support login with access token instead of idtoken Does syncgateway support defined roles in a token?
zohreh
  • 1,055
  • 1
  • 9
  • 26
1
vote
1 answer

openid implicit flow authorized user cant pull from syncgateway couchbase

Hi everybody I use openid implisit flow in this document https://docs.couchbase.com/sync-gateway/current/authentication.html#implicit-flow for authorization of my user and syncgateway get me this response { "authentication_handlers": [ …
zohreh
  • 1,055
  • 1
  • 9
  • 26
1
vote
1 answer

how to make sure implicit OpenId implicit flow works In Couchbase Sync Gateway

hi I am using identityserver4 in backend for getting jwt token inside of my app I want send my token to syncgateway and take a sessionid I read this article https://docs.couchbase.com/sync-gateway/current/authentication.html#implicit-flow and i am…
zohreh
  • 1,055
  • 1
  • 9
  • 26
1
vote
1 answer

Load Testing couchbase server - Unable to capture calls triggered from couchbase lite to sync_gateway

Our mobile app uses couchbase lite (version 2.7) and it replicates the data to couchbase server through sync_gateway. Now we want to capture the calls being triggered from couchbaseLite to the sync_gateway. we need to capture these calls because we…
1
vote
1 answer

Couchbase Sync Gateway cannot create indexes

I receive an error when I try to start my sync gateway: [INF] Successfully opened bucket sync [INF] Set query timeouts for bucket sync to cluster:1m15s, bucket:1m15s [INF] Initializing indexes with numReplicas: 1… [INF] Verifying index availability…
Teodor Dimitrov
  • 1,003
  • 2
  • 12
  • 19
1
vote
0 answers

Error opening bucket #bucket: failed to connect to any of the specified hosts(Sync gateway auth to Couchbase using x.509 certificate.)

This is the sync-gateway-config.json file that I am using to authenticate: **sync-gateway-config.json** file { “interface”:":4984", “logging”: { “log_file_path”: “C:/Program Files/Couchbase/Sync Gateway/var/lib/couchbase/logs/sg_logs”, “console”:…
1
vote
1 answer

Couchbaselite change Changes returns all objects even though only one document was changed

I am working on a couchbase lite driven app and trying to do live query based on this help from couchbase mobile lite. While it works, I am confused on the number of documents that reported as changed. This is only in my laptop so I uploaded json…
Nie Selam
  • 1,343
  • 2
  • 24
  • 56
1
vote
1 answer

Getting error "WebSocket connection closed by peer" when I try Replicator with Couchbase lite 2.7 Android

This class provide the couchbase lite database and the replicator in mode PUSH_AND_PULL to send and receive data from sync_gateway class CouchBaseLiteManager(private val context: Context) { private val NAME_DB = "db" private val REMOTE_URI =…
Malcom
  • 283
  • 3
  • 11
1
vote
0 answers

Couchbase Webhook url not triggered when update document

I am new in couchbase, I am using Couchbase server and sync gateway. Trying to write a webhook for document update in couchbase server. When I am changing document manually from server admin section no webhook is not calling. Is webhook work for…
1
vote
1 answer

Is it mandatory to use Couchbase at both client and server end for seamless sync operations?

I want to know how to sync Couchbase with other Databases seamlessly? Can we use different databases with Couchbase in the same project?