Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15159

Missing host in error message: "Error from server at null"

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • None
    • None
    • None
    • None

    Description

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

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dsmiley David Smiley
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: