[ 
https://issues.apache.org/jira/browse/SOLR-15159?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17786960#comment-17786960
 ] 

Alex Deparvu commented on SOLR-15159:
-------------------------------------

I think I already fixed this in SOLR-16638 - but I did not know about this 
ticket at the time so I created another one.

> Missing host in error message: "Error from server at null"
> ----------------------------------------------------------
>
>                 Key: SOLR-15159
>                 URL: https://issues.apache.org/jira/browse/SOLR-15159
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: David Smiley
>            Priority: Major
>
> RemoteSolrException's first argument is a "baseUrl" and/or the host of Solr.  
> I've seen logged exceptions where it is null on occassion, which makes 
> debugging a bit harder.
> After looking at Http2SolrClient (and HttpSolrClient similarly), I can see 
> there is a "serverBaseUrl" or "baseUrl" field that is passed to this 
> exception.  This field can actually be null, despite it seeming like 
> something that is mandatory.  The reason is that a SolrRequest can itself 
> contain the path that is used (see SolrRequest.getBasePath).  There are some 
> internal SolrClient instances that are configured with no default baseUrl and 
> thus the request must always supply this... such as HttpShardHandlerFactory 
> "defaultClient".



--
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

Reply via email to