405 when PUTting a new object

Simon Majou simon at majou.org
Sun Feb 17 16:35:43 EST 2013


It don't understand how to create new objects in an empty database.

The dcumentation says we can create objects with or without key :

But at the same time we don't need to create the buckets, they are created
automatically :

So how does Riak determine if we are creating an object with a key or we
are creating an object without a key ?

I am trying to create an object (with a key) in version 1.2.1 and it fails :

$ curl -XPUT -d '{"bar":"b"}' -H "Content-Type: application/json" -v
* About to connect() to port 8091 (#0)
*   Trying connected
> PUT /riak/aaa/bbb/key HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0
OpenSSL/1.0.1 zlib/ libidn/1.23 librtmp/2.3
> Host:
> Accept: */*
> Content-Type: application/json
> Content-Length: 11
* upload completely sent off: 11out of 11 bytes
< HTTP/1.1 405 Method Not Allowed
< Server: MochiWeb/1.1 WebMachine/1.9.0 (someone had painted it blue)
< Date: Sun, 17 Feb 2013 21:32:59 GMT
< Content-Length: 0
< Allow: GET, HEAD, POST
* Connection #0 to host left intact
* Closing connection #0

(the bucket /riak/aaa/bbb doesn't exist but it should be created

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.basho.com/pipermail/riak-users_lists.basho.com/attachments/20130217/99a76e0c/attachment.html>

More information about the riak-users mailing list