diff --git a/api/Controllers/DashboardController.cs b/api/Controllers/DashboardController.cs index 9ea8b23f..6b1dd57d 100644 --- a/api/Controllers/DashboardController.cs +++ b/api/Controllers/DashboardController.cs @@ -135,7 +135,7 @@ public async Task> GetMonthlySchedule(int year, i catch (Exception ex) { // Log the exception - return StatusCode(500, "Internal server error " + ex.InnerException.ToString()); + return StatusCode(500, "Internal server error"); } } diff --git a/pcss-client/Clients/JudicialCalendarsServicesClient.cs b/pcss-client/Clients/JudicialCalendarsServicesClient.cs index c5a19d28..5ea792b0 100644 --- a/pcss-client/Clients/JudicialCalendarsServicesClient.cs +++ b/pcss-client/Clients/JudicialCalendarsServicesClient.cs @@ -28,7 +28,7 @@ public async Task> JudicialCalendarsGetAsync(strin { var requestUrl = $"https://wsgw.test.jag.gov.bc.ca/courts/catsAPI/api/v2/calendar/judges?locationIds={locationId}&startDate={startDate:dd-MMM-yyyy}&endDate={endDate:dd-MMM-yyyy}"; var request = new HttpRequestMessage(HttpMethod.Get, requestUrl); - request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes("CATS_API:4R,;UTGFm6ff"))); + request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes("Login:Password"))); var response = await _httpClient.SendAsync(request, cancellationToken); response.EnsureSuccessStatusCode(); diff --git a/pcss-client/Clients/PCSSLocationsServicesClient.cs b/pcss-client/Clients/PCSSLocationsServicesClient.cs index 00cc0243..a67a66c7 100644 --- a/pcss-client/Clients/PCSSLocationsServicesClient.cs +++ b/pcss-client/Clients/PCSSLocationsServicesClient.cs @@ -29,7 +29,7 @@ public async Task> LocationsGetAsync(System.Threading. var requestUrl = "https://wsgw.test.jag.gov.bc.ca/courts/catsAPI/api/locations/"; var request = new HttpRequestMessage(HttpMethod.Get, requestUrl); - request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes("CATS_API:4R,;UTGFm6ff"))); + request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(System.Text.Encoding.ASCII.GetBytes("Login:Password"))); var response = await _httpClient.SendAsync(request, cancellationToken); response.EnsureSuccessStatusCode();