From 5e072f7301ce0846d95c0c92a6846e6e423b6213 Mon Sep 17 00:00:00 2001 From: Jun Lee Date: Mon, 8 Sep 2025 13:58:04 +0100 Subject: [PATCH 1/2] Adding storage exceeded errors for D1 --- src/content/docs/d1/observability/debug-d1.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/content/docs/d1/observability/debug-d1.mdx b/src/content/docs/d1/observability/debug-d1.mdx index 5d04ef5035000e..0448113fbb8947 100644 --- a/src/content/docs/d1/observability/debug-d1.mdx +++ b/src/content/docs/d1/observability/debug-d1.mdx @@ -65,6 +65,8 @@ Before retrying any failed operation: | `D1_ERROR` type | Description | Recommended action | | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | | `No SQL statements detected.` | The input query does not contain any SQL statements. | App action: Ensure the query contains at least one valid SQL statement. | +| `Exceeded maximum account storage limit.` | The total storage across all D1 databases in the account has exceeded the [account storage limit](/d1/platform/limits/). | App action: Delete unused databases, or upgrade your account. | +| `Exceeded maximum DB size.` | The D1 database has exceeded its [storage limit](/d1/platform/limits/). | App action: Shard your data into multiple databases. | | `D1 DB reset because its code was updated.` | Cloudflare has updated the code for D1 (or the underlying Durable Object), and the Durable Object which contains the D1 database is restarting. | Retry the operation. | | `Internal error while starting up D1 DB storage caused object to be reset.` | The Durable Object containing the D1 database is failing to start. | Retry the operation. | | `Network connection lost.` | A network error. | Retry the operation. Refer to the "Retry operation" note above. | From d7ca14210640c62056345080f9e3e1f7074c88a9 Mon Sep 17 00:00:00 2001 From: Jun Lee Date: Mon, 8 Sep 2025 14:10:01 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Lambros Petrou --- src/content/docs/d1/observability/debug-d1.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content/docs/d1/observability/debug-d1.mdx b/src/content/docs/d1/observability/debug-d1.mdx index 0448113fbb8947..af0a0f8db4f903 100644 --- a/src/content/docs/d1/observability/debug-d1.mdx +++ b/src/content/docs/d1/observability/debug-d1.mdx @@ -65,8 +65,8 @@ Before retrying any failed operation: | `D1_ERROR` type | Description | Recommended action | | --------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- | | `No SQL statements detected.` | The input query does not contain any SQL statements. | App action: Ensure the query contains at least one valid SQL statement. | -| `Exceeded maximum account storage limit.` | The total storage across all D1 databases in the account has exceeded the [account storage limit](/d1/platform/limits/). | App action: Delete unused databases, or upgrade your account. | -| `Exceeded maximum DB size.` | The D1 database has exceeded its [storage limit](/d1/platform/limits/). | App action: Shard your data into multiple databases. | +| `Exceeded maximum account storage limit.` | The total storage across all D1 databases in the account has exceeded the [account storage limit](/d1/platform/limits/). | App action: Delete unused databases, or upgrade your account to a paid plan. | +| `Exceeded maximum DB size.` | The D1 database has exceeded its [storage limit](/d1/platform/limits/). | App action: Delete data rows from the database, or shard your data into multiple databases. | | `D1 DB reset because its code was updated.` | Cloudflare has updated the code for D1 (or the underlying Durable Object), and the Durable Object which contains the D1 database is restarting. | Retry the operation. | | `Internal error while starting up D1 DB storage caused object to be reset.` | The Durable Object containing the D1 database is failing to start. | Retry the operation. | | `Network connection lost.` | A network error. | Retry the operation. Refer to the "Retry operation" note above. |