Return-Path: Delivered-To: apmail-incubator-couchdb-user-archive@locus.apache.org Received: (qmail 85569 invoked from network); 11 Sep 2008 18:28:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Sep 2008 18:28:19 -0000 Received: (qmail 3398 invoked by uid 500); 11 Sep 2008 18:28:15 -0000 Delivered-To: apmail-incubator-couchdb-user-archive@incubator.apache.org Received: (qmail 3370 invoked by uid 500); 11 Sep 2008 18:28:15 -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 3359 invoked by uid 99); 11 Sep 2008 18:28:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2008 11:28:15 -0700 X-ASF-Spam-Status: No, hits=4.4 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS,URIBL_RHS_DOB,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of roberto.rabe@gmail.com designates 209.85.217.19 as permitted sender) Received: from [209.85.217.19] (HELO mail-gx0-f19.google.com) (209.85.217.19) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Sep 2008 18:27:16 +0000 Received: by gxk12 with SMTP id 12so10240783gxk.12 for ; Thu, 11 Sep 2008 11:26:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=h8W/PyAM9rgZBl+/MGz8jQujT40dG6bfjld96KQ9gkI=; b=xYL8fDTlf6+47Xke6AyA40wCpH82e7wqd5iWqCHk8XoYXEfFtMFmzn3d6Oq3scPdas PqqKU4cqw4CKxaJxSy3HpiK0pFcJ4er0jaLg0U5ixQS9AoZr/wZ/bRLS2aEo+tqwHENY m1MqJI40csx4pn1NT1a827CMGEJIrlMBB/9Do= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=KwAp+k2iiy/uXrGvSZZaUAei5eoGRKEvprk4xABkXnrpQzLcI1iy/PLllfVuX4e1db 0Blx8qvC+MGNYty5wVos2KNjWH/JsqwotqbzV9RkD90Ms3j5UPFi9wALmgqOfTqh1LIY O/YBzjXD5ibk+/nnJMUC/YAuaZNgxhTI0JjGY= Received: by 10.142.47.6 with SMTP id u6mr1061518wfu.300.1221157607073; Thu, 11 Sep 2008 11:26:47 -0700 (PDT) Received: by 10.142.43.8 with HTTP; Thu, 11 Sep 2008 11:26:47 -0700 (PDT) Message-ID: <958387040809111126p12c05d65j19c7ecee2ef2cffe@mail.gmail.com> Date: Thu, 11 Sep 2008 18:26:47 +0000 From: "Roberto R" To: couchdb-user@incubator.apache.org Subject: Re: Getting CouchRest to work--404 on /_uuids In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_30710_12691650.1221157607058" References: <4cdd0d160809111047p47b7d3afi597c954a3986d388@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_30710_12691650.1221157607058 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline CouchRest.database! is supposed to create the db if it doesn't exist but, I think the codebase is undergoing some changes. Roberto On Thu, Sep 11, 2008 at 6:21 PM, Sho Fukamachi wrote: > Wil, > > did you create the couchrest-test DB first? > > If the DB is missing the error looks exactly like you pasted. > > Sho > > > > > On 12/09/2008, at 3:47 AM, Wil Chung wrote: > > Hi, >> >> I just started using CouchDB, and I decided to give CouchRest a shot. >> Since >> I saw JChris post here before, I figured this would be a good place to >> ask--or if anyone else has used CouchRest before. >> >> I'm having trouble just getting CouchRest to talk to the CouchDB. I am >> using couchdb 0.8.1 and couchrest 0.9.2 >> >> irb(main):009:0> @db = CouchRest.database!(" >> http://localhost:5984/couchrest-test") >> => #> @server=#> >> irb(main):010:0> response = @db.save({:key => 'value', 'another key' => >> 'another value'}) >> RestClient::ResourceNotFound: RestClient::ResourceNotFound >> from >> /usr/lib/ruby/gems/1.8/gems/rest-client-0.7/lib/rest_client.rb:186:in >> `process_result' >> from >> /usr/lib/ruby/gems/1.8/gems/rest-client-0.7/lib/rest_client.rb:158:in >> `transmit' >> from /usr/lib/ruby/1.8/net/http.rb:543:in `start' >> from >> /usr/lib/ruby/gems/1.8/gems/rest-client-0.7/lib/rest_client.rb:155:in >> `transmit' >> from >> /usr/lib/ruby/gems/1.8/gems/rest-client-0.7/lib/rest_client.rb:102:in >> `execute_inner' >> from >> /usr/lib/ruby/gems/1.8/gems/rest-client-0.7/lib/rest_client.rb:94:in >> `execute' >> from >> /usr/lib/ruby/gems/1.8/gems/rest-client-0.7/lib/rest_client.rb:81:in >> `execute' >> from >> /usr/lib/ruby/gems/1.8/gems/rest-client-0.7/lib/rest_client.rb:45:in >> `post' >> from >> /usr/lib/ruby/gems/1.8/gems/jchris-couchrest-0.9.2/lib/couch_rest.rb:78:in >> `post' >> from >> /usr/lib/ruby/gems/1.8/gems/jchris-couchrest-0.9.2/lib/couch_rest.rb:61:in >> `next_uuid' >> from >> /usr/lib/ruby/gems/1.8/gems/jchris-couchrest-0.9.2/lib/database.rb:68:in >> `save' >> from (irb):10 >> from :0 >> >> I found this in the log: >> >> [info] [<0.65.0>] HTTP Error (code 404): {not_found,unknown_private_path} >> [info] [<0.65.0>] 127.0.0.1 - - "POST /_uuids" 404 >> >> I'm not sure what I'm doing wrong. Is there something that I'm missing? >> Thanks. >> >> Wil >> -- >> http://webjazz.blogspot.com >> > > ------=_Part_30710_12691650.1221157607058--