Kibana server is not ready yet error

nvm I just had to change the config as below
elasticsearch.hosts: ['https://localhost:9200'] and its working now.