Skip to content

Commit

Permalink
Investigating 6775-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
SARANYA authored and SARANYA committed Oct 13, 2023
1 parent 218d0c8 commit 6920c93
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions api/CcsSso.Core.Service/Wrapper/WrapperApiService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
using CcsSso.Domain.Constants;
using CcsSso.Domain.Exceptions;
using Newtonsoft.Json;
using System;
using System.Net;
using System.Net.Http;
using System.Text;
Expand All @@ -21,10 +22,13 @@ public WrapperApiService(IHttpClientFactory httpClientFactory)
public async Task<T> GetAsync<T>(WrapperApi wrapperApi, string url, string cacheKey, string errorMessage)
{
var client = GetHttpClient(wrapperApi);

Console.WriteLine($"Investigation-6775-URL-Response-client - {client.BaseAddress}");
Console.WriteLine($"Investigation-6775-URL-Response-url - {url}");
var response = await client.GetAsync(url);
var uri = response.RequestMessage.RequestUri.AbsoluteUri;
Console.WriteLine($"Investigation-6775-URL-response-statuscode - {response.StatusCode},{uri}");
var responseString = await response.Content.ReadAsStringAsync();

if (response.IsSuccessStatusCode)
{
var result = JsonConvert.DeserializeObject<T>(responseString);
Expand Down

0 comments on commit 6920c93

Please sign in to comment.