TypeError: Cannot read properties of undefined (reading 'cluster_uuid') in Stack Monitoring Overview Page

I have a 7 node elasticsearch cluster . 3 Master Nodes , 3 Data Nodes and 1 Ingest Node. The 3 master and data nodes sends metrics to the ingest node via metricbeat ( system module and elasticsearch-xpack module ) . When I try to see it in the kibana Stack Monitoring page, I get the below error.


**TypeError: Cannot read properties of undefined (reading 'cluster_uuid')**
    at Us (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:130978)
    at la (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:59212)
    at ec (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:114853)
    at Pc (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:99736)
    at Nc (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:99563)
    at Dc (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:99396)
    at wc (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:96239)
    at http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:45140
    at t.unstable_runWithPriority (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:433:3768)
    at Xo (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:425:44917)


The above error occurred in Us:
    at Us (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:130321)
    at div
    at div
    at http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:356:3169
    at h (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:510:95321)
    at div
    at http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:356:3169
    at h (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:377:1065011)
    at div
    at http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:356:3169
    at section
    at http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:356:3169
    at b (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:361:1018430)
    at Section (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:377:1068490)
    at main
    at http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:356:3169
    at f (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:1253:79568)
    at div
    at http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:356:3169
    at p (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:1253:78992)
    at w (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:377:1066790)
    at Pa (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:177918)
    at un (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:284664)
    at Nn (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:319594)
    at t (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:351:120129)
    at F (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:44499)
    at co (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:413508)
    at t (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:351:122295)
    at z (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:45380)
    at T (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:28:5381)
    at ne (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:28:11218)
    at te (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:28:10583)
    at K (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:1253:12655)
    at t (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:351:116457)
    at D (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:45263)
    at c (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:3:4324)
    at c (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:3:4324)
    at X (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:47941)
    at Provider (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/kibanaReact/1.0.0/kibanaReact.plugin.js:1:26264)
    at x (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:43:352147)
    at k (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:43:352948)
    at p (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:43:347876)
    at c (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:361:184879)
    at Ae (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:43:185752)
    at t (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:43:177229)
    at Re (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-src/kbn-ui-shared-deps-src.js:43:186195)
    at Context (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/core/core.entry.js:16:204749)
    at p (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:361:583969)
    at d (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:361:194192)
    at v (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:356:3613)
    at a (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:377:1625486)
    at f (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:6:60862)
    at x (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:361:611032)
    at s (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:372:205190)
    at a (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:384:368440)
    at m (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/kbn-ui-shared-deps-npm/kbn-ui-shared-deps-npm.dll.js:377:1069335)
    at E (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:43808)
    at y (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:44115)
    at k (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:44214)
    at go (http://xx.xxx.xxx.xxx:5601/465f50087cd0/bundles/plugin/monitoring/1.0.0/monitoring.chunk.2.js:13:414794)

I get issues only in the Overview page. The Nodes page works good and I am able to see all the 6 Nodes and their details. When I click on the Overview page, the request URL sent is xx.xxx.xxx.xxx:5601/api/monitoring/v1/clusters/xxxxxxxxxx and it is returning a 400 Bad Request status code.