incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kwasi Gyasi - Agyei <>
Subject CouchDB Inline Attachment version 1.1.0
Date Wed, 21 Sep 2011 17:52:34 GMT

I recently wrote a custom couched PHP driver using CURL, I have been able to to everything
except when I try to save inline attachments I'm getting the following log and response:

Headers: [{'Accept',"*/*"},
          {'Authorization',"Basic YWRtaW46YWRtaW4="},
          {'Content-Type',"application/json; charset=utf-8"},
[debug] [<0.23325.0>] OAuth Params: []
[debug] [<0.23325.0>] Minor error in HTTP request: {doc_validation,
                                                    <<"Bad special document member:
[debug] [<0.23325.0>] Stacktrace: [{io_lib_pretty,cind_tag_tuple,7},
[info] [<0.23325.0>] - - 'PUT' /testing_client_implmentation/8a2e5f24e11ee5bf9cfc94d1400081b7
[debug] [<0.23325.0>] httpd 500 error response:
 {"error":"doc_validation","reason":"Bad special document member: _attachments"}

The main problem is the last line :  {"error":"doc_validation","reason":"Bad special document
member: _attachments"}

not sure why couched is reject it's own field.

Please advice.

Multimedia and Communication | Property | Entertainment
Kwasi Owusu Gyasi - Agyei

cell        (+27) (0) 76 466 4488
skype    kwasi.gyasiagyei
role        Developer.Designer.Software Architect

View raw message