lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Lackhoff <mich...@lackhoff.de>
Subject Re: exceptionhandling & error-reporting?
Date Tue, 06 Apr 2010 20:03:52 GMT
On 06.04.2010 17:49 Alexander Rothenberg wrote:

> On Monday 05 April 2010 20:14:44 Chris Hostetter wrote:
>> define "crashes" ? ... presumabl you are tlaking about the client crashing
>> because it can't parse theerro response, correct? ... the best suggestion
>> given the current state of Solr is to make hte client smart enough to not
>> attempt parsing of hte response unless the response code is 200.
> 
> Yes, it tries to parse the HTML-output but exspecting JSON syntax. Because it 
> is a perl-mod from CPAN, i dont really want to customize it...

You don't have to. Just wrap the call in an eval, at least that is what
I do.

-Michael

Mime
View raw message