lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lee carroll <lee.a.carr...@googlemail.com>
Subject Re: error in html???
Date Fri, 24 Dec 2010 10:39:49 GMT
Hi Satya,

This is not a solr issue. In your client which makes the json request you
need to have some error checking so you catch the error.

Occasionally people have apache set up to return a 200 ok http response with
a custom page on http errors (often for spurious security considerations)
but this breaks REST like services which SOLR implements and IMO should not
be done.

Take a look at the response coming back from solr and make sure you are
getting the correct http header response 500 etc when your queries errors.
If you are, great stuff you can then check your json invocation
documentation and catch and deal with these http errors in the client. if
your getting a 200 response check your apache config

lee c

On 24 December 2010 05:18, satya swaroop <satya.yadalam@gmail.com> wrote:

> Hi Erick,
>           Every result comes in xml format. But when you get any errors
> like http 500 or http 400 like wise we will get in html format. My query is
> cant we make that html file into json or vice versa..
>
> Regards,
> satya
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message