You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Sam Bisbee (Closed) (JIRA)" <ji...@apache.org> on 2012/02/22 05:40:48 UTC

[jira] [Closed] (COUCHDB-266) PUTting json docs > 1MB causes Uncaught error in HTTP request: {exit,{body_too_large,content_length}}

     [ https://issues.apache.org/jira/browse/COUCHDB-266?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sam Bisbee closed COUCHDB-266.
------------------------------


Resolved for a while. Closing.
                
> PUTting json docs > 1MB causes Uncaught error in HTTP request: {exit,{body_too_large,content_length}} 
> ------------------------------------------------------------------------------------------------------
>
>                 Key: COUCHDB-266
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-266
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 0.9
>         Environment:  Apache CouchDB 0.9.0a747258
>            Reporter: Jeff Hinrichs
>            Assignee: Christopher Lenz
>             Fix For: 0.9
>
>
> error displays itself when trying to PUT  a json document that is > 1MB.  First noticed in the python interface, confirmed with curl
> [Tue, 24 Feb 2009 13:30:00 GMT] [error] [<0.1113.0>] Uncaught error in HTTP request: {exit,{body_too_large,content_length}}
> 2 	
> 3 	[Tue, 24 Feb 2009 13:30:00 GMT] [debug] [<0.1113.0>] Stacktrace: [{mochiweb_request,stream_body,5},
> 4 	{mochiweb_request,recv_body,2},
> 5 	{couch_httpd,json_body,1},
> 6 	{couch_httpd_db,db_doc_req,3},
> 7 	{couch_httpd_db,do_db_req,2},
> 8 	{couch_httpd,handle_request,3},
> 9 	{mochiweb_http,headers,4},
> 10 	{proc_lib,init_p,5}] 
> modifying src/mochiweb/mochiweb_request.erl > -define(MAX_RECV_BODY, (1024*1024)) 
> to something bigger, say -define(MAX_RECV_BODY, (1024*1024*16))
> alleviates the problem temporarily.
> issue confirmed by cmlenz on irc, he believed it to be a regression

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira