UI Error retrieving leader master URL

we have deployed 3 region cluster in AWS. when we try to access the UI using the master node, then it is working fine otherwise with the follower/tserver node address + same port, we get the below error

URL: http://:<master_webserver_port>
Error retrieving leader master URL: http://:<master_webserver_port>/?raw
Error: Remote error (yb/util/curl_util.cc:186): HTTP 503.

URL: http://:<master_webserver_port> – working fine.
URL: http://:<tserver_webserver_port> – working (does not show cluster info)

All the nodes in the cluster are running fine, and
Any idea what could be the issue here ?

seems some formatting issue. correction:

URL: http://:t-server-hostname:master_webserver_port
Error retrieving leader master URL: http://:master-hostname:<master_webserver_port>/?raw
Error: Remote error (yb/util/curl_util.cc:186): HTTP 503.

Hi @explore_yb

Are you getting any logs on yb-master when you trigger the 503 http response?

Can you show more info?
Can you pinpoint on all your urls which is the yb-master-leader and which is follower?

I encountered the same issue when accessing the follower master’s UI in a multi-zone AWS deployment. The follower attempted to redirect to the leader’s private IP, which wasn’t accessible across zones. To resolve this, I ensured that the --server_broadcast_addresses flag was set to the public hostname or IP on all master nodes. After restarting the masters with this configuration, the UI redirection worked correctly.