---
title: "INTERNAL_SERVER_ERROR"
description: "What triggers an INTERNAL_SERVER_ERROR (HTTP 500) and how to handle unexpected server-side failures."
canonical_url: "https://docs.leyr.io/api/error-handling/internal_server_error"
---
# INTERNAL_SERVER_ERROR

> What triggers an INTERNAL_SERVER_ERROR (HTTP 500) and how to handle unexpected server-side failures.

## Summary

This error corresponds to the standard `500 Internal Server Error` HTTP status code, indicating that the server encountered an unexpected condition preventing it from fulfilling the request.

## Example Response

```json
{
    "code": "INTERNAL_SERVER_ERROR",
    "type": "https://docs.leyr.io/api/error-handling/internal_server_error",
    "title": "Service unavailable",
    "status": 500,
    "detail": "Internal server error. Please retry the request. If the issue persists, contact our support team for investigation.",
    "instance": "36b5909e-4391-4520-b303-84cbb80c4264"
}
```

## Possible Reasons

- An unhandled exception has occurred in our system
- A critical service dependency is temporarily unavailable
- The server has encountered an unexpected state

## Resolution Steps

This error typically indicates an issue within our system that requires attention. Here's what you can do:

1. Retry your request after a brief delay, as the issue might be temporary.
2. If the error persists, please contact our support team at [contact@leyr.io](mailto:contact@leyr.io) with the following details:

  - The `instance` ID from the error response
  - A description of what you were trying to achieve

We take these errors seriously and will fix them quickly to prevent future occurrences!


## Sitemap

See the full [sitemap](https://docs.leyr.io/sitemap.md) for all pages.
