On 9/26/07, Urvashi Gadi <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am trying to create my own application using SOLR and while trying to
> index my data i get
>
> Server returned HTTP response code: 400 for URL:
> http://localhost:8983/solr/update or
> Server returned HTTP response code: 500 for URL:
> http://localhost:8983/solr/update
>
> Is there a way to get more debug information than this (any logs, which file
> is wrong, schema.xml? etc)

Both the HTTP reason and response body should contain more information.
What are you using to communicate with Solr?
Try a bad request with curl and you can see the info that comes back:

[EMAIL PROTECTED] /cygdrive/f/code/lucene
$ curl -i http://localhost:8983/solr/select?q=foo:bar
HTTP/1.1 400 undefined_field_foo
Content-Type: text/html; charset=iso-8859-1
Content-Length: 1398
Server: Jetty(6.1.3)

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 400 </title>
</head>
<body><h2>HTTP ERROR: 400</h2><pre>undefined field foo</pre>
<p>RequestURI=/solr/select</p><p><i><small><a href="http://jetty.mortbay.org/";>P
owered by Jetty://</a></small></i></p><br/>

<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>

</body>
</html>


Errors should also be logged.

-Yonik

Reply via email to