mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-09-22 13:39:35 +00:00
Well... mark as invalid
This commit is contained in:
@@ -77,7 +77,7 @@ export const pkiAcmeChallengeServiceFactory = ({
|
|||||||
await acmeChallengeDAL.markAsValidCascadeById(challengeId, tx);
|
await acmeChallengeDAL.markAsValidCascadeById(challengeId, tx);
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// TODO: we should retry the challenge validation a few times, but let's keep it simple for now
|
// TODO: we should retry the challenge validation a few times, but let's keep it simple for now
|
||||||
await acmeChallengeDAL.markAsValidCascadeById(challengeId, tx);
|
await acmeChallengeDAL.markAsInvalidCascadeById(challengeId, tx);
|
||||||
// Properly type and inspect the error
|
// Properly type and inspect the error
|
||||||
if (error instanceof TypeError && error.message.includes("fetch failed")) {
|
if (error instanceof TypeError && error.message.includes("fetch failed")) {
|
||||||
const cause = error.cause as AggregateError;
|
const cause = error.cause as AggregateError;
|
||||||
|
|||||||
Reference in New Issue
Block a user