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년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠