couch-client
couch-client copied to clipboard
A minimal CouchDB client that easy and powerful
Before this change fetching a view with keys: [...] would append the keys array in the query string and as POST data. This led to invalid request errors.
The view function didn't handle errors properly. Now it actually looks at the content returned before calling the callback. Also, I adopted a queue for views. :-o
Every once in awhile when using save() my program crashes with this error: ``` node.js:183 throw e; // process.nextTick error, or 'error' event on first tick ^ TypeError: Cannot read...
When I try to perform a HEAD request I get this: ``` undefined:0 ^ SyntaxError: Unexpected end of input at Object.parse (native) at IncomingMessage. (/usr/local/lib/node/.npm/couch-client/0.0.4/package/lib/cou ch-client.js:80:45) at IncomingMessage.emit (events.js:81:20) at...
I don't understand why you guys chose to use POST in your get() method to pull documents. Could someone explain this? It doesn't make sense to me. Thanks.
Using the same database works find on local, but when replicated to Cloudant the connection crashes Node.js with an exception: undefined:1 SyntaxError: Unexpected token ILLEGAL at Object.parse (native) at IncomingMessage....
When calling the "get" message with (id, callback), and attempting to connect on a closed port or to a server which is down (and refusing connections), looks like the error...
I'm trying to setup an app on Heroku. Heroku provides the URL to the your couch instance through an environment variable. So connecting to the database would be achieved like...
When using the arbitrary HTTP request function, it would be helpful to have access to the response code. Otherwise, this prevents the simple detection of "Conflict" or "Not Found" responses,...
Hi, I ran into this problem, that might be relevant for other users as well: 1) Create document with couch-client, receiving _rev 1-X 2) Change document NOT with couch-client, i.e....