On Wed, Apr 22, 2015 at 4:17 PM, Yonik Seeley <ysee...@gmail.com> wrote:
> On Wed, Apr 22, 2015 at 11:00 AM, didier deshommes <dfdes...@gmail.com> > wrote: > > curl " > > > http://localhost:8983/solr/gettingstarted/select?wt=json&indent=true&q=foundation > " > > -H "Content-type:application/json" > > You're telling Solr the body encoding is JSON, but then you don't send any > body. > We could catch that error earlier perhaps, but it still looks like an > error? > > Agreed, it's still an error. But the traceback looks like something horrible has happened to Solr, and is not particularly informative to the user. An error message like "Empty request body" would help. I suspect that this issue about content-type may come up again in libraries that interact with Solr since its behavior pre-5.1 was to just ignore empty body requests and return the response anyway. -Yonik >