I'm an idiot, forgot to null the cookies

This commit is contained in:
barelyprofessional
2024-08-10 01:55:58 +08:00
parent 6e0c100e11
commit 946a7679ee

View File

@@ -108,6 +108,7 @@ public class Rainbet : IDisposable
if (response.Headers.Contains("cf-mitigated"))
{
_logger.Error("Hit a Cloudflare challenge, cookies expired? Marking cookies as null so it'll refresh next time we run");
_cookies = null;
throw new Exception("Cloudflare challenged");
}
var bets = await response.Content.ReadFromJsonAsync<List<RainbetBetHistoryModel>>(cancellationToken: _cancellationToken);