# Connection reset

**Error Description**

Multiple instances of "SocketException: Connection reset" are appearing in the logs related to API calls, particularly when attempting to connect to ".[betradar.com](http://betradar.com)." "Related to API call" signifies that the first line above the stack trace, which corresponds to the associated exception, indicates a failed call to ".[betradar.com](http://betradar.com)."

&#x20;What It Means

The "Connection reset" message indicates that the socket connection being utilized was forcibly closed, either by the remote server or by an intermediary device in the network path. This can occur due to various reasons, including:

* The remote server crashing or restarting, leading to the termination of existing connections.
* A network device (e.g., router or firewall) between the client and server terminating the connection due to a timeout or configuration rule.
* Limitations on the number of concurrent connections at the remote server, resulting in the forced closure of connections.

**Applies to**

All integrations using Unified Odds Feed (including SDKs and direct integrations)

**Symptoms**

A relatively high volume of requests to the Sports API is resulting in "SocketException: Connection reset", with customer concerns arising when this occurrence rate reaches 0.1% to 0.5% of requests over several hours. &#x20;

When It Happens

This exception can arise at different stages of network communication, such as during connection establishment, data transmission, or idle connection maintenance, depending on the underlying cause of the "connection reset."

In any scenario, it is essential to handle SocketException and implement robust error recovery mechanisms to ensure reliability and performance, particularly in distributed environments susceptible to network-related issues.

**Resolution**

When investigating network-related issues, the recommended approach involves inspecting each router along the path from the client to the server to identify and resolve potential connectivity or configuration issues.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sportradar.com/uof/error-handling/error-catalogue/connection-reset.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
