couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Merrells <j...@merrells.com>
Subject Re: get document => unknown_error undef
Date Thu, 18 Mar 2010 21:07:02 GMT

On Mar 18, 2010, at 1:57 PM, Brian Candler wrote:

> On Thu, Mar 18, 2010 at 01:49:51PM -0700, John Merrells wrote:
>> This is the url to the document.
>> 
>> http://127.0.0.1:6095/pages/http://foodbazaar.info/recipes
> 
> Erm, which part is the document _id?
> 
> If it's "http://foodbazaar.info/recipes" then you'll need to URL-encode
> those slashes into %2F's, and possibly the colon into %3A

Yep, the id is a url.

I cut and pasted from chrome, which displays the url unescaped.

> http://127.0.0.1:6095/pages/http%3A%2F%2Ffoodbazaar.info%2Frecipes

This causes the same error, in chrome and safari, and curl...

[14:00][john@johnmerrellsmacbookpro:~/jj/reflector(master)]$ curl http://127.0.0.1:6095/pages/http%3A%2F%2Ffoodbazaar.info%2Frecipes

{"error":"unknown_error","reason":"undef"}

Other documents with the same form of id, a url, work just fine.

[14:05][john@johnmerrellsmacbookpro:~/jj/reflector(master)]$ curl http://127.0.0.1:6095/pages/http%3A%2F%2Ffoodbazaar.info%2Fschools
{"_id":"http://foodbazaar.info/schools","_rev":"1-afc235590fa82da55e86124c1dffa989","etag":null,"resolved_url":null,"last_modified":null,"http_status":601,"last_read":"2010/03/18
20:24:48 +0000"}

Curious, eh.

john

> 
> Otherwise, it looks like the document ID is "http:", and you have an
> attachment called "foodbazaar.info/recipes", or something strange like that.
> 

-- 
John Merrells
http://johnmerrells.com
+1.415.244.5808







Mime
View raw message