You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Christopher Lenz (JIRA)" <ji...@apache.org> on 2008/06/04 18:09:46 UTC
[jira] Resolved: (COUCHDB-17) Internal Server Errors do not format
response correctly
[ https://issues.apache.org/jira/browse/COUCHDB-17?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Christopher Lenz resolved COUCHDB-17.
-------------------------------------
Resolution: Won't Fix
The response body is a JSON object, and the reason just contains the Erlang error as a string. Line breaks etc need to be escaped in JSON strings.
> Internal Server Errors do not format response correctly
> -------------------------------------------------------
>
> Key: COUCHDB-17
> URL: https://issues.apache.org/jira/browse/COUCHDB-17
> Project: CouchDB
> Issue Type: Bug
> Components: HTTP Interface
> Reporter: Noah Slater
> Priority: Minor
>
> The JSON returned from 500 responses seems to be escaped. For example, I get
> HTTP/1.1 500 Internal Server Error
> Server: inets/develop
> Date: Wed, 26 Dec 2007 23:50:01 GMT
> Cache-Control: no-cache
> Pragma: no-cache
> Expires: Wed, 26 Dec 2007 23:50:01 GMT
> Transfer-Encoding: chunked
> Content-Type: text/plain;charset=utf-8
> {"error":"EXIT","reason":"{function_clause,[{cjson,tokenize,[\"A\",{decoder,utf8,null,1,1,any}]},\n
> {cjson,decode1,2},\n {cjson,json_decode,2},\n {mod_couch,'-
> view_parse_query\/1-fun-0-',2},\n {lists,foldl,3},\n
> {mod_couch,send_view,2},\n {mod_couch,do,1},\n
> {httpd_response,traverse_modules,2}]}"}
> -- ry@tinyclouds.org
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.