incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kristian Rink <>
Subject HTTP 400 in POST without _id on 1.0.2?
Date Wed, 12 Oct 2011 11:47:05 GMT

not sure this is a real problem or just a misconfiguration /
misunderstanding of sorts: We do have an application built using Java
and, right now, the ektorp CouchDB client. In one part obviously
CouchDB documents are to be created, and in all situations the
documents POSTed to the CouchDB contain no _id, expecting to have one
assigned automatically.

We ran this on three machines: 

Linux (Ubuntu 11.10 pre) workstation, CouchDB 1.0.1: Works. 

Testbed server (Ubuntu 11.04), CouchDB 1.0.1: Works. 

Another development workstation, Windows 7, CouchDB 1.0.2: Doesn't
work. This is the error found in couch.log after raising log level to

---- snip ----
[Wed, 12 Oct 2011 11:43:03 GMT] [debug] [<0.106.0>] Document id is not
a string: null

[Wed, 12 Oct 2011 11:43:03 GMT] [debug] [<0.106.0>] Minor error in HTTP 
request: {bad_request,<<"Document id must be a string">>}

[Wed, 12 Oct 2011 11:43:03 GMT] [debug] [<0.106.0>] Stacktrace: 
---- snip ----

The (client) code is the same in all these situations, only difference
seems to be the OS platform and the version of CouchDB. Does that make
sense to anyone out there?

TIA and all the best,

Kristian Rink

View raw message