question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when trying to add a secret using wrangler

See original GitHub issue

wrangler secret put PRIVATE_KEY

Yields;

 ⛅️ wrangler 2.0.3 
-------------------

✘ [ERROR] Missing script name

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
threepointonecommented, May 13, 2022

secrets have to be associated with a Worker. This is usually read from a wrangler.toml file in a project (which wrangler will look for either in the directory you call it, or any parent directory). Like @ecchochan pointed out, you can also pass a path to a custom config file), or can be explicitly passed with --name <worker name>.

0reactions
petebacondarwincommented, Jun 22, 2022

@allsey87 - created an issue to track that https://github.com/cloudflare/cloudflare-docs/issues/4892. I am sure that a PR would be welcome.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to set secrets on a new environment, which causes ...
Workaround steps: Create a new worker in the web UI with the same name as the worker you are trying to create. Run...
Read more >
Secrets undefined errors (solved) - Workers
Wrangler publish throws this error: Error: Something went wrong with the request to Cloudflare… Uncaught ReferenceError: OAUTH0SECRET is not ...
Read more >
AWS Wrangler error with establishing engine connection in ...
I have been using AWS Secrets Manager with no issues on Pycharm 2020.2.3. The problems with AWS Wrangler however are listed below: ...
Read more >
Troubleshoot issues related to Secrets Manager secrets in ECS
When I try to place a task that uses AWS Secrets Manager secrets in ... AccessDenied error on Amazon Elastic Compute Cloud (Amazon...
Read more >
Getting started with Fauna and Cloudflare Workers
To do that use the following command: wrangler secret put FAUNA_SECRET. After running this command, paste the Fauna server secret you ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found