From ea806fcd8e6a4cc65605a93f22c4dbf8702ebd87 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Wed, 11 Oct 2023 08:44:48 +0100 Subject: [PATCH 1/2] Check for HTTP 200 when checking deploy mirrors --- Bloxstrap/RobloxDeployment.cs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Bloxstrap/RobloxDeployment.cs b/Bloxstrap/RobloxDeployment.cs index cdeda888..5ce4b199 100644 --- a/Bloxstrap/RobloxDeployment.cs +++ b/Bloxstrap/RobloxDeployment.cs @@ -12,6 +12,7 @@ public static class RobloxDeployment { "https://setup.rbxcdn.com", "https://setup-ak.rbxcdn.com", + "https://roblox-setup.cachefly.net", "https://s3.amazonaws.com/setup.roblox.com" }; @@ -32,7 +33,11 @@ public static string BaseUrl try { - App.HttpClient.GetAsync($"{attemptedUrl}/version").Wait(); + var response = App.HttpClient.GetAsync($"{attemptedUrl}/version").Result; + + if (!response.IsSuccessStatusCode) + throw new HttpResponseException(response); + App.Logger.WriteLine(LOG_IDENT, "Connection successful!"); _baseUrl = attemptedUrl; break; @@ -46,7 +51,7 @@ public static string BaseUrl } if (string.IsNullOrEmpty(_baseUrl)) - throw new Exception("Unable to find an accessible Roblox deploy mirror!"); + throw new Exception("Could not find an accessible Roblox deployment mirror, likely due to a bad internet connection. Please launch again."); } return _baseUrl; From 58cb431628ecbb59aaa402854c950c2ec4eb2234 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Wed, 11 Oct 2023 12:14:57 +0100 Subject: [PATCH 2/2] Bump version --- Bloxstrap/Bloxstrap.csproj | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bloxstrap/Bloxstrap.csproj b/Bloxstrap/Bloxstrap.csproj index 0b7d2f35..8ce13881 100644 --- a/Bloxstrap/Bloxstrap.csproj +++ b/Bloxstrap/Bloxstrap.csproj @@ -7,8 +7,8 @@ true True Bloxstrap.ico - 2.5.2 - 2.5.2.0 + 2.5.3 + 2.5.3.0 app.manifest