title: SODA API - Unexpected character encountered while parsing value: <. Path '', line 0, position 0
body: <p>I am using below code snippet trying to access below dataset using SODA API.</p>
  
  <pre><code>    **var client = new SodaClient("https://data.medicare.gov", "token code","username","password");
      var metadata = client.GetMetadata("mj5m-pzi6");**
  </code></pre>
  
  <p>I am getting the below exception message. Any pointers in resolving the below issue would be a great help. Thank you.</p>
  
  <pre><code>"Message": "An error has occurred.",
    "ExceptionMessage": "Couldn't deserialize the (JSON) response into an instance of type SODA.ResourceMetadata.",
    "ExceptionType": "System.InvalidOperationException",
    "StackTrace": "   at SODA.SodaRequest.ParseResponse[TResult]()\r\n   at SODA.SodaClient.read[TResult](Uri uri, SodaDataFormat dataFormat)\r\n   at SODA.SodaClient.GetMetadata(String resourceId)\r\n   at POC_GetMedicareGovData.Controllers.ProviderController.Get()\r\n   at lambda_method(Closure , Object , Object[] )\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.&lt;&gt;c__DisplayClass6_1.&lt;GetExecutor&gt;b__3(Object instance, Object[] methodParameters)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ActionExecutor.Execute(Object instance, Object[] arguments)\r\n   at System.Web.Http.Controllers.ReflectedHttpActionDescriptor.ExecuteAsync(HttpControllerContext controllerContext, IDictionary`2 arguments, CancellationToken cancellationToken)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ApiControllerActionInvoker.&lt;InvokeActionAsyncCore&gt;d__1.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Controllers.ActionFilterResult.&lt;ExecuteAsync&gt;d__5.MoveNext()\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at System.Web.Http.Dispatcher.HttpControllerDispatcher.&lt;SendAsync&gt;d__15.MoveNext()",
    "InnerException": {
      "Message": "An error has occurred.",
      "ExceptionMessage": "Unexpected character encountered while parsing value: &lt;. Path '', line 0, position 0.",
      "ExceptionType": "Newtonsoft.Json.JsonReaderException",
      "StackTrace": "   at Newtonsoft.Json.JsonTextReader.ParseValue()\r\n   at Newtonsoft.Json.JsonTextReader.Read()\r\n   at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)\r\n   at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)\r\n   at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)\r\n   at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)\r\n   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)\r\n   at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)\r\n   at SODA.SodaRequest.ParseResponse[TResult]()"
  </code></pre>