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 ?
Could you please show us the full stack trace?
Is there any port already occupied on your machine?
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 ?