Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
pepsiamir opened this issue Jul 12, 2024 · 1 comment

Comments

@pepsiamir
Copy link

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 [email protected]!
┌───────────────────────────────────┬──────────────────────────────────┐
│ Account Name │ Account ID │
├───────────────────────────────────┼──────────────────────────────────┤
[email protected]'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
@pepsiamir
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant