Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Tnerkar1622809383
Contributor
Contributor

Getting Error in using contexts in trestclient queri parameter

Hii,

I am trying to retrieve data from webservice using trestclient. I want to use contexts in parameters of component trestclient. I have tried all the ways. Please see the screenshots attached. Anyone have a good solution?

Labels (3)
12 Replies
gjeremy1617088143

Hi, two things :

  • could you send the full url you want with paremeters in ?
  • copy the relative path in the url (it work it's a bug from trestclient set the url and relative path with the full url)
Tnerkar1622809383
Contributor
Contributor
Author

HI, thanks for replying

https://cdn-api.co-vin.in/api/v2/appointment/sessions/public/findByDistrict?district_id=512&date=31-...

this is the full URL.

I tried with ur 2nd option, not working, same error.

gjeremy1617088143

Does this one work on postman ?

gjeremy1617088143

wich type of authentification do you use to access to the api ?

 

Tnerkar1622809383
Contributor
Contributor
Author

Authentication is not needed​

gjeremy1617088143

cause when i try it on a webbrowser i received a forbidden message

 

Tnerkar1622809383
Contributor
Contributor
Author

In talend it's working without context. But I want to implement with context. ​

gjeremy1617088143

The HTTP 403 Forbidden

client error status response code indicates that the server understood the request but refuses to authorize it.

Tnerkar1622809383
Contributor
Contributor
Author

So no way to use context? ​