Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 20253 invoked from network); 13 Jul 2008 09:08:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Jul 2008 09:08:56 -0000 Received: (qmail 12590 invoked by uid 500); 13 Jul 2008 09:08:56 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 12553 invoked by uid 500); 13 Jul 2008 09:08:56 -0000 Mailing-List: contact couchdb-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: couchdb-user@incubator.apache.org Delivered-To: mailing list couchdb-user@incubator.apache.org Received: (qmail 12542 invoked by uid 99); 13 Jul 2008 09:08:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jul 2008 02:08:56 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [83.97.50.139] (HELO jan.prima.de) (83.97.50.139) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Jul 2008 09:08:03 +0000 Received: from [192.168.1.38] (e179068165.adsl.alicedsl.de [::ffff:85.179.68.165]) (AUTH: LOGIN jan, SSL: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Sun, 13 Jul 2008 09:02:23 +0000 Message-Id: <9826D1A7-710F-4D6A-88EB-8357D72602C3@apache.org> From: Jan Lehnardt To: couchdb-user@incubator.apache.org In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v928.1) Subject: Re: map_process_error caused by JSON array? Date: Sun, 13 Jul 2008 10:01:25 +0100 References: <1A1698E9-2AFF-4F01-9313-BE2C251EC587@apache.org> X-Mailer: Apple Mail (2.928.1) X-Virus-Checked: Checked by ClamAV on apache.org On Jul 13, 2008, at 2:50 , Jacinto Shy II wrote: > On Sat, Jul 12, 2008 at 5:54 PM, Jan Lehnardt wrote: >> Hello Jacinto, >> >> On Jul 11, 2008, at 23:21 , Jacinto Shy II wrote: >>> >>> I am running the latest version of CouchDB from Subversion (r676076) >>> and I get a strange error when I save a document containing a field >>> that is a JSON array. >> >> The map process is not triggered when you save a document, only >> when a view gets queried. What exactly are you doing? Can you >> provide request and response logs with log= set to debug in your >> couch.ini? > > You are right. I should have said I get the error in views after > saving the document. And again, when I save other documents CouchDB > behaves just fine. The problem only occurs when a list is involved. > > I am working on a media sharing web app. Basically, when a user > uploads a file they can add tags to it. In my Python code I split the > user's input into a list which I save along with other metadata into > CouchDB using couchdb-python. After saving this new document my code > doesn't touch CouchDB again until the user is redirected to a page > which displays available files. > > I set LogLevel to debug (I assume that's what you meant), but it > doesn't show much. The output is attached. What do you requests look like and what is your design document, including the map / reduce functions? > > > The document that is saved by CouchDB appears just fine (formatting > my own): > > {"_id":"5607847acf0772f75939b6d75ab700de", > "_rev":"1254795349", > "created_on":"2008-07-13 10:26:35", > "user_id":"21b3a56d280ee633b3c3d8d5b9a57fbf", > "title":"Waheshni Eih", > "tags":["song","dance"], > "user_name":"ali", > "license_id":"6445c7216d601e543beaf8a8fd5d6a3c", > "channel_id":"9ff014d1e86cb7ecfa8fb01df7a783b9", > "type":"Stream"} > >>> [...] >>> I also see the same error when running the test suite for reduce, >>> multiple_rows, view_collation, view_conflicts, view_errors, and >>> view_sandboxing. >> >> Do the basic tests run for you? If not, it appears that your >> SpiderMonkey >> installation is hosed. See >> http://wiki.apache.org/couchdb/InstallingSpiderMonkey >> for more info. > > The basic tests are successful, and so are all of the other tests, > with the exception of the six listed above. I am using the > SpiderMonkey which is installed by apt-get. I just upgraded to > 1.9~rc2-5, but the problem persists. Which browser are you using to run the tests? Cheers Jan --