> For the complete documentation index, see [llms.txt](https://docs.sportradar.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sportradar.com/uof/error-handling/error-catalogue/java.net.unknownhostexception.md).

# Java.net.UnknownHostException

**Error Description**

When attempting to connect to the Rabbit server or API, the `java.net.UnknownHostException` is thrown in the Unified Odds Feed (UOF) SDK for Java. The error indicates that there was a failure to resolve the hostname (domain name) to an IP address when attempting to establish a connection to a RabbitMQ server or API.

**Common Causes**

1. **DNS Configuration Issues**: The DNS server configured on the client machine may be unreachable or misconfigured, leading to failures in hostname resolution.
2. **Incorrect Hostname**: The specified hostname in the application's connection settings may be misspelled, non-existent, or invalid.
3. **Network Connectivity Problems**: Network issues, such as firewall restrictions, routing problems, or general connectivity failures, can interfere with DNS resolution.

**Applies to**

UOF SDK - Java

**Symptoms**

In the SDK execution logs, entries with `java.net.UnknownHostException` and linked error messages are observed, indicating issues with hostname resolution.

**Resolution**

To address this issue, follow these resolution steps:

1. **Temporary Error**: Understand that `java.net.UnknownHostException` typically indicates a temporary error during hostname resolution. It means that the local server running the client application did not receive a response from an authoritative DNS server (e.g. [global.api.betradar.com](http://global.api.betradar.com)).
2. **Check Network/Firewall/DNS**: Investigate network, firewall, or DNS issues on the client side. This error is often caused by network connectivity problems or DNS resolution failures within the client's environment.
3. **Verify Whitelisting**: Although not directly linked, verify if IP whitelisting is configured correctly. IP addresses may change due to updates in the client's infrastructure, potentially causing connectivity issues.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sportradar.com/uof/error-handling/error-catalogue/java.net.unknownhostexception.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
