Browse Source

v3.0.9: bugfix error handling

pull/1/head v3.0.9
AJ ONeal 4 years ago
parent
commit
aa324e2a29
  1. 9
      acme.js
  2. 29
      maintainers.js
  3. 2
      package-lock.json
  4. 2
      package.json

9
acme.js

@ -775,7 +775,14 @@ ACME._postChallenge = function(me, options, kid, auth) {
// REMOVE DNS records as soon as the state is non-processing
// (valid or invalid or other)
try {
options.challenges[auth.type].remove({ challenge: auth });
options.challenges[auth.type]
.remove({ challenge: auth })
.catch(function(err) {
err.action = 'challenge_remove';
err.altname = auth.altname;
err.type = auth.type;
ACME._notify(me, options, 'error', err);
});
} catch (e) {}
if ('valid' === resp.body.status) {

29
maintainers.js

@ -33,8 +33,8 @@ M.init = function(me) {
};
M._init = function(me, tz, locale) {
// prevent a stampede from misconfigured clients in an eternal loop
setTimeout(function() {
// prevent a stampede from misconfigured clients in an eternal loop
me.request({
method: 'GET',
url: 'https://api.rootprojects.org/api/nonce',
@ -60,20 +60,19 @@ M._init = function(me, tz, locale) {
locale: locale
}
};
return me
.request(req)
.catch(function(err) {
if (me.debug) {
console.error(
'error adding maintainer to support notices:'
);
console.error(err);
}
})
.then(function(/*resp*/) {
oldCollegeTries[me.maintainerEmail] = true;
//console.log(resp);
});
return me.request(req);
})
.catch(function(err) {
if (me.debug) {
console.error(
'error adding maintainer to support notices:'
);
console.error(err);
}
})
.then(function(/*resp*/) {
oldCollegeTries[me.maintainerEmail] = true;
//console.log(resp);
});
}, me.__timeout || 3000);
};

2
package-lock.json

@ -1,6 +1,6 @@
{
"name": "@root/acme",
"version": "3.0.8",
"version": "3.0.9",
"lockfileVersion": 1,
"requires": true,
"dependencies": {

2
package.json

@ -1,6 +1,6 @@
{
"name": "@root/acme",
"version": "3.0.8",
"version": "3.0.9",
"description": "Free SSL certificates for Node.js and Browsers. Issued via Let's Encrypt",
"homepage": "https://rootprojects.org/acme/",
"main": "acme.js",

Loading…
Cancel
Save