Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
madhav_talend
Contributor
Contributor

Bypass URL encoding

Hi Team ,  

    I am trying to retrive data from API using TRest, Client.

The URL contains Criteria to filter out records as mentioned example,

 

When I encode the filter criteria, the result is not recognized by the  API, and.it retrives all records.

If not encoded  tRest components  errors out as  illegal character. Let me know, if any once faced these issue.

 

 URL :https:WEbportal.com0683p000009MAB6.pngort/xyz/facts?tkn=111;criteria=={"and":[["valid_to","=",'2020-12-31T23:59:59Z'],{"or":[["name","=",'java.exe'],["name","=",'android']]}]};countSwitch=3

Labels (3)
2 Replies
Anonymous
Not applicable

can you try to escape the double quotes in the URL,
"https:WEbportal.comSmiley Tongueort/xyz/facts?tkn=111;criteria=={\"and\":[[\"valid_to\",\"=\",'2020-12-31T23:59:59Z'],{\"or\":[[\"name\",\"=\",'java.exe'],[\"name\",\"="\,'android']]}]};countSwitch=3"
madhav_talend
Contributor
Contributor
Author

It still states the same error,  Caused by: java.net.URISyntaxException: Illegal character in query at index 127: