<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D50Z00008G7VU8SANOkta Classic EngineIntegrationsAnswered2025-06-14T10:29:51.000Z2015-12-17T01:56:11.000Z2017-04-24T18:28:43.000Z
.NET SDK: AuthClient.Execute
Hello.

I am using the AuthClient.Execute Method (http://developer.okta.com/docs/sdk/core/csharp_api_sdk/html/2fa49a0f-1caa-3ae2-4a71-07fed35a1f03.htm) to have a SMS code sent to my mobile device as described in the API (http://developer.okta.com/docs/api/resources/factors.html#verify-sms-factor)

however the method is throwing an error even though the SMS code is sent to my device! So it works (i get the code) but it throws an exception which I'm currently trapping in my code. The error is:

 

"Unable to deserialize the response properly"

at Okta.Core.Utils.Deserialize[T](String value)\r\n   at Okta.Core.Utils.Deserialize[T](HttpResponseMessage response)\r\n   at Okta.Core.Clients.AuthClient.Execute(String stateToken, Uri uri, ApiObject apiObject)\r\n   at Okta.Core.Clients.AuthClient.Execute(String stateToken, Link link, ApiObject apiObject)

 


This question is closed.
Loading
.NET SDK: AuthClient.Execute