Why curl command is not showing o/p in proxy server

curl cmd didn’t give response in proxy server side,

i have restarted ES nodes and then start working fine later 1 min again stop working,

but get the output in kibana devtools.

kindly let me know what all steps need to perform for trouble-suite the issue?

502 Proxy Error

Proxy Error

The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request

Reason: Error reading from remote server

note:- This is error we are getting while running the curl Get command

version of elastic is 7.10.0
curl --user uid:pass -X GET https://dafinfrantools-es.sero.wh.rnd.internal.ericsson.com/_cat/indices?pretty

now kibana url is not working as its saying “kibana server is not ready yet”

logs are
{“type”:“log”,“@timestamp”:“2022-02-22T17:48:27Z”,“tags”:[“error”,“savedobjects-service”],“pid”:22996,“message”:“Unable to retrieve version information from Elasticsearch nodes.”}
{“type”:“log”,“@timestamp”:“2022-02-22T17:48:27Z”,“tags”:[“error”,“Elasticsearch”,“data”],“pid”:22996,“message”:“[security_exception]: no permissions for [indices:admin/get] and User [name=elastic, backend_roles=[admin], requestedTenant=null]”}
{“type”:“log”,“@timestamp”:“2022-02-22T17:48:29Z”,“tags”:[“error”,“Elasticsearch”,“data”],“pid”:22996,“message”:“[security_exception]: no permissions for [cluster:monitor/nodes/info] and User [name=elastic, backend_roles=[admin], requestedTenant=null]”}
{“type”:“log”,“@timestamp”:“2022-02-22T17:48:29Z”,“tags”:[“error”,“Elasticsearch”,“data”],“pid”:22996,“message”:“[security_exception]: no permissions for [indices:admin/get] and User [name=elastic, backend_roles=[admin], requestedTenant=null]”}
{“type”:“log”,“@timestamp”:“2022-02-22T17:48:32Z”,“tags”:[“error”,“Elasticsearch”,“data”],“pid”:22996,“message”:“[security_exception]: no permissions for [cluster:monitor/nodes/info] and User [name=elastic, backend_roles=[admin], requestedTenant=null]”}
{“type”:“log”,“@timestamp”:“2022-02-22T17:48:32Z”,“tags”:[“error”,“Elasticsearch”,“data”],“pid”:22996,“message”:“[security_exception]: no permissions for [indices:admin/get] and User [name=elastic, backend_roles=[admin], requestedTenant=null]”}
{“type”:“log”,“@timestamp”:“2022-02-22T17:48:34Z”,“tags”:[“error”,“Elasticsearch”,“data”],“pid”:22996,“message”:“[security_exception]: no permissions for [cluster:monitor/nodes/info] and User [name=elastic, backend_roles=[admin], requestedTenant=null]”}
{“type”:“log”,“@timestamp”:“2022-02-22T17:48:34Z”,“tags”:[“error”,“Elasticsearch”,“data”],“pid”:22996,“message”:“[security_exception]: no permissions for [indices:admin/get] and User [name=elastic, backend_roles=[admin], requestedTenant=null]”}
{“type”:“log”,“@timestamp”:“2022-02-22T17:48:37Z”,“tags”:[“error”,“Elasticsearch”,“data”],“pid”:22996,“message”:“[security_exception]: no permissions for [indices:admin/get] and User [name=elastic, backend_roles=[admin], requestedTenant=null]”}

This seems like something else is going on outside of OpenSearch. Do you have a firewall or something?