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:19:23 GMT

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

> 
> On Mar 18, 2010, at 4:41 PM, J Chris Anderson wrote:
> 
>> If you raise the log level to "debug" (via local.ini or the Futon config page) you
should get a stacktrace which might help.
> 
> Good tip. Thanks.
> 
> Stack trace below.
> 
> So, it looks like I have a problematical document attribute value. 
> 
> "\"910d520333cc1fdd43a837b0f147c2f9\""
> 
> I've written a value with escaped double-quotes there. That's a Bug on my client end.
> 
> But, is that what is upsetting couch? Presumably it should be ok with a that.
> 

It's hard to tell exactly from here. 

Does removing ?revs_info=true from the URL string help?

You could add more debug logging to the couch_httpd:send_json function.

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.

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]

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
> 
> 
> 
> 
> 
> 


Mime
View raw message