incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From J Chris Anderson <jch...@gmail.com>
Subject Re: get document => unknown_error undef
Date Fri, 19 Mar 2010 00:48:17 GMT

On Mar 18, 2010, at 5:25 PM, John Merrells wrote:

> 
> On Mar 18, 2010, at 5:19 PM, J Chris Anderson wrote:
> 
>> 
>> It's hard to tell exactly from here. 
>> 
>> Does removing ?revs_info=true from the URL string help?
> 
> I don't actually send that... so that kinda gets added along the way actually.
> 
>> You could add more debug logging to the couch_httpd:send_json function.
> 
> yeah... which would mean me paging erlang back into my brain which could take a couple
of days
> 
> i'm suspicious about the utf-8 bit.... maybe I have a bad icu install.
> 
>> 
>> Is there any chance you can share your database file? If you want to keep it private,
you can email it to me directly, or if it is large, put it at a URL that I can download from.
> 
> sure..... let me put a copy somewhere and email you the link
> 

Thanks!

I got the file, and http://localhost:5984/pages/http%3A%2F%2Ffoodbazaar.info%2Frecipes?revs_info=true
works for me on my machine. (current CouchDB trunk and the 0.10.x branch)

It shouldn't be a bad ICU as that is not invoked except by the view collation engine.

I'm not sure what to recommend except upgrading your version of Erlang.

Chris


>> 
>> Also - what version of Erlang are you running? I have:
>> 
>> $ erl
>> Erlang R13B03 (erts-5.7.4) [source] [64-bit] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:false]
> 
> Erlang R13B01 (erts-5.7.2) [source] [smp:4:4] [rq:4] [async-threads:0] [kernel-poll:false]
> 
> On ubuntu 9.10
> 
> I haven't seen the same problem on mac os-x yet...
> 
> John
> 
>> 
>> Chris
>> 
>> 
>>> John
>>> 
>>> 
>>> [Fri, 19 Mar 2010 00:03:39 GMT] [debug] [<0.148.0>] 'GET' /pages/http%3A%2F%2Ffoodbazaar.info%2Frecipes?revs_info=true
{1,1}
>>> Headers: [{'Accept',"application/json, text/javascript, */*"},
>>>        {'Accept-Charset',"ISO-8859-1,utf-8;q=0.7,*;q=0.3"},
>>>        {'Accept-Encoding',"gzip,deflate,sdch"},
>>>        {'Accept-Language',"en-US,en;q=0.8"},
>>>        {'Authorization',"Basic YWRtaW46Y2FtbWF4em9l"},
>>>        {'Connection',"keep-alive"},
>>>        {'Cookie',"AuthSession="},
>>>        {'Host',"127.0.0.1:6095"},
>>>        {'Referer',"http://127.0.0.1:6095/_utils/document.html?pages/http%3A%2F%2Ffoodbazaar.info%2Frecipes"},
>>>        {'User-Agent',"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_2; en-US)
AppleWebKit/532.9 (KHTML, like Gecko) Chrome/5.0.307.11 Safari/532.9"},
>>>        {"X-Requested-With","XMLHttpRequest"}]
>>> 
>>> [Fri, 19 Mar 2010 00:03:39 GMT] [debug] [<0.148.0>] OAuth Params: [{"revs_info","true"}]
>>> 
>>> [Fri, 19 Mar 2010 00:03:39 GMT] [error] [<0.148.0>] Uncaught error in HTTP
request: {error,undef}
>>> 
>>> [Fri, 19 Mar 2010 00:03:39 GMT] [info] [<0.148.0>] Stacktrace: [{xmerl_ucs,from_utf8,
>>>                      [<<"\"910d520333cc1fdd43a837b0f147c2f9\"">>]},
>>>           {mochijson2,json_encode_string,2},
>>>           {mochijson2,'-json_encode_proplist/2-fun-0-',3},
>>>           {lists,foldl,3},
>>>           {mochijson2,json_encode_proplist,2},
>>>           {couch_httpd,send_json,4},
>>>           {couch_httpd_db,do_db_req,2},
>>>           {couch_httpd,handle_request,5}]
>>> 
>>> [Fri, 19 Mar 2010 00:03:39 GMT] [debug] [<0.148.0>] httpd 500 error response:
>>> {"error":"unknown_error","reason":"undef"}
>>> 
>>> -- 
>>> John Merrells
>>> http://johnmerrells.com
>>> +1.415.244.5808
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>> 
> 
> -- 
> John Merrells
> http://johnmerrells.com
> +1.415.244.5808
> 
> 
> 
> 
> 
> 


Mime
View raw message