Error message: "Invalid value 'explicit' for echoParams parameter, use 'EXPLICIT' or 'ALL'"

Jul 15, 2009 at 12:31 PM

While running the SolrSharp example, i gave an error message: The remote server returned error (400) faulty request

In code:

         ... try
            {
                oResponse = (HttpWebResponse)oRequest.GetResponse();            //error occured
            }
            catch (WebException e)
            {
                HttpStatusCode intCode = 0;
                if (oResponse != null)
                    intCode = oResponse.StatusCode;

                Stream errstream = e.Response.GetResponseStream();
                string errsr = "";
                if (errstream != null)
                {
                    StreamReader errreader = new StreamReader(errstream);
                    errsr = errreader.ReadToEnd();
                }
                string errmessage = "Error in SolrSearchers-GetXml-GetResponseStream" + Environment.NewLine;
                if (intCode != 0)
                    errmessage += "HttpStatusCode: " + intCode.ToString() + Environment.NewLine;
                if (errsr != "")
                    errmessage += "StreamResponse: " + errsr + Environment.NewLine + "End-of-stream-response" + Environment.NewLine;
                throw new Exception(errmessage, e); 

       }...

 

The error message:

Error in SolrSearchers-GetXml-GetResponseStream
StreamResponse: <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>Invalid value 'explicit' for echoParams parameter, use 'EXPLICIT' or 'ALL'</pre>
<p>RequestURI=/solr/select/</p><p><i><small><a href="http://jetty.mortbay.org/">Powered 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>

End-of-stream-response

When i open the http://localhost:8983/solr/select/ in browser, i gave an error:

HTTP ERROR: 400

Invalid value 'explicit' for echoParams parameter, use 'EXPLICIT' or 'ALL'

RequestURI=/solr/select/

Also, while i am searching in the Solr page, same error above occured.

How can i get rid of this error? Please, help me!

 

Thanks, in advance.