Gary Sieling

Fixing org.apache.solr.common.SolrException: Length Required

I received the following exception, after making no code changes:

org.apache.solr.common.SolrException: Length Required

The issue is that CommonsHttpSolrServer does not send a Content-Length header in updates. The root cause of my issue was switching the front-end proxy from Apache to Nginx, which apparently is more strict about headers.

 

Exit mobile version