Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
YM447447
Contributor
Contributor

am getting Illegal character in query in tRestclient component

Hi,

I am trying to integrate following URL with tRestClient but unable to succeed.

https://myrrelated.data.net/API2.ashx/GetPersonalDetails? {"personId":"89504_7"}

I have to pass key as a query since i don't have any key and value pair in my target url..

Getting following exception after passing below url

"

https://myrrelated.data.net/API2.ashx/GetPersonalDetails

? "+ java.net.URLEncoder.encode("{\"personId\":\"89504_7\"}","UTF-8")

Caused by: java.net.URISyntaxException: Illegal character in query at index 60:

https://myrelated.data.net/API2.ashx/GetPersonalDetails? {"

personId

":"89504_7"}

Kindly help me .

Thanks,

Labels (2)
5 Replies
manodwhb
Champion II
Champion II

@Masthanaiah Yadlapudi​ , when use are using as the below link from postman is it working?

 

https://myrrelated.data.net/API2.ashx/GetPersonalDetails? {"personId":"89504_7"}

YM447447
Contributor
Contributor
Author

 

@Manohar B​ Thanks a lot for looking the issue.

 

Yes . Its working fine. Attached screen shot for your reference. Only having issue with talend integration. Please provide me if you have any inputs for the same

 

Thanks in Advance.

 

manodwhb
Champion II
Champion II

@Masthanaiah Yadlapudi​ , pass the same URL in tRestClient component and check.

YM447447
Contributor
Contributor
Author

0693p000009HgL8AAK.png0693p000009HgL3AAK.png0693p000009HgKyAAK.png0693p000009HgKtAAK.png0693p000009HgKoAAK.png0693p000009HgKjAAK.png

 

@Manohar B I have tried with the same URL i got quotes compiler error then i have added \ in between quotes then i got illegal character in query exception in run time. Attached all screen shots for your reference.

 

Thanks In Advance.

 

 

 

 

 

 

 

 

YM447447
Contributor
Contributor
Author

I have resolved this issue using tHttpRequest component. Thanks