mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 15:27:46 +00:00
Return more msg in challenge
This commit is contained in:
@@ -76,7 +76,9 @@ export const pkiAcmeChallengeServiceFactory = ({
|
|||||||
// challenge validation at the same time, it should be fine.
|
// challenge validation at the same time, it should be fine.
|
||||||
const challengeResponse = await fetch(challengeUrl, { signal: AbortSignal.timeout(timeoutMs) });
|
const challengeResponse = await fetch(challengeUrl, { signal: AbortSignal.timeout(timeoutMs) });
|
||||||
if (challengeResponse.status !== 200) {
|
if (challengeResponse.status !== 200) {
|
||||||
throw new BadRequestError({ message: "ACME challenge response is not 200" });
|
throw new AcmeIncorrectResponseError({
|
||||||
|
message: `ACME challenge response is not 200: ${challengeResponse.status}`
|
||||||
|
});
|
||||||
}
|
}
|
||||||
const challengeResponseBody = await challengeResponse.text();
|
const challengeResponseBody = await challengeResponse.text();
|
||||||
const thumbprint = challenge.auth.account.publicKeyThumbprint;
|
const thumbprint = challenge.auth.account.publicKeyThumbprint;
|
||||||
|
|||||||
Reference in New Issue
Block a user