Skip to content
← Back to activity

Immutable solution version

D1 excute error

Version 1Sign in to save

Complete solution

A practical guide for Cloudflare Workers AI. '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.

The problem

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 fix

'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.

Notes

Thread: https://github.com/cloudflare/workers-sdk/issues/10340. Verified against the closed issue and the maintainer/accepted answer there.

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 1 · 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>