# Strange intermittent UnknownHostException being thrown by Java Kit API

**URL:** <https://community.prismic.io/t/strange-intermittent-unknownhostexception-being-thrown-by-java-kit-api/3470>\
**Category:** Developing with Prismic\
**Tags:** java\
**Created:** [January 7, 2021, 9:11am UTC](https://community.prismic.io/t/strange-intermittent-unknownhostexception-being-thrown-by-java-kit-api/3470 "2021-01-07T09:11:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![register](https://avatars.discourse-cdn.com/v4/letter/r/71e660/32.png) [@register](https://community.prismic.io/u/register)\
**Post date:** [January 7, 2021, 9:11am UTC](https://community.prismic.io/t/strange-intermittent-unknownhostexception-being-thrown-by-java-kit-api/3470/1 "2021-01-07T09:11:10Z")

</div>

Hi I've got a really strange issue with the Java Kit io.prismic:java-kit:1.6.3.

We have one page on our site ([https://www.planwithgrace.com/funeral-plan/essential-plan/](https://www.planwithgrace.com/funeral-plan/essential-plan/)) which works perfectly most of the time but every now and then it throws the following:

`Caused by: java.net.UnknownHostException: planwithgrace.cdn.prismic.io`

I know what UnkownHostException is and I've double checked that it's correct and when I change content on the prismic backend it's changing on the home page so I know that the config is correct. My only conclusion is that it's a problem on Prismics side but that's also odd because I have other applications running and not exhibiting this issue. Could it be this particular repository?

Any idea as to what might be causing this?

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [January 8, 2021, 2:59pm UTC](https://community.prismic.io/t/strange-intermittent-unknownhostexception-being-thrown-by-java-kit-api/3470/3 "2021-01-08T14:59:05Z")

</div>

Hi Simon,

Welcome to the Prismic community,

I will try to debug this issue with you, first I've checked our logs and I didn't find any errors related to this repository.

For me, it seems to be an issue on your side, but I will try to investigate further with you.

such an error can be due to a DNS issue on your server or some sort of another network issue.

Here are some resources that can be relevant

> <https://stackoverflow.com/questions/11498574/java-net-unknownhostexception-occurs-after-some-time>

> **[java.net.UnknownHostException: Invalid Hostname for Server | Baeldung](https://www.baeldung.com/java-unknownhostexception)**
>
> Learn what causes UnknownHostException, how to prevent it, and how to handle it.

Please let us know if you need any further assistance,  
Fares

.

---

<div class="post-metadata">

**Author:** ![Fares](https://avatars.discourse-cdn.com/v4/letter/f/71e660/32.png) [@Fares](https://community.prismic.io/u/Fares)\
**Post date:** [February 25, 2021, 6:11pm UTC](https://community.prismic.io/t/strange-intermittent-unknownhostexception-being-thrown-by-java-kit-api/3470/4 "2021-02-25T18:11:46Z")

</div>

This issue has been closed due to inactivity. [Flag to reopen](https://community.prismic.io/t/re-open-a-thread/2175).

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex013/user_avatar/community.prismic.io/system/32/1746_2.png) [@system](https://community.prismic.io/u/system)\
**Post date:** [December 9, 2021, 4:47pm UTC](https://community.prismic.io/t/strange-intermittent-unknownhostexception-being-thrown-by-java-kit-api/3470/5 "2021-12-09T16:47:10Z")

</div>


