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: 
Anonymous
Not applicable

trestrequest not working

Hi,

 

I have one API which supports GET with no parameters

 

Its worked with trest and trestclient successfully.

 

But when I use with trestrequest it always shows error like this

 

java.net.BindException: Cannot assign requested address: bind java.net.BindException: Cannot assign requested address: bind

 

Here is my API's url

http://www.mocky.io/v2/5a1fcfa7310000b316c0afbd  (You can also try)

 

Any suggestions please ?

Labels (3)
3 Replies
Anonymous
Not applicable
Author

Hello,

Could you please show us the full stack trace?

Is there any port already occupied on your machine?

Best regards

Sabrina

Anonymous
Not applicable
Author

Hi Sabrina

 

The thing is the API am calling is not deployed on the server from where am calling. And according the docs, Its says tRestrequest is a server based component.

 

So tell me please am allowed to call API whose webserver sits on another location using this component ?

Anonymous
Not applicable
Author

Hi
tRestRequest is a server based component, it is used to build a Rest Web Service, it is not a Rest client tool. To call a Rest Web Service, you should use tRest or tRestClient as you did.

Regards
Shong