From user-return-15983-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Mon Apr 25 20:29:05 2011 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 AA09B2D3A for ; Mon, 25 Apr 2011 20:29:05 +0000 (UTC) Received: (qmail 38042 invoked by uid 500); 25 Apr 2011 20:29:04 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 37927 invoked by uid 500); 25 Apr 2011 20:29:04 -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 37919 invoked by uid 99); 25 Apr 2011 20:29:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Apr 2011 20:29:04 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of alex.barbalex@gmail.com designates 209.85.212.52 as permitted sender) Received: from [209.85.212.52] (HELO mail-vw0-f52.google.com) (209.85.212.52) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Apr 2011 20:28:59 +0000 Received: by vws16 with SMTP id 16so3214375vws.11 for ; Mon, 25 Apr 2011 13:28:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=xYafyKVxa63cLL7BsC6QjLwLuZOv/grPNReRM/Y+Xr4=; b=sQhc5NBnweNwYRR8x0dG4BtSppOvpXZCmOHOh0d6lKe9ZcoZDHv5AqT9pIbBEqvgCe KOAnMoY6K003WVb7mb3yv6Y2SU1t59C6IwUgAwDZZ44Aq04au2KvckXyO/czTcmNlg6p JNDP5FfeTvVYf+EO1GVNhfgbBmN9iAj7GSKh4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=LbPzsygot2h28tC3VF7WXG8uXbQLK03WAV0DrB43F4o1h5GD90G4UmK9VsQStWY/vJ BABMSJJZGdZr7FlARUTa+CRqyAHM44/KEOk0+kNsvz5lqo8CwcD0JguOm/QbmtJvd47g kE7TqWkY9Fn0Dnk/5KgMpGggnIvj5Q+9Amgsk= MIME-Version: 1.0 Received: by 10.52.107.195 with SMTP id he3mr6690337vdb.12.1303763319200; Mon, 25 Apr 2011 13:28:39 -0700 (PDT) Sender: alex.barbalex@gmail.com Received: by 10.52.169.103 with HTTP; Mon, 25 Apr 2011 13:28:39 -0700 (PDT) In-Reply-To: References: Date: Mon, 25 Apr 2011 22:28:39 +0200 X-Google-Sender-Auth: uripaWD3EtIl_I4Da3Exv7e_9sE Message-ID: Subject: Re: bulk import error From: Alexander Gabriel To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=bcaec548a0c5831aeb04a1c40d13 --bcaec548a0c5831aeb04a1c40d13 Content-Type: text/plain; charset=UTF-8 Hi Dave That was it: docs instead of rows did it! Thanks a lot! Is there a way to mark the problem solved? This was my first post. Alex 2011/4/25 Dave Cottlehuber > On 25 April 2011 09:17, Alexander Gabriel wrote: > > > Hi > > I've imported several bulk json files so far. > > > > This time I get an error I can't solve. > > I'm using: curl -vX POST http://127.0.0.1:5984/evab/_bulk_docs< > http://barbalex:dLhdMg12@127.0.0.1:5984/evab/_bulk_docs>-H "Content-Type: > application/json" -d @Feld.json > > The document passes the text on http://www.jsonlint.com/. > > > > Any idea what is wrong? > > > > Help is much appreciated. > > > > > #L2 s/rows/docs/ > > your JSON is valid, but does not comply with _bulk_docs spec. > > > http://wiki.apache.org/couchdb/HTTP_Bulk_Document_API#Modify_Multiple_Documents_With_a_Single_Request > > http://techzone.couchbase.com/sites/default/files/uploads/all/documentation/couchbase-api-db.html#couchbase-api-db_db-bulk-docs_post > > A+ > Dave > --bcaec548a0c5831aeb04a1c40d13--