[GH-ISSUE #20] X [ERROR] A request to the Cloudflare API (/accounts/xxxxxxxx/workers/scripts/worker-email-production/secrets) failed. #10

Closed
opened 2026-03-04 00:01:36 +03:00 by kerem · 1 comment
Owner

Originally created by @pepsiamir on GitHub (Jul 12, 2024).
Original GitHub issue: https://github.com/Sh4yy/cloudflare-email/issues/20

I can not run this command:
npx wrangler secret put --env production TOKEN

X [ERROR] A request to the Cloudflare API (/accounts/xxxxxxxx/workers/scripts/worker-email-production/secrets) failed.

Authentication error [code: 10000]

Getting User settings...
👋 You are logged in with an OAuth Token, associated with the email xxxxxx@gmail.com!
┌───────────────────────────────────┬──────────────────────────────────┐
│ Account Name │ Account ID │
├───────────────────────────────────┼──────────────────────────────────┤
│ xxxxxx@gmail.com's Account │ 07f655250xxxxxx │
└───────────────────────────────────┴──────────────────────────────────┘
🔓 Token Permissions: If scopes are missing, you may need to logout and re-login.
Scope (Access)

  • account (read)
  • user (read)
  • workers (write)
  • workers_kv (write)
  • workers_routes (write)
  • workers_scripts (write)
  • workers_tail (read)
  • d1 (write)
  • pages (write)
  • zone (read)
  • ssl_certs (write)
  • constellation (write)
  • ai (write)
  • queues (write)
  • offline_access
Originally created by @pepsiamir on GitHub (Jul 12, 2024). Original GitHub issue: https://github.com/Sh4yy/cloudflare-email/issues/20 I can not run this command: `npx wrangler secret put --env production TOKEN ` X [ERROR] A request to the Cloudflare API (/accounts/xxxxxxxx/workers/scripts/worker-email-production/secrets) failed. Authentication error [code: 10000] Getting User settings... 👋 You are logged in with an OAuth Token, associated with the email xxxxxx@gmail.com! ┌───────────────────────────────────┬──────────────────────────────────┐ │ Account Name │ Account ID │ ├───────────────────────────────────┼──────────────────────────────────┤ │ xxxxxx@gmail.com's Account │ 07f655250xxxxxx │ └───────────────────────────────────┴──────────────────────────────────┘ 🔓 Token Permissions: If scopes are missing, you may need to logout and re-login. Scope (Access) - account (read) - user (read) - workers (write) - workers_kv (write) - workers_routes (write) - workers_scripts (write) - workers_tail (read) - d1 (write) - pages (write) - zone (read) - ssl_certs (write) - constellation (write) - ai (write) - queues (write) - offline_access
kerem closed this issue 2026-03-04 00:01:37 +03:00
Author
Owner

@pepsiamir commented on GitHub (Jul 14, 2024):

Problem solved. Loged out of wrangler and logged in again.

<!-- gh-comment-id:2227275192 --> @pepsiamir commented on GitHub (Jul 14, 2024): Problem solved. Loged out of wrangler and logged in again.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudflare-email#10
No description provided.