@@ -98,11 +98,15 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
98
98
const secretId = secret . id ;
99
99
const secretName = secret . attributes . name . trim ( ) ;
100
100
let componentIds : any = [ ] ;
101
- if ( secret . relationships . component ) componentIds . push ( secret . relationships . component . data . id ) ;
102
- if ( secret . relationships . auth_client ) {
103
- const clientId = secret . relationships . auth_client . data . id ;
104
- const clientResponse = await this . makeRequest ( { method : 'GET' , url : `/auth-clients/${ clientId } ` } ) ;
105
- componentIds = clientResponse . relationships . components . data . map ( x => x . id ) ;
101
+ try {
102
+ if ( secret . relationships . component ) componentIds . push ( secret . relationships . component . data . id ) ;
103
+ if ( secret . relationships . auth_client ) {
104
+ const clientId = secret . relationships . auth_client . data . id ;
105
+ const clientResponse = await this . makeRequest ( { method : 'GET' , url : `/auth-clients/${ clientId } ` } ) ;
106
+ componentIds = clientResponse . data . relationships . components . data . map ( x => x . id ) ;
107
+ }
108
+ } catch ( e : any ) {
109
+ this . emitter . logger . info ( `Can't find related to secret component - ${ e . message } ` )
106
110
}
107
111
resp . push ( { secretId, secretName, componentIds } ) ;
108
112
}
@@ -176,7 +180,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
176
180
const workspaces = await this . fetchWorkspaceList ( { } ) ;
177
181
if ( ! workspaceId ) {
178
182
const nonFlatFlows = await mapLimit ( workspaces , realSplitFactor ,
179
- async workspace => this . fetchAllFlowsForWorkspace ( { parallelCalls : parallelizationPerTask , workspaceId : workspace . workspaceId } ) ) ;
183
+ async workspace => this . fetchAllFlowsForWorkspace ( { parallelCalls : parallelizationPerTask , workspaceId : workspace . workspaceId } ) ) ;
180
184
flows = nonFlatFlows . flat ( ) ;
181
185
} else {
182
186
flows = await this . fetchAllFlowsForWorkspace ( {
@@ -270,7 +274,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
270
274
/* eslint-disable-next-line no-param-reassign */
271
275
soFar [ contract . id ] = contract ;
272
276
return soFar ;
273
- } , { } ) ;
277
+ } , { } ) ;
274
278
275
279
const nonFlatWorkspaces = await mapLimit (
276
280
contracts ,
@@ -547,7 +551,7 @@ export class PlatformApiLogicClient extends PlatformApiRestClient {
547
551
/* eslint-disable-next-line no-param-reassign */
548
552
soFar [ sample . sampleId ] = sample . sample ;
549
553
return soFar ;
550
- } , { } ) ;
554
+ } , { } ) ;
551
555
flow . attributes . graph . nodes
552
556
. filter ( node => node . selected_data_samples )
553
557
. forEach ( ( node ) => {
0 commit comments