Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

Fix: Signup not redirecting to backup PDF page due to error

Daniel Hougaard73cc97cf17f5
diff --git a/frontend/src/helpers/project.ts b/frontend/src/helpers/project.ts
index 33c9e5777d..8379b0fa59 100644
--- a/frontend/src/helpers/project.ts
+++ b/frontend/src/helpers/project.ts
@@ -99,27 +99,31 @@ const initProjectHelper = async ({
env: "dev"
});
- secrets?.forEach((secret) => {
- createSecret({
- workspaceId: project.id,
- environment: secret.environment,
- type: secret.type,
- secretKey: secret.secretName,
- secretKeyCiphertext: secret.secretKeyCiphertext,
- secretKeyIV: secret.secretKeyIV,
- secretKeyTag: secret.secretKeyTag,
- secretValueCiphertext: secret.secretValueCiphertext,
- secretValueIV: secret.secretValueIV,
- secretValueTag: secret.secretValueTag,
- secretCommentCiphertext: secret.secretCommentCiphertext,
- secretCommentIV: secret.secretCommentIV,
- secretCommentTag: secret.secretCommentTag,
- secretPath: "/",
- metadata: {
- source: "signup"
- }
+ try {
+ secrets?.forEach((secret) => {
+ createSecret({
+ workspaceId: project.id,
+ environment: secret.environment,
+ type: secret.type,
+ secretKey: secret.secretName,
+ secretKeyCiphertext: secret.secretKeyCiphertext,
+ secretKeyIV: secret.secretKeyIV,
+ secretKeyTag: secret.secretKeyTag,
+ secretValueCiphertext: secret.secretValueCiphertext,
+ secretValueIV: secret.secretValueIV,
+ secretValueTag: secret.secretValueTag,
+ secretCommentCiphertext: secret.secretCommentCiphertext,
+ secretCommentIV: secret.secretCommentIV,
+ secretCommentTag: secret.secretCommentTag,
+ secretPath: "/",
+ metadata: {
+ source: "signup"
+ }
+ });
});
- });
+ } catch (err) {
+ console.error("Failed to upload secrets", err);
+ }
return project;
};