-
Notifications
You must be signed in to change notification settings - Fork 857
multiple accounts + dev = Silent Crash in dev
mode
#1258
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
Comments
This might be related to #1212 |
Could you try running |
@threepointone I'm experiencing the same bug. It happens from |
Can you confirm that you have multiple account ids? |
@threepointone Yes I do. 3 accounts. |
Yeah I think we have a bug here, sorry about that. This is probably a blocker for anyone with multiple accounts. We'll discuss it today and figure out a fix/workaround. Sorry! Please downgrade to 2.0.9 for now. |
A workaround could be to enter |
Downgrade to 2.0.8 ;) The workaround with adding the account-id in wrangler.toml does the trick. Thanks. |
I suspect it's because we have 2 things listening for input, the hotkeys bar, and the dropdown select in multiple accounts. |
dev
modedev
mode
Oh! Right. Maybe even the fact that we are trying to call Ink.js |
That's probably it! |
When a user has multiple accounts we show a prompt to allow the user to select which they should use. This was broken in `wrangler dev` as we were trying to start a new ink.js app (to show the prompt) from inside a running ink.js app (the UI for `wrangler dev`). This fix refactors the `ChooseAccount` component so that it can be used directly within another component. Fixes cloudflare#1258
The fix is up for review... |
When a user has multiple accounts we show a prompt to allow the user to select which they should use. This was broken in `wrangler dev` as we were trying to start a new ink.js app (to show the prompt) from inside a running ink.js app (the UI for `wrangler dev`). This fix refactors the `ChooseAccount` component so that it can be used directly within another component. Fixes cloudflare#1258
When a user has multiple accounts we show a prompt to allow the user to select which they should use. This was broken in wrangler dev as we were trying to start a new ink.js app (to show the prompt) from inside a running ink.js app (the UI for wrangler dev). This fix refactors the ChooseAccount component so that it can be used directly within another component. Fixes cloudflare#1258
When a user has multiple accounts we show a prompt to allow the user to select which they should use. This was broken in wrangler dev as we were trying to start a new ink.js app (to show the prompt) from inside a running ink.js app (the UI for wrangler dev). This fix refactors the ChooseAccount component so that it can be used directly within another component. Fixes cloudflare#1258
When a user has multiple accounts we show a prompt to allow the user to select which they should use. This was broken in wrangler dev as we were trying to start a new ink.js app (to show the prompt) from inside a running ink.js app (the UI for wrangler dev). This fix refactors the ChooseAccount component so that it can be used directly within another component. Fixes cloudflare#1258
When a user has multiple accounts we show a prompt to allow the user to select which they should use. This was broken in wrangler dev as we were trying to start a new ink.js app (to show the prompt) from inside a running ink.js app (the UI for wrangler dev). This fix refactors the ChooseAccount component so that it can be used directly within another component. Fixes cloudflare#1258
When a user has multiple accounts we show a prompt to allow the user to select which they should use. This was broken in wrangler dev as we were trying to start a new ink.js app (to show the prompt) from inside a running ink.js app (the UI for wrangler dev). This fix refactors the ChooseAccount component so that it can be used directly within another component. Fixes cloudflare#1258
When a user has multiple accounts we show a prompt to allow the user to select which they should use. This was broken in wrangler dev as we were trying to start a new ink.js app (to show the prompt) from inside a running ink.js app (the UI for wrangler dev). This fix refactors the ChooseAccount component so that it can be used directly within another component. Fixes cloudflare#1258
) * move generate helpers to user directory * don't report cache usage when only writing to the cache * Do not patch the console when using ink to render a simple static output * Mock out `setEncoding()` when mocking `process.stdin` * capture the last std.write() call not the first * move user.tsx into the user directory * Move env vars getters into own file * Use common GET memberships mock in tests * fix: do not crash in `wrangler dev` if user has multiple accounts When a user has multiple accounts we show a prompt to allow the user to select which they should use. This was broken in wrangler dev as we were trying to start a new ink.js app (to show the prompt) from inside a running ink.js app (the UI for wrangler dev). This fix refactors the ChooseAccount component so that it can be used directly within another component. Fixes #1258 * fixup! fix: do not crash in `wrangler dev` if user has multiple accounts * fix: do not hang waiting for account choice when in non-interactive mode The previous tests for non-interactive only checked the stdin.isTTY, but you can have scenarios where the stdin is interactive but the stdout is not. For example when writing the output of a `kv:key get` command to a file. We now check that both stdin and stdout are interactive before trying to interact with the user.
🐛 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.
wrangler dev
with project that previously worked.dev
instance boots up.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.
wrangler -V
:2.0.9
node -v
:v18.2.0
wrangler.toml
:The text was updated successfully, but these errors were encountered: