diff --git a/Wabbajack.Server/DataModels/AuthorFiles.cs b/Wabbajack.Server/DataModels/AuthorFiles.cs index 74726b9f..28eca7be 100644 --- a/Wabbajack.Server/DataModels/AuthorFiles.cs +++ b/Wabbajack.Server/DataModels/AuthorFiles.cs @@ -120,9 +120,12 @@ public class AuthorFiles private async Task PrimeDefinition(RelativePath name) { - var uri = _baseUri + $"{name}/definition.json.gz"; - using var response = await _httpClient.GetAsync(uri); - return await ReadDefinition(await response.Content.ReadAsStreamAsync()); + return await CircuitBreaker.WithAutoRetryAllAsync(_logger, async () => + { + var uri = _baseUri + $"{name}/definition.json.gz"; + using var response = await _httpClient.GetAsync(uri); + return await ReadDefinition(await response.Content.ReadAsStreamAsync()); + }); } private async IAsyncEnumerable AllObjects()