couchdb-xd icon indicating copy to clipboard operation
couchdb-xd copied to clipboard

db.post return 415 unsupported media

Open eknuth opened this issue 14 years ago • 2 comments

PUTs work just fine, but I get a result 415 when I POST:

Couch.init(function() { var server = new Couch.Server('http://localhost:5984'); var db = new Couch.Database(server, 'dbname'); db.post({ hello: 'world' }, function(resp) { });

});

Seems it might be an issue with the content type? Thanks, wonderful library.

eknuth avatar Oct 28 '11 05:10 eknuth

Sorry, forgot to mention that I'm using couch 1.1.0.

eknuth avatar Oct 28 '11 06:10 eknuth

I'm having the same issue

joaovpmamede avatar Nov 07 '11 21:11 joaovpmamede