workers-sdk icon indicating copy to clipboard operation
workers-sdk copied to clipboard

🐛 BUG: Make d1 db limit error message match Cloudflare dashboard

Open rozenmd opened this issue 2 years ago • 2 comments

Which Cloudflare product(s) does this pertain to?

D1

What version of Wrangler are you using?

latest

What operating system are you using?

Mac

Describe the Bug

with 10 dbs, run wrangler@latest d1 create test123

error message is:

✘ [ERROR] A request to the Cloudflare API (/accounts/7e79d8d6cb02239d51bbb022ae7bea20/d1/database) failed.

  System limit reached: databases per account (10) [code: 7406]

  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/workers-sdk/issues/new/choose

While the dash's error message is of the format: You have reached the maximum number of databases (%{dbLimit}) for your account. Please consider deleting unused databases, or visit the <0>D1 documentation</0> to learn more.

rozenmd avatar Mar 17 '23 13:03 rozenmd

@rozenmd is this still relevant?

penalosa avatar Oct 14 '24 20:10 penalosa

yep

rozenmd avatar Oct 14 '24 20:10 rozenmd

I also encountered the same issue, and here's the relevant record. I suspect that there's a limit on the number of databases, and this issue occurred because I had 10 d1 databases. The problem disappeared when I deleted and recreated them.

bunx wrangler d1 create xxx

 ⛅️ wrangler 3.83.0 (update available 3.84.1)
-------------------------------------------------------


✘ [ERROR] A request to the Cloudflare API (/accounts/[mask]/d1/database) failed.

  System limit reached: databases per account (10) [code: 7406]

  If you think this is a bug, please open an issue at:
  https://github.com/cloudflare/workers-sdk/issues/new/choose

shydow avatar Nov 04 '24 02:11 shydow