Merge branch 'cuttingedge-merge-ServerV2' into cuttingedge

This commit is contained in:
Glax 2025-01-15 22:53:47 +01:00
commit 1701881f4b

View File

@ -76,12 +76,12 @@ internal class ChromiumDownloadClient : DownloadClient
IResponse response; IResponse response;
try try
{ {
response = page.GoToAsync(url, WaitUntilNavigation.Networkidle0).Result; response = page.GoToAsync(url, WaitUntilNavigation.Load).Result;
Log("Page loaded."); Log($"Page loaded. {url}");
} }
catch (Exception e) catch (Exception e)
{ {
Log($"Could not load Page:\n{e.Message}"); Log($"Could not load Page {url}\n{e.Message}");
page.CloseAsync(); page.CloseAsync();
return new RequestResult(HttpStatusCode.InternalServerError, null, Stream.Null); return new RequestResult(HttpStatusCode.InternalServerError, null, Stream.Null);
} }