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

fullstack web app dx serve "o" hotkey causes backend to crash #3477

Open
Zer0dot opened this issue Dec 31, 2024 · 2 comments · May be fixed by #3495
Open

fullstack web app dx serve "o" hotkey causes backend to crash #3477

Zer0dot opened this issue Dec 31, 2024 · 2 comments · May be fixed by #3495

Comments

@Zer0dot
Copy link

Zer0dot commented Dec 31, 2024

Problem

When I run a fullstack webapp, even the "hello-world" example, and press "o" to open the webapp in my browser (Vivaldi), it errors with:

called `Result::unwrap()` on an `Err` value: Os { code: 98, kind: AddrInUse, message: "Address already in use" 

Tracing back the error to the invocation of dioxus::launch(App).

Then, I get spammed with

Application [server] exited with error: exit status: 101 

first as a [dev] notice, then after CTRL-C-ing, as an ERROR notice.

Note that copying the url, or ctrl-clicking the url shown in dx serve works fine.

Steps To Reproduce

Steps to reproduce the behavior:

  • dx serve a fullstack app
  • press "o"

Expected behavior

Opens the webapp in the browser of choice.

Environment:

  • Dioxus version: dioxus 0.6.1 (c2952a7)
  • Rust version: 1.85.0-nightly (7f75bfa1a 2024-12-30)
  • OS info: Debian 12 Bookworm on a dual boot setup.
  • App platform: web

I'm faaaaaaaaairly certain this may have to do with my environment.

Questionnaire

@NelDav
Copy link

NelDav commented Jan 1, 2025

Same for me.

Environment:

  • Dioxus version: dioxus 0.6.1
  • Rust version: 1.85.0-nightly (7f75bfa1a 2024-12-30)
  • OS info: Windows 11 on a dual boot setup.
  • App platform: web

Btw. Thanks @Zer0dot I was struggling with this issue for hours and did not think about simply copying the URL instead of pressing 'o'

@Houndie
Copy link

Houndie commented Jan 2, 2025

Can also confirm this error and this work around.

  • Dioxus version 0.6.0
  • Rust Version 1.83.0
  • OS info Nixos
  • App platform Web + Fullstack

Thanks for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants