incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hank Knight <hknight...@gmail.com>
Subject CouchDB: "invalid_json" error when adding attachment
Date Mon, 04 Nov 2013 19:10:27 GMT
You can view my document here:
https://zuhqtr5.couchappy.com/wcs/z1?rev=7-15810428fa1a0eb14c72e456457bb467

I am trying to add an attachement:

curl -vkX PUT -u uiimvuxd@sharklasers.com:password123 \
 https://zuhqtr5.couchappy.com/wcs/z1?rev=7-15810428fa1a0eb14c72e456457bb467 \
 --data-binary @image.jpg -H "Content-Type: image/jpg"

I get an error:
{"error":"bad_request","reason":"invalid_json"}

Could you please help me figure out what I am doing wrong?
Thanks.

Mime
View raw message