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.

multiple accounts + dev = Silent Crash in `dev` mode

See original GitHub issue

🐛 Bug report

Describe the bug

When running dev mode in wrangler, service will run for a second, prompt for an account, and then silently crash.

Reproduce the bug

A list of steps to reproduce the bug.

  1. Run wrangler dev with project that previously worked.
  2. Wait a second while the dev instance boots up.
  3. Select Account from list.

Expected behavior

After running wrangler dev, wrangler should prompt for your account BEFORE starting up, and then should not crash unexpectedly.

Environment and versions

Fill out the following information about your environment.

  • operating system: macOS Monterey v12.4
  • output of wrangler -V: 2.0.9
  • output of node -v: v18.2.0
  • content of wrangler.toml:
name = "gitdiffbot"
compatibility_date = "2022-05-25"
main = "dist/index.js"

kv_namespaces = [
  {binding = "KV", id = KVID, preview_id = KVID}
]

[triggers]
crons = ["0 */6 * * *"]

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:13 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
threepointonecommented, Jun 15, 2022

A workaround could be to enter account_id = "your account id" in wrangler.toml (or as an env var like CLOUDFLARE_ACCOUNT_ID=youraccountid wrangler dev)

0reactions
petebacondarwincommented, Jun 18, 2022

The fix is up for review…

Read more comments on GitHub >

github_iconTop Results From Across the Web

SQL Developer 18.2 Crash at startup - Oracle Communities
Hi All. I teach using SQL Developer. I have had several students who have a common issue with SQL Developer 18.2 on Win64...
Read more >
6 reasons your Node.js apps are failing - IBM Developer
6 reasons your Node.js apps are failing · 1. Uncaught exceptions or error events in JavaScript code · 2. Excessive memory usage, which...
Read more >
Solution(s) to the Dev mode problem. - Steam Community
Right click on DOOM in your game library. Select Properties. Go to the Local Files tab and then click Verify Integrity of Game...
Read more >
Weird crash in background mode with Realm DB
I am using background mode for downloading data from the server and storing it in Realm. I am getting weird crash reports from...
Read more >
Microsoft .NET Framework Repair Tool is available
NET Framework 4.8, 4.7.2, 4.7.1, 4.7, and 4.6.2. ... This option is applicable only in Quiet and Passive modes.
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