Hi All,
I am getting error during the API automation in Deserialize json activity as below:
Deserialize JSON: Unexpected character encountered while parsing value: <. Path ‘’, line 0, position 0. in UiPath
can someone help me on this??
Hi All,
I am getting error during the API automation in Deserialize json activity as below:
Deserialize JSON: Unexpected character encountered while parsing value: <. Path ‘’, line 0, position 0. in UiPath
can someone help me on this??
Hi,
For now, can you check content of the response using Break point and/or LogMessage etc? It may not be json format.
Regards,
Hi @naveen.s
Check whether the response is in Json format or in xml format.
If it is in xml format you have to use deserialize xml activity
Hope this helps!
It is coming in the Html format
You can use Jason editor online and paste your json there
It will highlight the issue present in the json format @naveen.s
HI,
Can you share it? It may be error message.
Regards,
.uipathPlatform::-webkit-scrollbar{display:none}.uipathPlatform{-ms-overflow-style:none}body.light{background-color:#fff}body.dark{background-color:#182027}UiPathYou need to enable JavaScript to run this app.
Check if the status code is proper that is 200 and see whether the request is successful
Hi,
What endpoint do you request to? Is it Orchestrator? If so, it seems wrong Endpoint URL.
Regards,
@naveen, Looks like the endpoint isn’t pointing to the right URL. Can you check the same in postman if it is working or use swagger to check… If it works copy the curl and import the same.
Hi,
It seems extra whitespaces in your endpoint URL. Can you try to remove them?
Also, as ROPC is not recommended, it may better to use OAuth as the following?
Regards,
Can you share the parameters screenshot you passed?
“Accept”: “application/json”,
“Content-Type”: “application/json” //type:httpHeader
Add these and try
Can you please show me inside the activity??