Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 24761 invoked from network); 27 Jan 2011 16:26:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Jan 2011 16:26:01 -0000 Received: (qmail 22276 invoked by uid 500); 27 Jan 2011 16:26:00 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 22023 invoked by uid 500); 27 Jan 2011 16:25:57 -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 22013 invoked by uid 99); 27 Jan 2011 16:25:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 16:25:56 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.85.214.180] (HELO mail-iw0-f180.google.com) (209.85.214.180) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Jan 2011 16:25:51 +0000 Received: by iwn37 with SMTP id 37so2214216iwn.11 for ; Thu, 27 Jan 2011 08:25:29 -0800 (PST) MIME-Version: 1.0 Received: by 10.42.167.136 with SMTP id s8mr2450466icy.8.1296145527977; Thu, 27 Jan 2011 08:25:27 -0800 (PST) Received: by 10.42.227.71 with HTTP; Thu, 27 Jan 2011 08:25:27 -0800 (PST) Date: Thu, 27 Jan 2011 14:25:27 -0200 Message-ID: Subject: problems updating a document From: Fabio Batalha Cunha dos Santos To: user@couchdb.apache.org Content-Type: multipart/alternative; boundary=90e6ba6e8d9ec5b644049ad6652f --90e6ba6e8d9ec5b644049ad6652f Content-Type: text/plain; charset=ISO-8859-1 Hello All, I'm trying to update a document but I always receive a {"error":"bad_request","reason":"invalid UTF-8 JSON"}, even with a document that I just pulled. Anybody have any idea what is happening? I know that old vesions of couchdb send this message for other kind of errors. But I'm using the version 1.0.1 GETTING A DOCUMENT. tmp$ curl GET http://teste.webservices.scielo.org/scieloorg/ffffa7f8-8793-4476-b3c8-4eb1eff1c074> register_new.json curl: (6) Couldn't resolve host 'GET' % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4439 100 4439 0 0 4730 0 --:--:-- --:--:-- --:--:-- 52223 EDITING JSON to put {"docs": [...]} tmp$ vi register_new.json POSTING THE DOCUMENT tmp$ curl -d register_new.json -H "Content-Type: application/json" -X POST http://teste.webservices.scielo.org/scieloorg/_bulk_docs {"error":"bad_request","reason":"invalid UTF-8 JSON"} Thanks in advance. *Fabio Batalha C. Santos* Colegiado SciELO www.scielo.org FAPESP - CNPq - BIREME - FapUNIFESP --90e6ba6e8d9ec5b644049ad6652f--