Deserialize Json - always getting error when passing output variable of http request activity

Hi All,

Im very new to UIpath. I am facing an error while deserailizing the output from an api to read its values. It is a simple json message after login, from where i need to get the access token:
unexpected character encountered while parsing value

RemoteException wrapping Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path ‘’, line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonTextReader.Read()

this is the error.

I put the message directly in the deserialize activity and it works! but when stored as variable in the http request output getting this error. Unable to proceed. Please help!!!

@Suprajapm
May we ask you to show us the settings from HTTP Request.

Especially on following setting we are interested:
grafik

Maybe the response is XML. Feel free to debug the bot, set some breakpoint after HTTP Request and inspect the result / response

Yes you are right. The accept format type is ANY. the response is xml. Thank you for pointing it out…!! I kept confusing it with another api response and kept using json.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.