It seems like the request to the server is failing for some reason - are you using a proxy of some kind in front of Kibana?
Could you open the network tab in the dev tools and try to get the error by refreshing a few times? If that works could you copy/paste the request and the response which are causing the problem (they should have a status code >= 400)?
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Bad Gateway</title>
</head><body>
<h1>Bad Gateway</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
</p>
<hr>
<address>Apache/2.4.41 (Ubuntu) Server at bs2.openpartner.cl Port 443</address>
</body></html>
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.