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

🐛 BUG: wrangler secret bulk does not log errors #7287

Open
jahands opened this issue Nov 18, 2024 · 0 comments
Open

🐛 BUG: wrangler secret bulk does not log errors #7287

jahands opened this issue Nov 18, 2024 · 0 comments
Labels
bug Something that isn't working

Comments

@jahands
Copy link
Contributor

jahands commented Nov 18, 2024

Which Cloudflare product(s) does this pertain to?

Wrangler

What version(s) of the tool(s) are you using?

3.87.0 [Wrangler]

What version of Node are you using?

22.11.0

What operating system and version are you using?

MacOS Sonoma 14.7

Describe the Bug

Observed behavior

wrangler secret bulk does not log why it fails, including when the secret name is already in use by another binding type:
Screenshot 2024-11-18 at 12 32 52 PM

This is causing user confusion: cloudflare/wrangler-action#240

Expected behavior

When the name of a secret conflicts with another binding or environment variable, it should log why, similar to how wrangler secret put does:

Screenshot 2024-11-18 at 12 34 12 PM

Steps to reproduce

  1. Create Worker and add a binding (can be a text variable or any other type of binding). E.g. MY_VAR
  2. Add this to ./secrets.json: {"MY_VAR": "my secret"}
  3. Run wrangler secret bulk ./secrets.json

Please provide a link to a minimal reproduction

https://github.com/jahands/wrangler-action-example/tree/bulk-put-repro

Please provide any relevant error logs

No response

@jahands jahands added the bug Something that isn't working label Nov 18, 2024
@jahands jahands changed the title 🐛 BUG: wrangler secret bulk put does not log errors 🐛 BUG: wrangler secret bulk does not log errors Nov 18, 2024
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Status: Untriaged
Development

No branches or pull requests

1 participant