Cretezy / cloudflare-d1-backup

Dump Cloudflare D1 databases (without Workers)
Other
44 stars 2 forks source link

Getting an error #3

Open dinpd opened 8 months ago

dinpd commented 8 months ago

throw new Error(`D1 Error: ${body.errors ^

Error: D1 Error: Could not route to /client/v4/accounts/undefined/d1/database/undefined/query, perhaps your object identifier is invalid? at fetchD1 (file:///Users/danitkis/.npm/_npx/9d37dc0424d96159/node_modules/@cretezy/cloudflare-d1-backup/dist/index.js:22:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async createBackup (file:///Users/danitkis/.npm/_npx/9d37dc0424d96159/node_modules/@cretezy/cloudflare-d1-backup/dist/index.js:30:26) at async file:///Users/danitkis/.npm/_npx/9d37dc0424d96159/node_modules/@cretezy/cloudflare-d1-backup/dist/cli.js:30:16

t0m0120 commented 8 months ago

@dinpd Are you sure you have set the following three things correctly? The error message seems to be undefined

CLOUDFLARE_D1_ACCOUNT_ID CLOUDFLARE_D1_DATABASE_ID CLOUDFLARE_D1_API_KEY

kr105 commented 6 months ago

For some reason it didn't work with env vars for me (like on the example) but setting the values on the .env file worked just fine!