You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/content/docs/d1/observability/debug-d1.mdx
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,17 @@ The following table lists specific instances of `D1_ERROR`.
54
54
55
55
<Exampletitle="List of D1_ERRORs">
56
56
57
+
:::caution[Retry operations]
58
+
While some D1 errors can be resolved by retrying the operation, retrying is only safe if your query is idempotent (produces the same result when executed multiple times).
When in doubt, do not retry automatically. Instead, investigate the root cause and ensure your application logic can handle potential duplicates safely.
66
+
:::
67
+
57
68
|`D1_ERROR` type | Description | Recommended action |
|`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. |
0 commit comments