Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 20080 invoked from network); 11 Feb 2009 11:47:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Feb 2009 11:47:36 -0000 Received: (qmail 77364 invoked by uid 500); 11 Feb 2009 11:47:33 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 77338 invoked by uid 500); 11 Feb 2009 11:47:32 -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 77327 invoked by uid 99); 11 Feb 2009 11:47:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Feb 2009 03:47:32 -0800 X-ASF-Spam-Status: No, hits=2.7 required=10.0 tests=SPF_NEUTRAL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: neutral (nike.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; Wed, 11 Feb 2009 11:47:23 +0000 Received: from dahlia.lan (f053000042.adsl.alicedsl.de [::ffff:78.53.0.42]) (AUTH: LOGIN jan, TLS: TLSv1/SSLv3,128bits,AES128-SHA) by jan.prima.de with esmtp; Wed, 11 Feb 2009 11:47:01 +0000 Message-Id: From: Jan Lehnardt To: user@couchdb.apache.org In-Reply-To: <545E6E13-5C80-4A4B-8107-EB667DC698B7@cisco.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Subject: Re: badarg in browser? Date: Wed, 11 Feb 2009 12:46:30 +0100 References: <545E6E13-5C80-4A4B-8107-EB667DC698B7@cisco.com> X-Mailer: Apple Mail (2.930.3) X-Virus-Checked: Checked by ClamAV on apache.org Hi, On 11 Feb 2009, at 00:22, Wout Mertens wrote: > I'm trying to run the couchdb svn head and I'm not able to create > documents or run the test suite using Futon. I tried both Safari and > Firefox. Troubleshooting further I tried curl: > > $ curl -X PUT -d '{"keys": ["param1", "param2", "paramN"]}' http://localhost:5984/test/foo > {"error":"error","reason":"badarg"} What Paul said or use POST without `_id`. You also need `-H "Content-Type: application/json"` at least. > This error is the same as what Safari and Firefox give me. CouchDB > itself just says: > [error] [<0.155.0>] Uncaught error in HTTP request: {error,badarg} > [info] [<0.155.0>] 127.0.0.1 - - 'PUT' /test/foo 500 Set the log level to `debug` in your local ini. > I'm running Erlang 5.6.0 Try 5.6.5. And fresh checkouts of CouchDB trunk as well. Cheers Jan --