[Bug] When setting up a development environment, if elasticsearch.host is misconfigured it does not catch error #52572
Labels
Feature:Saved Objects
Team:Core
Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc
Tested on newest master revision of kibana: 32ab00be5c3519955d91ac79d4818ac944ce07eb
First time when forking the kibana repository, after running
yarn kbn bootstrap
and want to runyarn start
you might get this error:This happens because it is assumed that fetchInfo will always return an amount of indicies. If the elasticsearch.host is misconfigured or the username/password applied is wrong however, it will break like this.
It might be wise to apply a pre-check before running fetchInfo or catch the error somehow here:
https://github.com/elastic/kibana/blob/master/src/core/server/saved_objects/migrations/core/elastic_index.ts#L43
The text was updated successfully, but these errors were encountered: