Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Hi All,
I am creating a service within a "Thing" and the service tries to get data from a REST API endpoint. I am using "ContentLoaderFunctions" (GetJSON) to send the GET request to the endpoint. It works well, when the URL doesn't have any special characters.
But it throws an error "llegal character in query at index 57: https://myserver/webapi/resource?path=myparameter"
As anyone faced this issue? Is there any function available to encode the URL ?
Regards,
Jaison Rodrigues
did you check the URLEncoder?
Thanks,
Sami
Yes. I tried to use it but it gives me error. Not sure if I am using it correctly since I am using JAVA syntax.
The platform does not accept "\" and considers it as an "Illegal Character". "?, &, -, =" works fine. I replaced "\" with "%5C" and it worked.
Hi @jaison.
If you are comfortable with the solution you found, please mark it as the Accepted Solution for the benefit of others with the same question.
Regards.
--Sharon