cancel
Showing results for 
Search instead for 
Did you mean: 

solr search issue : Expected mime type application/octet-stream but got text/html.

former_member643426
Discoverer
13,185

Hi All,

when i am searching a keyword in search box , i am getting below error.Could you please help me to resolve the issue.

ERROR [hybrisHTTP13] [SolrSearchRequestResponsePopulator] Exception while executing SOLR search de.hybris.platform.solrfacetsearch.search.FacetSearchException: Error from server at https://localhost:8983/solr: Expected mime type application/octet-stream but got text/html. <h1>Bad Message 414</h1><pre>reason: URI Too Long</pre>

Accepted Solutions (1)

Accepted Solutions (1)

former_member704915
Participant

Hello ,

You will have to override the facet search strategy and change the method POST:

INSERT_UPDATE SolrServerConfig ;name[unique=true];solrQueryMethod
 ;$serverConfigName; POST

Do let me know if this resolves your issue.

Thank you!

former_member643426
Discoverer
0 Kudos

Yes, Resolved my issue.

Thank you.

You skipped mode(code); and to add (code) at the end of solrQueryMethod

INSERT_UPDATE SolrServerConfig; name[unique = true]; mode(code) ; solrQueryMethod(code);
                              ; $serverConfigName  ; standalone ; POST                 ;
felipe_armijo
Newcomer
0 Kudos

Thanks works for me

former_member709366
Discoverer
0 Kudos

yep, it works

Siva_Kumar_G
Newcomer
I Do see the same issue, though i have POST. Do you have anything for this.?

Answers (2)

Answers (2)

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi there,

One of my customer in APJ is currently experiencing the same issue on production, and we did the changed the solrQueryMethod to POST and tried to reindex or update the existing solr index, but it failed and gave the following stack trace :

Indexing failed 02.12.2020 07:21:24: ERROR: Caught throwable More than one active index found: {indexedType=SolrIndexedTypeModel (8796093089951@25), active=true, facetSearchConfig=SolrFacetSearchConfigModel (8796093089944@19)} de.hybris.platform.servicelayer.exceptions.AmbiguousIdentifierException: More than one active index found: {indexedType=SolrIndexedTypeModel (8796093089951@25), active=true, facetSearchConfig=SolrFacetSearchConfigModel (8796093089944@19)} at de.hybris.platform.servicelayer.util.ServicesUtil.validateSingleResultWithType(ServicesUtil.java:92) at de.hybris.platform.servicelayer.util.ServicesUtil.validateIfSingleResult(ServicesUtil.java:47) at de.hybris.platform.solrfacetsearch.daos.impl.DefaultSolrIndexDao.findActiveIndexByConfigAndType(DefaultSolrIndexDao.java:73) at de.hybris.platform.solrfacetsearch.solr.impl.DefaultSolrIndexService.getActiveIndex(DefaultSolrIndexService.java:218) at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.AbstractIndexerStrategy.resolveIndex(AbstractIndexerStrategy.java:206) at de.hybris.platform.solrfacetsearch.indexer.strategies.impl.AbstractIndexerStrategy.execute(AbstractIndexerStrategy.java:108) at de.hybris.platform.solrfacetsearch.indexer.impl.DefaultIndexerService.performFullIndex(DefaultIndexerService.java:68) at de.hybris.platform.solrfacetsearch.indexer.cron.SolrIndexerJob.indexItems(SolrIndexerJob.java:78) ...

jayantlumi
Newcomer
0 Kudos

Make sure you have imported solr client configuration