---
url: https://akinozgen.github.io/datagrids/errors/DG012.md
description: >-
  One datagrids warning or error code — the message, when it happens and how to
  fix it.
---

# DG012: Server error details

```text
[datagrids DG012] Server error: {detail}
```

Printed with `console.warn`, once per distinct message. `configure({ warnings: false })` silences it.

## When it happens

A load failed and the error carries a `detail` the grid keeps out of the visible message: the exception
message of an HTTP error response (JSON `message` / `error`, or up to 500 characters of a text body), the
`error` string of an HTTP 200 SSP response (debug output), or the browser's message for a network
failure. The grid shows a generic message; the detail goes to the console.

## How to fix it

Fix the server-side problem the detail describes. While `warnings` is on (the default) the error state
also shows the detail in a "Details" disclosure. In production turn both off with
`configure({ warnings: false })`. The full error object is on the `error` event:

```js
grid.on("error", ({ error }) => report(error.kind, error.status, error.detail));
```

See [States & errors](/guide/states-and-errors).

## Related

* [All warning codes](/errors/)
* [Grid options](/reference/options)
* [Static API & configure()](/reference/static)
