Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

db.post return 415 unsupported media #3

Open
eknuth opened this issue Oct 28, 2011 · 2 comments
Open

db.post return 415 unsupported media #3

eknuth opened this issue Oct 28, 2011 · 2 comments

Comments

@eknuth
Copy link

eknuth commented Oct 28, 2011

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
Copy link
Author

eknuth commented Oct 28, 2011

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

@joaovpmamede
Copy link
Contributor

I'm having the same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants