Re: Updated to v4.7 - Getting Search requests cannot accept content streams

2014-03-11 Thread leevduhl
We resolved this problem by changing the Content-Type we were providing.  

Changing it to application/x-www-form-urlencoded resolved the issue.

Thanks for the help!

Lee



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Updated-to-v4-7-Getting-Search-requests-cannot-accept-content-streams-tp4122540p4122937.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Updated to v4.7 - Getting Search requests cannot accept content streams

2014-03-10 Thread Shawn Heisey
On 3/10/2014 6:14 AM, leevduhl wrote:
 We just upgraded our dev environment from Solr 4.6 to 4.7 and our search
 posts are now returning a Search requests cannot accept content streams
 error.  We did not install over top of our 4.6 install, we installed into a
 new folder.
 
 org.apache.solr.common.SolrException: Search requests cannot accept content
 streams

This message was added by SOLR-5517.  This is specifically thrown when
Solr detects that the request includes one or more content streams,
which is only supported for updates, not queries.

https://issues.apache.org/jira/browse/SOLR-5517

You may need to include a Content-Type header in your HTTP request.  If
you are already doing this, then it may be invalid, or there may be some
other problem with your request.  To figure out what it is, we'll need
more information about how your requests are constructed.

Thanks,
Shawn



Re: Updated to v4.7 - Getting Search requests cannot accept content streams

2014-03-10 Thread Yonik Seeley
I get a different error (but related to the same issue I guess) with
the following simple query:

/opt/code/heliosearch/solr$ curl -XPOST
http://localhost:8983/solr/select?q=*:*;

?xml version=1.0 encoding=UTF-8?
response
lst name=errorstr name=msgMust specify a Content-Type header
with POST requests/strint name=code415/int/lst
/response


HTTP does not require a POST body, so it seems like the checking was a
bit too strict (i.e. if there is no post body, there should be no
requirement for a content-type).

-Yonik
http://heliosearch.org - solve Solr GC pauses with off-heap filters
and fieldcache


On Mon, Mar 10, 2014 at 5:08 PM, Shawn Heisey s...@elyograg.org wrote:
 On 3/10/2014 6:14 AM, leevduhl wrote:
 We just upgraded our dev environment from Solr 4.6 to 4.7 and our search
 posts are now returning a Search requests cannot accept content streams
 error.  We did not install over top of our 4.6 install, we installed into a
 new folder.

 org.apache.solr.common.SolrException: Search requests cannot accept content
 streams

 This message was added by SOLR-5517.  This is specifically thrown when
 Solr detects that the request includes one or more content streams,
 which is only supported for updates, not queries.

 https://issues.apache.org/jira/browse/SOLR-5517

 You may need to include a Content-Type header in your HTTP request.  If
 you are already doing this, then it may be invalid, or there may be some
 other problem with your request.  To figure out what it is, we'll need
 more information about how your requests are constructed.

 Thanks,
 Shawn