You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Butchi Raju <bu...@gmail.com> on 2023/02/23 04:53:15 UTC

Invoke Rest API using apache camel spring boot.

Hi,


I would like to send data from the get api request ("
https://gorest.co.in/public/v2/users")
to the file using apache camel spring boot.

Ex: from("https://gorest.co.in/public/v2/users")
.to("file:C:/textfile.txt")
.log("${body}");

The code works for http on a different url but not for https.

I am getting this error message :

"sun.security.privider.certpath.suncertpathbuilderecxeption: unable to find
valid certification path to requested target ".

Please advise what steps do i need to take.