From 1ae2e07883d0bc4fc9ad32ba4e685439e492cf89 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Tue, 15 Dec 2015 14:25:23 -0800 Subject: [PATCH] leave note on 429 error code --- src/cert/acme.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cert/acme.js b/src/cert/acme.js index 7fafbd2ed..c8faf8b2c 100644 --- a/src/cert/acme.js +++ b/src/cert/acme.js @@ -270,6 +270,7 @@ function signCertificate(accountKeyPem, domain, csrDer, callback) { sendSignedRequest(CA_ORIGIN + '/acme/new-cert', accountKeyPem, JSON.stringify(payload), function (error, result) { if (error) return callback(new AcmeError(AcmeError.EXTERNAL_ERROR, 'Network error when signing certificate: ' + error.message)); + // 429 means we reached the cert limit for this domain if (result.statusCode !== 201) return callback(new AcmeError(AcmeError.EXTERNAL_ERROR, util.format('Failed to sign certificate. Expecting 201, got %s %s', result.statusCode, result.text))); var certUrl = result.headers.location;