I've built a custom query server for a custom query language.
I've tried to create a design document with views map/reduce.
In those map/reduce functions (most importantly in the map function) I want to be able to reference library code.
I can see…
I am setting up CouchDB using docker-compose with the following docker-compose.yml (the following is a minimal example):
version: "3.6"
services:
couchdb:
container_name: couchdb
image: apache/couchdb:2.2.0
restart: always
…
While playing around with the _changes API from CouchDB (2.1.1), I noticed that the seq number of the resulting records is different when I add the ?include_docs=true. Is this something expected? If yes, can somebody help me understand the logic…
I am learning to work with CouchDB and I am usually making Ajax calls in order to communicate with my database. I started getting '
Cross-Origin Request blocked
' and as the reason
Access-Control-Allow-Origin
, so I decided to work with CouchDB…
I've installed couchDb 2.0 via snap onto OpenSuse Tumbleweed.
sudo snap install couchdb
Then I ran
sudo systemctl enable --now snapd.socket
Everything works fine until I logout. In my new session I cannot get couchDb running.
Would anyone know…
so I installed couchdb on my VPS using snap, it only listened on 127.0.0.1 and this was not ok for me as It's not practical to ssh on a production environment, I would like it to listen on my external IP so I set in the /var/snap/couchdb/1/local.ini…
Coming from a more traditional web frameworks like Django and a little bit Rails, I am a bit confused about what is the best to register new user in your couchdb backed web app. The registration process should include sending an e-mail with an…
can anyone help me to enable the use of Eval() and Function() in couchdb design document.
I am trying to use eval() and Function methods in _list function but it always shows the below error when I call the list
{
"code": 500,
"error":…
I have a CouchDB cluster with 9 shards running on 3 nodes (and n=3). I brought down the three instances the nodes were running on and created 3 new instances with new internal IP addresses. After this I was getting "Database failed to load" errors…
==== PROBLEM SOLVED ====
The problem described below was caused by the fact that the property 'withCredentials' was not set properly on the underlying xhr request object. This we cannot see from the trace of requests and responses given below.
For…
In the same script, I can succesfully create a server admin on the /_config/admins/, then log in as that admin on the _session endpoint.
The response is:
{"ok":true,"name":"cor","roles":["_admin"]}
However, I then cannot create a database:…
Before installing the CouchApp utility, the Sofa blog app and the sample DB myblogdb together with CouchDB 2.1.1 my CouchDB was working find and I never seeing any Internal Server Error.
In the last 2 hours a trojan attached itself as a process to…
So I'm trying to create a design doc in CouchDB and there's a slight problem. This is for a robotics team scouting system. The design doc is supposed to check if a user has the role "marea". If they do, then they are allowed to input a document into…
When monitoring _changes/ resource with the following parameters:
feed=continuous&limit=5
I receive top 5 rows on the first query, but later no notifications are received.
When there is no limit parameter specified, updates are coming, however I…
I have some documents I would like to replicate to per user databases but only with a subset of fields on the main document. The "selector" option works great to easily select the docs I need but it does not appear to support the "fields" option. I…