Skip to content

Commit 8e888f1

Browse files
authored
Merge pull request #8809 from continuedev/dallin/local-secret-failures
fix: HOTFIX make errors fetching secrets nonblocking for local configs
2 parents 01382f5 + d9f577d commit 8e888f1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

core/config/yaml/LocalPlatformClient.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,12 @@ export class LocalPlatformClient implements PlatformClient {
9797
return [];
9898
}
9999

100-
const results = await this.client.resolveFQSNs(fqsns, this.orgScopeId);
100+
let results: (SecretResult | undefined)[] = [];
101+
try {
102+
results = await this.client.resolveFQSNs(fqsns, this.orgScopeId);
103+
} catch (e) {
104+
console.error("Error getting secrets from control plane", e);
105+
}
101106

102107
// For any secret that isn't found, look in .env files, then process.env
103108
for (let i = 0; i < results.length; i++) {

0 commit comments

Comments
 (0)