-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
dear everyone:
I follow the tutorial at http://docs.basho.com/riak/kv/2.1.4/developing/usage/document-store/ , Step by Step Practice , when I've Post a request for store object , but the riak server respond 400 (Bad Request) , I review my code again and again , but no problem found . see below:
'; var_dump($response); echo '
'; ``` } } $node = (new Node\Builder) ->atHost('192.168.111.2') ->onPort(8098) ->build(); ``` $riak = new Riak([$node]); ``` $keywords = ['adorbs', 'cheshire']; $date = new \DateTime('now'); $post1 = new BlogPost( $riak, 'cat_pics', // bucket 'This one is so lulz!', // title 'Cat Stevens', // author 'Please check out these cat pics!', // content $keywords, // keywords $date, // date posted true // published ); $post1->store(); the wireshark captured packet : 192.168.171.124(client ip) => 192.168.111.2(riak server ip) HTTP 511 POST /types/cms/buckets/cat_pics/datatypes/alldoc? HTTP/1.1 (application/json) 192.168.111.2 192.168.171.124 HTTP 251 HTTP/1.1 400 Bad Request GET http://192.168.111.2:8098//types/cms/buckets/cat_pics/props {"props":{"name":"cat_pics","young_vclock":20,"w":"quorum","small_vclock":50,"search_index":"blog_posts","rw":"quorum","r":"quorum","pw":0,"precommit":[],"pr":0,"postcommit":[],"old_vclock":86400,"notfound_ok":true,"n_val":3,"linkfun":{"mod":"riak_kv_wm_link_walker","fun":"mapreduce_linkfun"},"last_write_wins":false,"dw":"quorum","dvv_enabled":true,"chash_keyfun":{"mod":"riak_core_util","fun":"chash_std_keyfun"},"big_vclock":50,"basic_quorum":false,"allow_mult":true,"datatype":"map","active":true,"claimant":"[email protected]"}} ``` please help me catch the bugs thanks in advance! ``` regards
Metadata
Metadata
Assignees
Labels
No labels