Hello team, I don't know if it's the right channel...
# talk-kratos
e
Hello team, I don't know if it's the right channel to raise one issue I am facing: I am using the tosession to call the whoami API to get session detail. I am using the dotnet SDK and the call is working successful ( HTTP status code 200) but the session object is null:
Copy code
public static void Main()
        {
            Configuration config = new Configuration();
            config.BasePath = "<https://playground.projects.oryapis.com>";
            var cookie = "XX"; 
            try
            {
                // Check Who the Current HTTP Session Belongs To
                ClientSession result = apiInstance.ToSession(null, cookie, null);
                Debug.WriteLine(result);
            }
            catch (ApiException  e)
            {
                Debug.Print("Exception when calling FrontendApi.ToSession: " + e.Message );
                Debug.Print("Status Code: "+ e.ErrorCode);
                Debug.Print(e.StackTrace);
            }
Result object is null. I used one http call and it's working with success when getting the session detail. Thank you for your support. 👍