Cloudflare DevelopersCD
Cloudflare Developersโ€ข3y agoโ€ข
7 replies
rynite

"D1_ERROR: SqliteError: no such table"

Hello, I have a project that uses D1 and wrangler, so I generate the schema with drizzle, and then run apply my migrations to my database, I also confirmed that the id in my wrangler.toml is correct and the tables do exist on the D1 dashboard, confirmed the same thing with the CLI as well, but..... when I run wrangler dev and head to the server and send requests, I get the above error, I don't know why D1 can't find the table although it exists on both the CLI and the web dashboard, may someone please help me out here? Because I've been battling this since yesterday with no luck.
Was this page helpful?