Hi,

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-Length',"137"},
          {'Content-Type',"application/json; charset=utf-8"},
          {"Expect","100-continue"},
          {'Host',"127.0.0.1:5984"}]
[debug] [<0.23325.0>] OAuth Params: []
[debug] [<0.23325.0>] Minor error in HTTP request: {doc_validation,
                                                    <<"Bad special document 
member: _attachments">>}
[debug] [<0.23325.0>] Stacktrace: [{io_lib_pretty,cind_tag_tuple,7},
                                   {io_lib_pretty,while_fail,3},
                                   {io_lib_pretty,print,6},
                                   {io_lib_format,build,3},
                                   {io_lib_format,build,3},
                                   {io_lib_format,build,3},
                                   {io_lib_format,build,3},
                                   {io_lib_format,build,3}]
[info] [<0.23325.0>] 127.0.0.1 - - 'PUT' 
/testing_client_implmentation/8a2e5f24e11ee5bf9cfc94d1400081b7 500
[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.

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

cell        (+27) (0) 76 466 4488
website www.4things.co.za
email     [email protected]
skype    kwasi.gyasiagyei
role        Developer.Designer.Software Architect


Reply via email to