Skip to content

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

Ignore duplicate error

Fang-Pen Lin5aa525707363
diff --git a/backend/src/services/certificate-authority/acme/dns-providers/dns-made-easy.ts b/backend/src/services/certificate-authority/acme/dns-providers/dns-made-easy.ts
index b3278e5d37..ebd9105ae2 100644
--- a/backend/src/services/certificate-authority/acme/dns-providers/dns-made-easy.ts
+++ b/backend/src/services/certificate-authority/acme/dns-providers/dns-made-easy.ts
@@ -66,6 +66,12 @@ export const dnsMadeEasyInsertTxtRecord = async (
(error.response?.data as { error?: string[] | string })?.error ||
error.message ||
"Unknown error";
+
+ if (error.status === 400 && error.message.includes("already exists")) {
+ logger.info({ domain, value }, `Record already exists for domain: ${domain} and value: ${value}`);
+ return;
+ }
+
throw new Error(typeof errorMessage === "string" ? errorMessage : String(errorMessage));
}
throw error;