Dear All,
I am new to restSharp and learning very basic of it. While creating a post request i am facing below error;
CreateUsersTest
Source: PostTest.cs line 15
Duration: 2.4 sec
Message:
Test method RestSharpAPITest.PostTest.CreateUsersTest threw exception:
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
Stack Trace:
JsonTextReader.ParseValue()
JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
Helper.GetContent[T](RestResponse response) line 44
UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
Demo.CreateUserTest(Object payload) line 32
PostTest.CreateUsersTest() line 22
I have attached a screnshot of my code written, please help me in resolving the issue. Thank you in advance.
with Best Regards,
Vaibhav Ranjan