These are chat archives for Mashape/unirest-java

Feb 2016
Phil Winder
Feb 09 2016 10:31
Hi guys. What would you suggest is best practise for mocking Unirest?
Feb 09 2016 12:22

Hi there. I'm having problems with Unirest. I try to get data (from a REST API) from a service behind https. But I get the following error:

com.mashape.unirest.http.exceptions.UnirestException: PKIX path building failed: unable to find valid certification path to requested target
    at com.mashape.unirest.http.HttpClientHelper.request(
    at com.mashape.unirest.request.BaseRequest.asJson(

The https certificate is created using letsencrypt

shashi ranjan
Feb 09 2016 21:38
@Lokikol seems like your Truststore missing CA certificate. Import the target CA cert properly.