mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-08 02:13:34 +00:00
ignore appsec policy update notification command error
This commit is contained in:
@@ -108,7 +108,7 @@ const internalNginxOpenappsec = {
|
|||||||
// Return the notifyPolicyUpdate promise chain
|
// Return the notifyPolicyUpdate promise chain
|
||||||
// notify openappsec to apply the policy
|
// notify openappsec to apply the policy
|
||||||
return internalNginxOpenappsec.notifyPolicyUpdate().catch((errorMessage) => {
|
return internalNginxOpenappsec.notifyPolicyUpdate().catch((errorMessage) => {
|
||||||
console.error('Error:', errorMessage);
|
// console.error('Error:', errorMessage);
|
||||||
const errorMessageForUI = `Error: Policy couldn’t be applied, open-appsec-agent container is not responding.
|
const errorMessageForUI = `Error: Policy couldn’t be applied, open-appsec-agent container is not responding.
|
||||||
Check if open-appec-agent container is running, then apply open-appsec Configuration
|
Check if open-appec-agent container is running, then apply open-appsec Configuration
|
||||||
again by clicking here:
|
again by clicking here:
|
||||||
@@ -116,10 +116,6 @@ const internalNginxOpenappsec = {
|
|||||||
|
|
||||||
return Promise.reject(new Error(errorMessageForUI));
|
return Promise.reject(new Error(errorMessageForUI));
|
||||||
});
|
});
|
||||||
})
|
|
||||||
.catch((err) => {
|
|
||||||
logger.error('Error generating openappsec config:', err);
|
|
||||||
throw err; // Propagate the error to the caller
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -157,7 +153,7 @@ const internalNginxOpenappsec = {
|
|||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
logger.error('Error deleting openappsec config:', err);
|
logger.error('Error deleting openappsec config:', err);
|
||||||
throw err; // Propagate the error to the caller
|
// throw err; // Propagate the error to the caller
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -238,9 +234,9 @@ const internalNginxOpenappsec = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (lastError) {
|
// if (lastError) {
|
||||||
throw lastError;
|
// throw lastError;
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -100,7 +100,8 @@ const internalProxyHost = {
|
|||||||
return row;
|
return row;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
throw new error.ConfigurationError(err.message);
|
console.log("Error generating openappsec config: " + err);
|
||||||
|
// throw new error.ConfigurationError(err.message);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.then((row) => {
|
.then((row) => {
|
||||||
@@ -184,7 +185,8 @@ const internalProxyHost = {
|
|||||||
return row;
|
return row;
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
throw new error.ConfigurationError(err.message);
|
console.log("Error generating openappsec config: " + err);
|
||||||
|
// throw new error.ConfigurationError(err.message);
|
||||||
});
|
});
|
||||||
})
|
})
|
||||||
.then((row) => {
|
.then((row) => {
|
||||||
|
Reference in New Issue
Block a user