Re: Riak Problem w/ Python Client "No JSON object could be decoded"

2011-08-25 Thread idmartin
Does data have to be manually indexed? Even if i don't have any data indexed shouldn't the python client return a different error if everything is working properly? -- View this message in context: http://riak-users.197444.n3.nabble.com/Riak-Problem-w-Python-Client-No-JSON-object-could-be-deco

Re: Riak Problem w/ Python Client "No JSON object could be decoded"

2011-08-25 Thread idmartin
when executing curl -v 127.0.0.1:8098/solr commands i get 404 errors. Im wondering if my Riak is not running search at all. I can riaksearch ping and it works but it i cannot access the solr interface. -- View this message in context: http://riak-users.197444.n3.nabble.com/Riak-Problem-w-Python-C

Re: Riak Problem w/ Python Client "No JSON object could be decoded"

2011-08-25 Thread TJ Ninneman
> Well i don't really care if it opens in a browser properly or not. The python > Riak client is returning this error so something is wrong. When I run it in > the command line it returns a json object but im still getting that error. I would play around with this using the python interpreter. I

Re: Riak Problem w/ Python Client "No JSON object could be decoded"

2011-08-25 Thread idmartin
Well i don't really care if it opens in a browser properly or not. The python Riak client is returning this error so something is wrong. When I run it in the command line it returns a json object but im still getting that error. Where do you set the application type header, are you talking about t

Re: Riak Problem w/ Python Client "No JSON object could be decoded"

2011-08-25 Thread Jonathan Langevin
Thanks for that TJ, I had failed to mention that I only use Chrome browser.* Jonathan Langevin Systems Administrator Loom Inc. Wilmington, NC: (910) 241-0433 - jlange...@loomlearning.com - www.loomlearning.com - Skype: intel352 * On Thu, Aug 25, 2011 at 10:13 AM, T

Re: Riak Problem w/ Python Client "No JSON object could be decoded"

2011-08-25 Thread TJ Ninneman
> > Thanks alot... this seems to be the problem. When i navigate to JSON files > under 127.0.0.1 i get prompted to download. > > How did you fix this? It depends on your browser you are using. By default Firefox will attempt to download JSON encoded data to a file while Safari and Chrome will

Re: Riak Problem w/ Python Client "No JSON object could be decoded"

2011-08-24 Thread Jonathan Langevin
Ensure your content type header your json objects is set to: Content-Type: application/json * I believe when this occurred for me, I may have had something along the lines of text/json being passed, which wasn't correct. Jonathan Langevin Systems Administrator Loo

Re: Riak Problem w/ Python Client "No JSON object could be decoded"

2011-08-23 Thread idmartin
Jon, Thanks alot... this seems to be the problem. When i navigate to JSON files under 127.0.0.1 i get prompted to download. How did you fix this? Thanks, Ian -- View this message in context: http://riak-users.197444.n3.nabble.com/Riak-Problem-w-Python-Client-No-JSON-object-could-be-decoded-tp

Re: Riak Problem w/ Python Client "No JSON object could be decoded"

2011-08-22 Thread Jonathan Langevin
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,

Re: Riak Problem w/ Python Client "No JSON object could be decoded"

2011-08-21 Thread idmartin
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

Re: Riak Problem w/ Python Client "No JSON object could be decoded"

2011-08-20 Thread Bob Ippolito
On Sat, Aug 20, 2011 at 4:10 PM, idmartin wrote: > Ive been trying for a few days now to fix this, ive tried every single format > ive seen in examples online and put a JSON approved object as a string (used > several JSON validation sides to check) in and i continually get this > message. > > Can