diff --git a/src/services/Aquarius.ts b/src/services/Aquarius.ts index b84bdad62..6aa8c5dc5 100644 --- a/src/services/Aquarius.ts +++ b/src/services/Aquarius.ts @@ -64,6 +64,11 @@ export class Aquarius { maxRetries: number = 100 ): Promise { let tries = 0 + // lets have a cap to prevent possible abuse as well + if (maxRetries > 500) { + LoggerInstance.warn('Max Limit exceeded, defaulting to 500 retries.') + maxRetries = 500 + } do { try { const path = this.aquariusURL + '/api/aquarius/assets/ddo/' + did