Have you browsed the actual content available in the bucket that you're querying, to verify it exists as you expect? i.e.: http://your.riak.server.ip:8098/riak/BUCKETNAME?keys=true http://your.riak.server.ip:8098/riak/BUCKETNAME/KEYNAME
Browsing the data often reveals issues to me I didn't expect, such as when I first started testing with Riak, I was passing the wrong data type for json objects, so browsing to my object on Riak forced the browser to download the file instead of rendering json to the page, which let me know it wasn't seeing the object as proper json... * <http://www.loomlearning.com/> Jonathan Langevin Systems Administrator Loom Inc. Wilmington, NC: (910) 241-0433 - [email protected] - www.loomlearning.com - Skype: intel352 * On Sun, Aug 21, 2011 at 3:40 PM, idmartin <[email protected]> wrote: > Bob, > > Thanks for your response, > > My code is buried deep within a WSGI based website. I have copied "code for > code" from the tutorial posted with version 1.3 of the python client. > > Here is a snippit of the function > > def search( self, bu, query ): > > if not self.bucket[bu].search_enabled(): #self.bucket --> > riak buckets > self.bucket[bu].enable_search() > > query = self.client.search(bu , 'david') # self.client --> > riak cleint > > data = {} > > for r in query.reduce_sort().reduce_limit(5).run(): > > s = r.get() > > data.append(s.get_data()) > > return data > > > -- > View this message in context: > http://riak-users.197444.n3.nabble.com/Riak-Problem-w-Python-Client-No-JSON-object-could-be-decoded-tp3271810p3273394.html > Sent from the Riak Users mailing list archive at Nabble.com. > > _______________________________________________ > riak-users mailing list > [email protected] > http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com >
_______________________________________________ riak-users mailing list [email protected] http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
