cloudflare / workers-sdk

⛅️ Home to Wrangler, the CLI for Cloudflare Workers®
https://developers.cloudflare.com/workers/
Apache License 2.0
2.74k stars 726 forks source link

🐛 BUG: D1 create error #7310

Open huahualiuhuahua opened 5 days ago

huahualiuhuahua commented 5 days ago

Which Cloudflare product(s) does this pertain to?

D1

What version(s) of the tool(s) are you using?

1

What version of Node are you using?

1

What operating system and version are you using?

10

Describe the Bug

Observed behavior

Please describe.

Expected behavior

Please describe.

Steps to reproduce

Please provide the following:

A git repo we can clone and run a test suite on, or which has a README with step-by-step instructions, is even better. In this case, please use the field below to provide a link to the minimal repro.

Please provide a link to a minimal reproduction

51s Run cd Rin/ bun install v1.1.36 (ededc168) Resolving dependencies Resolved, downloaded and extracted [122] + autoprefixer@10.4.20 + i18next-parser@9.0.1 + postcss@8.4.41 + puppeteer@22.15.0 + tailwindcss@3.4.8 + turbo@1.13.4 + vitest@1.3.0 + @types/lodash@4.17.7 + @types/react-syntax-highlighter@15.5.13 + fast-xml-parser@4.4.1 + html-to-md@0.8.5 + lodash@4.17.21 + mermaid@10.9.1 + react-markdown@9.0.1 + react-syntax-highlighter@15.5.0 + rehype-katex@7.0.0 + rehype-mathjax@6.0.0 + rehype-parse@9.0.0 + rehype-raw@7.0.0 + rehype-react@8.0.0 + rehype-sanitize@6.0.0 + remark-gfm@4.0.0 + remark-math@6.0.0 + remark-rehype@11.1.0 1101 packages installed [47.78s] Blocked 10 postinstalls. Run bun pm untrusted for details. Failed to create D1 "rin" ⛅️ wrangler 3.69.1 (update available 3.88.0) --------------------------------------------- ✘ [ERROR] A request to the Cloudflare API (/accounts/***/d1/database) failed. DUPLICATE_DATABASE_ERROR [code: 7500] If you think this is a bug, please open an issue at: https://github.com/cloudflare/workers-sdk/issues/new/choose ---------------------------- Error: Process completed with exit code 1.

Please provide any relevant error logs

1

emily-shen commented 22 hours ago

Hi, this looks like you've tried to run wrangler d1 create with a database name that you've already used. If you try a different name, can you create a d1 database?