Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90378941F for ; Wed, 21 Sep 2011 17:53:11 +0000 (UTC) Received: (qmail 4628 invoked by uid 500); 21 Sep 2011 17:53:10 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 4599 invoked by uid 500); 21 Sep 2011 17:53:09 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 4591 invoked by uid 99); 21 Sep 2011 17:53:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 17:53:09 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [74.125.82.180] (HELO mail-wy0-f180.google.com) (74.125.82.180) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Sep 2011 17:53:03 +0000 Received: by wyh11 with SMTP id 11so277948wyh.11 for ; Wed, 21 Sep 2011 10:52:42 -0700 (PDT) Received: by 10.227.201.137 with SMTP id fa9mr1075618wbb.54.1316627562050; Wed, 21 Sep 2011 10:52:42 -0700 (PDT) Received: from [192.168.0.3] (41-132-27-28.dsl.mweb.co.za. [41.132.27.28]) by mx.google.com with ESMTPS id fa3sm7796896wbb.3.2011.09.21.10.52.37 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Sep 2011 10:52:41 -0700 (PDT) From: Kwasi Gyasi - Agyei Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: CouchDB Inline Attachment version 1.1.0 Date: Wed, 21 Sep 2011 19:52:34 +0200 Message-Id: To: user@couchdb.apache.org Mime-Version: 1.0 (Apple Message framework v1244.3) X-Mailer: Apple Mail (2.1244.3) 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=3D"}, {'Content-Length',"137"}, {'Content-Type',"application/json; charset=3Dutf-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 kwasi.gyasiagyei@4things.co.za skype kwasi.gyasiagyei role Developer.Designer.Software Architect