couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher Lenz (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (COUCHDB-17) Internal Server Errors do not format response correctly
Date Wed, 04 Jun 2008 16:09:46 GMT

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


Mime
View raw message