mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
Disable Failing Webhooks (#11966)
* todo comment * add failures field to webhooks and sanitize * implement logic * use update instead of save * specify timeout and maximum number of retries * add tests
This commit is contained in:
@@ -248,7 +248,7 @@ api.exportUserAvatarPng = {
|
||||
|
||||
let response;
|
||||
try {
|
||||
response = await got.head(s3url);
|
||||
response = await got.head(s3url); // TODO add timeout and retries
|
||||
} catch (gotError) {
|
||||
// If the file does not exist AWS S3 can return a 403 error
|
||||
if (gotError.code !== 'ENOTFOUND' && gotError.statusCode !== 404 && gotError.statusCode !== 403) {
|
||||
|
||||
Reference in New Issue
Block a user