Fetching Certificate fails in dry run build

0

I am trying to read a certificate from www.amazontrust.com/repository/AmazonRootCA1.pem via creating a URL and opening a inputStream. Local builds succesfully passes but on Dry Run build it gives exception [junit] Caused by: java.net.UnknownHostException: www.amazontrust.com What can be done to avoid this error or cam we hardcode the CA in our code directly

已提問 2 年前檢視次數 205 次
1 個回答
0

Hello,

UnknownHostException indicates that the IP address of a hostname could not be determined. It can happen because of a typo in the hostname. Another possible reason for UnknownHostException is DNS propagation delay or DNS misconfiguration.

Here's the below link for details regarding the UnknownHostexceptionerror and its various reasons and steps to resolving the same. All the steps are mentioned in details for you to perform & check on what end the issue is.

Link- https://aws.amazon.com/premiumsupport/knowledge-center/route-53-fix-unknownhostexception-error/ -- [1]

Hope this helps. I would request you to click Accept answer if it did.

profile pictureAWS
支援工程師
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南