[ https://issues.apache.org/jira/browse/SOLR-16929?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alex Deparvu updated SOLR-16929: -------------------------------- Description: The exception message included by the SolrStream can sometimes be the encoded (javabin) string representation of the remote exception. I think this might be due to consuming the stream response as string instead of using a reader. See 'consumeStreamAsErrorMessage' method [https://github.com/apache/solr/blob/main/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/stream/SolrStream.java#L335C18-L335C45] example based on existing test * json format {noformat} java.util.concurrent.ExecutionException: java.io.IOException: Query to '/streams_shard2_replica_n2/select?q=*:*&fl=a_s,a_i,a_f,blah&sort=blah+asc&distrib=false' failed due to: (400) { "responseHeader":{ "zkConnected":true, "status":400, "QTime":1 }, "error":{ "metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"], "msg":"sort param field can't be found: blah", "code":400 } } {noformat} * javabin format {noformat} java.util.concurrent.ExecutionException: java.io.IOException: Query to '/streams_shard2_replica_n2/select?q=*:*&fl=a_s,a_i,a_f,blah&sort=blah+asc&wt=javabin&distrib=false' failed due to: (400) ��.responseHeader��+zkConnected�&statusP�%QTime�%error��(metadata��+error-class?org.apache.solr.common.SolrException�0root-error-class?org.apache.solr.common.SolrException�#msg?sort param field can't be found: blah�$codeP {noformat} was: The exception message included by the SolrStream can sometimes be the encoded (javabin) string representation of the remote exception. I think this might be due to consuming the stream response as string instead of using a reader. See 'consumeStreamAsErrorMessage' method https://github.com/apache/solr/blob/main/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/stream/SolrStream.java#L335C18-L335C45 example - partially redacted until I am able to repro with a test * solr 8.11 output {noformat} { "result-set": { "docs": [ { "EXCEPTION": "java.util.concurrent.ExecutionException: java.io.IOException: --> https://host:8983/solr/a_shard2_replica_n2/:Invalid Date String: '89'", "EOF": true, "RESPONSE_TIME": 100 } ] } {noformat} * solr 9.2 output {noformat} { "result-set": { "docs": [ { "EXCEPTION": "java.util.concurrent.ExecutionException: java.io.IOException: Query to '/a_shard2_replica_n2/export?q=_query_' failed due to: (400) \u0002\u0011�.responseHeader\n\u0001�&statusP\u0019�(response \n\u0002�$docs�\n\u0001�)EXCEPTION8Invalid Date String:'89'�(numFound \u0006\u0000\u0000\u0000\u0000\u000f", "EOF": true, "RESPONSE_TIME": 75 } ] } } {noformat} > SolrStream propagates undecoded error message > --------------------------------------------- > > Key: SOLR-16929 > URL: https://issues.apache.org/jira/browse/SOLR-16929 > Project: Solr > Issue Type: Bug > Security Level: Public(Default Security Level. Issues are Public) > Components: streaming expressions > Affects Versions: 9.0 > Reporter: Alex Deparvu > Priority: Minor > > The exception message included by the SolrStream can sometimes be the encoded > (javabin) string representation of the remote exception. > I think this might be due to consuming the stream response as string instead > of using a reader. See 'consumeStreamAsErrorMessage' method > [https://github.com/apache/solr/blob/main/solr/solrj-streaming/src/java/org/apache/solr/client/solrj/io/stream/SolrStream.java#L335C18-L335C45] > example based on existing test > * json format > {noformat} > java.util.concurrent.ExecutionException: java.io.IOException: Query to > '/streams_shard2_replica_n2/select?q=*:*&fl=a_s,a_i,a_f,blah&sort=blah+asc&distrib=false' > failed due to: (400) { > "responseHeader":{ > "zkConnected":true, > "status":400, > "QTime":1 > }, > "error":{ > > "metadata":["error-class","org.apache.solr.common.SolrException","root-error-class","org.apache.solr.common.SolrException"], > "msg":"sort param field can't be found: blah", > "code":400 > } > } {noformat} > * javabin format > {noformat} > java.util.concurrent.ExecutionException: java.io.IOException: Query to > '/streams_shard2_replica_n2/select?q=*:*&fl=a_s,a_i,a_f,blah&sort=blah+asc&wt=javabin&distrib=false' > failed due to: (400) > ��.responseHeader��+zkConnected�&statusP�%QTime�%error��(metadata��+error-class?org.apache.solr.common.SolrException�0root-error-class?org.apache.solr.common.SolrException�#msg?sort > param field can't be found: blah�$codeP > {noformat} -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org