Skip to content

DG012: Server error details ​

Console warning
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.

Released under the MIT License.