File tree 1 file changed +13
-8
lines changed
1 file changed +13
-8
lines changed Original file line number Diff line number Diff line change @@ -570,14 +570,19 @@ export default class OpenSearchService {
570
570
571
571
let clustersResponse : ClusterInfo [ ] = [ ] ;
572
572
573
- const remoteInfo = await callWithRequest ( 'transport.request' , {
574
- method : 'GET' ,
575
- path : '/_remote/info' ,
576
- } ) ;
577
- clustersResponse = Object . keys ( remoteInfo ) . map ( ( key ) => ( {
578
- name : key ,
579
- localCluster : false ,
580
- } ) ) ;
573
+ try {
574
+ const remoteInfo = await callWithRequest ( 'transport.request' , {
575
+ method : 'GET' ,
576
+ path : '/_remote/info' ,
577
+ } ) ;
578
+ clustersResponse = Object . keys ( remoteInfo ) . map ( ( key ) => ( {
579
+ name : key ,
580
+ localCluster : false ,
581
+ } ) ) ;
582
+ } catch ( remoteErr ) {
583
+ console . warn ( 'Failed to fetch remote cluster info, proceeding with local datasource info only.' , remoteErr ) ;
584
+ }
585
+
581
586
582
587
const clusterHealth = await callWithRequest ( 'cat.health' , {
583
588
format : 'json' ,
You can’t perform that action at this time.
0 commit comments