billflare.

Source-linked reports: Amounts and outcomes come from the original reports and linked replies.

D1nanyuan0412-d1-rows-written-106-in-4-days

nanyuan0412: an unnoticed bug made a personal site’s database write nonstop, burning $106 in 4 days.

nanyuan0412 says an unnoticed bug in a personal website made the database write nonstop and quietly burned 106 dollars in just 4 days. The attached spend summary shows a total cost of $106.00 for usage observed October 15–26, 2026, all on the D1 Rows Written line, plus a projected cycle cost of $273.83 (a projection, not counted as the reported amount). In a reply the author says they had used the full Cloudflare stack for convenience and that, with no circuit breaker at all, it blew up.

What happened

Reported cause
Write volume
Incident date
Date not recorded
First reported
2026-10-26 03:05 UTC
Billing outcome
Not recorded
Case progress
Not established
Public Cloudflare reply
Not linked

Original sources

Each entry links to the report or reply it describes.

Case timeline

  1. Author reports the charge

    Read on 𝕏

    The author says a bug caused nonstop database writes that cost about 106 dollars in 4 days; the screenshot shows $106.00 on D1 Rows Written.

    南鸢 nuyoah

    @nanyuan0412 · Original 𝕏 post

    做自己的个人网站,最害怕的大概就是遇见这种事:一觉醒来,莫名其妙因为一个没察觉的 Bug 导致数据库疯狂写入,短短 4 天悄无声息烧掉了 106 刀。 看着这笔学费,今天最大的反思是:AI 时代把“写代码、搭网站”的门槛降到了极点,但也最容易让人产生一种“我已经掌控全局”的幻觉。 让功能跑通只需要几分钟,但对底层逻辑的敬畏、对边界异常的兜底、对成本风控的监控,依然是省不掉的硬功夫。 能快速上线只是起点,能清醒、克制地守住系统边界,才是一个人独立做产品的真正成熟。
  2. No circuit breaker

    Read on 𝕏

    The author replies that the whole Cloudflare stack was used for convenience and there was no circuit breaker.

    南鸢 nuyoah

    @nanyuan0412 · Original 𝕏 post

    @GregZeng3 唉,当初图省事直接用了 cf 全家桶,现在看下来,连个熔断都没有,炸了
Author experienceWorkers +1

Feng Yi: Classify the error before retrying; retrying a 4xx error a hundred times still burns quota for nothing

On 2026-11-19, X user @Michael_liyang (Feng Yi) wrote: classify the error before retrying; retrying a 4xx error a hundred times still burns quota for nothing. Steps: 1 retry only 429/5xx/timeouts/network disconnects; 2 for 400/401/403/404, return directly and do not enter backoff; 3 for non-retriable errors, only log to D1 and do not burn the upstream. The error code is the switch for retries. Path: failure → determine the error code → back off only if retriable → return directly if not retriable. The author's conclusion: retrying is a way to save money; misclassifying the error is where burning money begins.

D1

hiromsaeden: an unindexed D1 query loop billed $2,129.00; a $953.74 courtesy credit left $645.38 due.

Cloudflare Community user hiromsaeden, in a post-mortem of a personal hobby project on Workers and D1, says an unindexed GROUP BY aggregate query scanned about 877,000 rows to return 30 rows, and an unintended loop triggered about 315,000 runs across two billing cycles. In the Oct 15 – Nov 15 cycle alone, 1,447,580,203,670 rows (1.44 trillion rows) were read, on top of the previous cycle’s usage. The author says the October invoice IN-83890481 was $529.88 USD, paid in full out of pocket; the November invoice IN-89082487 was $1,599.12 USD ($1,447.58 D1 Rows Read + $6.16 Workers CPU + $145.38 tax); and the total billed was $2,129.00 USD against an expected budget of about $20/month. After noticing the issue on Nov 2–3, the author deleted the Worker and the D1 database; Support confirmed all reads had stopped. In case #02408621, Support offered a $275.00 courtesy credit for October and advised holding it until the November invoice was issued on Nov 15. In case #02434399, Support applied a one-time courtesy credit of $953.74 (which included the held $275.00), leaving a final balance of $645.38 USD, and said the review was complete and no further adjustments can be made. The author, having already paid $529.88, says the remaining $645.38 cannot be afforded and the account will be downgraded on Nov 22. The author also says a budget alert fired once at the $37 mark but did not stop the charges, and that D1 currently has no hard spending cap. There is no Cloudflare staff reply on the public thread; the Support actions are reported by the author.

Community resourceWorkers +8

Cloudflare AI Usage Dashboard: per-app usage and a billing estimate

An open-source Worker that collects Cloudflare platform, Workers AI, AI Gateway, Anthropic and OpenAI usage every 5 minutes, attributes it to apps and shows a usage-times-list-price billing estimate behind Cloudflare Access.