flimzy opened a new issue #1026: Ugly error message for malformed 'multipart/related' payload URL: https://github.com/apache/couchdb/issues/1026 CouchDB 2.1.1. To reproduce: curl -v -X PUT http://admin:abc123@localhost:6002/foo/a\?rev=1-967a00dff5e02add41819138abb3284d -H 'Content-Type: multipart/related;boundary="abc123"' (note the lack of `-d ...`, but any malformed data causes a similar error) Observe the resulting response: ``` < HTTP/1.1 500 Internal Server Error < X-CouchDB-Body-Time: 0 < X-Couch-Request-ID: d6d45727bc < Server: CouchDB/2.1.1 (Erlang OTP/17) < Date: Tue, 28 Nov 2017 17:07:46 GMT < Content-Type: application/json < Content-Length: 561 < Connection: close < Cache-Control: must-revalidate < {"error":"error","reason":"{{nocatch,<<\"expected more data\">>},\n [{chttpd_db,receive_request_data,2,[{file,\"src/chttpd_db.erl\"},{line,932}]},\n {couch_httpd,read_until,3,[{file,\"src/couch_httpd.erl\"},{line,1062}]},\n {couch_httpd,parse_part_header,1,[{file,\"src/couch_httpd.erl\"},{line,1090}]},\n {couch_httpd,parse_multipart_request,3,\n [{file,\"src/couch_httpd.erl\"},{line,1027}]},\n {couch_httpd_multipart,'-decode_multipart_stream/3-fun-1-',4,\n [{file,\"src/couch_httpd_multipart.erl\"},{line,33}]}]}"} ```
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
