lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shawn Heisey <>
Subject Re: Expected mime type application/octet-stream but got text/html
Date Fri, 07 Sep 2018 15:28:09 GMT
On 9/6/2018 12:29 PM, nalsrini wrote:
> Here is the error message I am getting:

Alexandre covered things quite well.  It looks like you're using an 
invalid URL.

Your original message shows this code:

SolrClient client = new HttpSolrClient("http://:/solr-master");

That is not a valid URL.  It is missing the hostname, the port, and 
/solr-master is not the correct URL path.  The correct path would be 
/solr and MIGHT need to be /solr/indexname ... depending on exactly how 
the other code is written.  I prefer to use /solr and specify the 
collection name when making the requests.

Also, this is a Tomcat error page.  Is it Solr that's running in Tomcat, 
or are you running another application in Tomcat that is accessing Solr?

Running Solr in Tomcat became an unsupported configuration as of Solr 
5.0.  It is something you can do, but we don't support it.


View raw message