couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Tisdall <>
Subject couchdb returning empty response
Date Wed, 15 Aug 2012 02:38:08 GMT
I'm still having problems with couchdb, but I'm trying out different
things to see if I can narrow down what the problem is...

I stopped using fsockopen() in PHP and am using curl now to hopefully
be able to see more debugging info.

I get an empty response when sending a POST to _bulk_docs.  From the
couch logs it seems like the server restarts in the middle of
processing the request.  Here's what I have in my logs:  (I have no
idea what the _replicator portion is about there, I'm currently not
using it)

[Wed, 15 Aug 2012 02:27:30 GMT] [debug] [<0.1255.0>] 'POST'
/app_stats_test/_bulk_docs {1,0} from ""
Headers: [{'Accept',"*/*"},
[Wed, 15 Aug 2012 02:27:30 GMT] [debug] [<0.1255.0>] OAuth Params: []
[Wed, 15 Aug 2012 02:27:45 GMT] [debug] [<0.115.0>] Include Doc:
<<"_design/_replicator">> {1,
[Wed, 15 Aug 2012 02:27:45 GMT] [info] [<0.32.0>] Apache CouchDB has
started on

In my code logs I have the following by running curl in verbose mode:

* About to connect() to localhost port 5984 (#0)
*   Trying * connected
* Connected to localhost ( port 5984 (#0)
> POST /app_stats_test/_bulk_docs HTTP/1.0
Host: localhost:5984
Accept: */*
Content-Type: application/json
Content-Length: 2802300

* Empty reply from server
* Connection #0 to host localhost left intact
curl error: 52 : Empty reply from server

I also tried using HTTP/1.1 and I get an empty response after
receiving only a "100 Continue", but the end result appears the same.


View raw message