From 98d2e5ab020636d70e65f53a7439cbfb09f4ce94 Mon Sep 17 00:00:00 2001 From: juslesan Date: Wed, 14 Jan 2026 18:02:07 +0200 Subject: [PATCH] wait for acme record to propagate --- packages/autocertifier-server/src/AutoCertifierServer.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/autocertifier-server/src/AutoCertifierServer.ts b/packages/autocertifier-server/src/AutoCertifierServer.ts index 57a0b3819d..f07ab3b1a3 100644 --- a/packages/autocertifier-server/src/AutoCertifierServer.ts +++ b/packages/autocertifier-server/src/AutoCertifierServer.ts @@ -4,7 +4,7 @@ import { RestInterface } from './RestInterface' import { RestServer } from './RestServer' import { v4 } from 'uuid' import { CertifiedSubdomain, Session } from '@streamr/autocertifier-client' -import { Logger } from '@streamr/utils' +import { Logger, wait } from '@streamr/utils' import { CertificateCreator } from './CertificateCreator' import { runStreamrChallenge } from './StreamrChallenger' import 'dotenv/config' @@ -200,6 +200,7 @@ export class AutoCertifierServer implements RestInterface, ChallengeManager { logger.trace(`Creating acme challenge for ${fqdn} with value ${value} to Route53`) await this.route53Api.upsertRecord(RRType.TXT, '_acme-challenge' + '.' + fqdn, `"${value}"`, 300) } + await wait(15000) } // ChallengeManager implementation