couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julian Goacher <>
Subject Problems with multipart attachment updates
Date Mon, 13 Aug 2012 14:15:31 GMT
Hi -

I've been working with multipart/related attachment updates on CouchDB 
1.2.0 and encountering a few problems.

I have the following document in a DB called semo_test:

        "_id": "doc0",
        "_rev": "1-7e97409c987eac3a99385a17ad4cbabe",
        "value": 0

I then update the document and add an attachment using a 
multipart/related request. This is a complete dump of the HTTP request:

    PUT /semo_test/doc0 HTTP/1.1
    Accept: application/json, */*
    Host: localhost:5984
    Content-Length: 435
    Connection: keep-alive

    Content-Type: application/json


    HTTP/1.1 201 Created
    Server: CouchDB/1.2.0 (Erlang OTP/R15B)
    ETag: "2-37f62cdf8cb68339a30b7b20d7eb0d1d"
    Date: Mon, 13 Aug 2012 14:00:49 GMT
    Content-Type: application/json
    Content-Length: 67
    Cache-Control: must-revalidate


So far so good, but then an attempt to read the document generates a 500 

    GET /semo_test/doc0 HTTP/1.1
    Accept: application/json, */*
    Host: localhost:5984

    HTTP/1.1 500 Internal Server Error
    Server: CouchDB/1.2.0 (Erlang OTP/R15B)
    Date: Mon, 13 Aug 2012 14:10:02 GMT
    Content-Type: application/json
    Content-Length: 43
    Cache-Control: must-revalidate


Couch generates the following log output for the GET request:

    [Mon, 13 Aug 2012 14:10:02 GMT] [error] [<0.6811.10>] Uncaught error
    in HTTP request: {error,undef}
    [Mon, 13 Aug 2012 14:10:02 GMT] [info] [<0.6811.10>] Stacktrace:
    [Mon, 13 Aug 2012 14:10:02 GMT] [error] [<0.6811.10>] Uncaught
    server error: undef
    [Mon, 13 Aug 2012 14:10:02 GMT] [info] [<0.6811.10>] - -
    GET /semo_test/doc0 500

Can anyone shed any light on why this is happening?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message