From 5789b3658a4da9f306ce3a031c3edf1cb2891d54 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Thu, 16 Feb 2023 23:22:09 +0000 Subject: [PATCH] sockeye diagnosis, no actual production code changes --- source/WinFormApp/GlobalFetchKey.cs | 35 ++++++++++++++++------------- 1 file changed, 20 insertions(+), 15 deletions(-) diff --git a/source/WinFormApp/GlobalFetchKey.cs b/source/WinFormApp/GlobalFetchKey.cs index f232127..1524bc3 100644 --- a/source/WinFormApp/GlobalFetchKey.cs +++ b/source/WinFormApp/GlobalFetchKey.cs @@ -43,7 +43,12 @@ namespace AyaNova return; } +#if(DEBUG) + string sUrl = "https://sockeye.ayanova.com/fetch/" + sFetchCode + "/" + sEmail; + //string sUrl = "http://192.168.1.253:7676/fetch/" + sFetchCode + "/" + sEmail; +#else string sUrl = "https://rockfish.ayanova.com/fetch/" + sFetchCode + "/" + sEmail; +#endif //string sUrl = "https://rockfish.gztechworks.com/fetch/" + sFetchCode + "/" + sEmail; //TODO: maybe alt url in case?? or fuck it wont' matter with v8 coming anyway @@ -145,22 +150,22 @@ namespace AyaNova } catch (System.Net.WebException wex) { - string s= wex.Message; - if (s.Contains("404")) - { - MessageBox.Show("No license was found for the Fetch address and Fetch code provided.\r\n\r\n" + - "This can happen if either address or code was entered incorrectly or \r\n" + - "this can also happen if the key has already been fetched.\r\n\r\n" + - "Check your entry and try again or contact us at support@ayanova.com", "License not found"); + string s = wex.Message; + if (s.Contains("404")) + { + MessageBox.Show("No license was found for the Fetch address and Fetch code provided.\r\n\r\n" + + "This can happen if either address or code was entered incorrectly or \r\n" + + "this can also happen if the key has already been fetched.\r\n\r\n" + + "Check your entry and try again or contact us at support@ayanova.com", "License not found"); - } - else - { - CopyableMessageBox m = new CopyableMessageBox("An unexpected network error occurred, please contact support@ayanova.com with these details:\r\n"+wex.Message); - m.BringToFront(); - m.ShowDialog(); - m.Dispose(); - } + } + else + { + CopyableMessageBox m = new CopyableMessageBox("An unexpected network error occurred, please contact support@ayanova.com with these details:\r\n" + wex.Message); + m.BringToFront(); + m.ShowDialog(); + m.Dispose(); + } } catch (Exception ex) {