DioxusLabs/dioxus

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

Closed this issue · 2 comments

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

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'

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!