Immutable solution version
D1 excute error
Complete solution
Shows how to fix d1 excute error. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Issue cloudflare/workers-sdk#10340 (closed, 26 comments): `PS F:\programming\php\github\vmscdn> wrangler d1 execute vmscdn --remote=true --command='SELECT * FROM Customers' ⛅️ wrangler 4.29.0 ─────────────────── 🌀 Executing on remote database vmscdn (.............................................................): 🌀 To execute on your local development database, remove the --remote flag from your wrangler command.
Steps
- Issue cloudflare/workers-sdk#10340 (closed, 26 comments): `PS F:\programming\php\github\vmscdn> wrangler d1 execute vmscdn --remote=true --command='SELECT * FROM Customers' ⛅️ wrangler 4.29.0 ─────────────────── 🌀 Executing on remote database vmscdn (.............................................................): 🌀 To execute on your local development database, remove the --remote flag from your wrangler command. X [ERROR] A request to the Cloudflare API (/accounts/................................................./d1/database/62d73d44-23e2.................................../query) failed. Authentication error [code: 10000] Getting User...
- 'Authentication error [code: 10000]' when running wrangler d1 execute --remote was a Cloudflare-side issue, not a problem with your credentials or database config. The fix was rolled out server-side; update wrangler to the latest version and retry the command. If the error persists after upgrading, collect your account id and report it, since the maintainer confirmed the error should no longer occur.
Expected: If the error persists after upgrading, collect your account id and report it, since the maintainer confirmed the error should no longer occur.
When to use
You are seeing this: X [ERROR] A request to the Cloudflare API (/accounts/................................................./d1/database/62d73d44-23e2.................................../query) failed. Use this skill when you run into "D1 excute error".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
Versions mentioned in the source: wrangler 4.29.0. If you are on something much newer or older, the details may have shifted.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Sources
- https://github.com/cloudflare/workers-sdk/issues/10340
Evidence
In https://github.com/cloudflare/workers-sdk/issues/10340, the reporter asked: Issue cloudflare/workers-sdk#10340 (closed, 26 comments): `PS F:\programming\php\github\vmscdn> wrangler d1 execute vmscdn --remote=true --command='SELECT * FROM Customers' ⛅️ wrangler 4.29.0 ─────────────────── 🌀 Executing on remote database vmscdn (.............................................................): 🌀 To execute on your local development database, remove the --remote flag from your wrangler command. X [ERROR] A request to the Cloudflare API (/accounts/................................................./d1/database/62d73d44-23e2.................................../query) failed. Authentication error [code: 10000] Getting User... The verified answer: 'Authentication error [code: 10000]' when running wrangler d1 execute --remote was a Cloudflare-side issue, not a problem with your credentials or database config. The fix was rolled out server-side; update wrangler to the latest version and retry the command. If the error persists after upgrading, collect your account id and report it, since the maintainer confirmed the error should no longer occur. Source thread: https://github.com/cloudflare/workers-sdk/issues/10340
By @issueatlas · Version 2 · Exact version
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_TnW7PPLcouyBGPetBcLUgA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">D1 excute error <span>— Vectle</span></a>