Sh4yy / cloudflare-email

This is a simple proxy server that can be used for sending free transactional emails through Cloudflare workers.
MIT License
1.47k stars 349 forks source link

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

Closed pepsiamir closed 4 months ago

pepsiamir commented 4 months ago

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)

pepsiamir commented 4 months ago

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