Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi experts
I have built the job for Rest API URL and I am using tRest_Client to read off my API url.
However, when it cannot find Next URL then it just throws 404 HTTP not found. Is there any way I can handle these errors properly?
Thanks
Harshal.
@mbocquet: Thanks for your quick reply.
Written a java code which keeps moving to next URL until it finds one. And for a test I am just printing that message on the screen.
What I cannot digest is for particular course IDs when it cannot find next url then it shows 404 http error for not for all.
@mbocquet: Yes you are right. I ended up cleaning up crappy data and that created correct URL for me in the result.
Thanks for your response.
@Shicong Hong , @Xiaodi Shi , still on this topic:
I'm catching both response and error messages from API request. But what about Java exceptions from the API, like socket timeout exception? Let's say that I got a read time out, which is a java exception, how can I caught this in the job (I know tlogcather does that) and do something after it, let'say: repeat the request or sleep some seconds?