You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using dioxus always hangs and Error Could not connect to http://127.0.0.1:1420/ after 180s. Please make sure that is the URL to your dev server.
#13248
$ cat Cargo.toml
[package]
name = "taurititive-dioxus-ui"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
dioxus = { version = "0.6", features = ["web"] }
dioxus-logger = "0.6"
wasm-bindgen = "0.2"
wasm-bindgen-futures = "0.4"
web-sys = "0.3"
js-sys = "0.3"
serde = { version = "1", features = ["derive"] }
serde-wasm-bindgen = "0.6"
[workspace]
members = ["src-tauri"]
[profile]
[profile.wasm-dev]
inherits = "dev"
opt-level = 1
[profile.server-dev]
inherits = "dev"
[profile.android-dev]
inherits = "dev"
and got this
taurititive-dioxus cargo tauri dev
Running BeforeDevCommand (`dx serve --port 1420 --verbose`)
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Warn Waiting for your frontend dev server to start on http://127.0.0.1:1420/...
Error Could not connect to `http://127.0.0.1:1420/` after 180s. Please make sure that is the URL to your dev server.
I have also changed from localhost and tried same results....
Using dx kind of works (but no backend action I think) as I can open the URL at the port and al OK
taurititive-dioxus dx serve --port 1420 --verbose
15:17:14 [dev] Loading crate
15:17:14 [dev] Found package NodeIndex(102)
15:17:14 [dev] Could not find explicit feature for platform web, passing `fallback` instead
15:17:14 [dev] Could not find explicit feature for platform server, passing `fallback` instead
15:17:15 [dev] Verifying tooling...
15:17:15 [dev] Watching path "/Users/tyoc213/c/q/taurititive-dioxus/Cargo.toml"
15:17:15 [dev] Watching path "/Users/tyoc213/c/q/taurititive-dioxus/README.md"
15:17:15 [dev] Watching path "/Users/tyoc213/c/q/taurititive-dioxus/src-tauri"
15:17:15 [dev] Watching path "/Users/tyoc213/c/q/taurititive-dioxus/assets"
15:17:15 [dev] Watching path "/Users/tyoc213/c/q/taurititive-dioxus/Dioxus.toml"
15:17:15 [dev] Watching path "/Users/tyoc213/c/q/taurititive-dioxus/src"
15:17:15 [dev] Watching path "/Users/tyoc213/c/q/taurititive-dioxus"
15:17:15 [dev] -----------------------------------------------------------------
Serving your Dioxus app: taurititive-dioxus-ui
• Press `ctrl+c` to exit the server
• Press `r` to rebuild the app
• Press `p` to toggle automatic rebuilds
• Press `v` to toggle verbose logging
• Press `/` for more commands and shortcuts
Learn more at https://dioxuslabs.com/learn/0.6/getting_started
----------------------------------------------------------------
15:17:15 [dev] Running build command...
15:17:15 [dev] Building app...
15:17:15 [dev] Initialized Root dir: "/Users/tyoc213/c/q/taurititive-dioxus/target/dx/taurititive-dioxus-ui/debug/web/public"
15:17:15 [dev] Initialized Exe dir: "/Users/tyoc213/c/q/taurititive-dioxus/target/dx/taurititive-dioxus-ui/debug/web/public/wasm"
15:17:15 [dev] Initialized Asset dir: "/Users/tyoc213/c/q/taurititive-dioxus/target/dx/taurititive-dioxus-ui/debug/web/public/assets"
15:17:15 [dev] Executing cargo...
15:17:15 [dev] cargo args: ["--profile", "wasm-dev", "--target", "wasm32-unknown-unknown", "--verbose", "--features", "dioxus/web", "--bin", "taurititive-dioxus-ui"]
15:17:15 [dev] Building server...
15:17:17 [dev] cargo args: ["--profile", "wasm-dev", "--target", "wasm32-unknown-unknown", "--verbose", "--features", "dioxus/web", "--bin", "taurititive-dioxus-ui"]
15:17:17 [dev] Build completed successfully - output location: "/Users/tyoc213/c/q/taurititive-dioxus/target/wasm32-unknown-unknown/wasm-dev/taurititive-dioxus-ui.wasm"
15:17:17 [dev] Collecting assets ...
15:17:17 [dev] Assembling app bundle
15:17:17 [dev] Running wasm-bindgen
15:17:18 [dev] wasm-bindgen complete in 1.15479925s
15:17:18 [dev] Removing old assets
15:17:18 [dev] Copying asset "/Users/tyoc213/c/q/taurititive-dioxus/target/dx/taurititive-dioxus-ui/debug/web/public/wasm-bindgen/taurititive-dioxus-ui_bg.wasm" to "/Users/tyoc213/c/q/taurititive-dioxus/target/dx/taurititive-dioxus-ui/debug/web/public/assets/taurititive-dioxus-ui_bg-9b2d1f0e7829327d.wasm"
15:17:18 [dev] Copying asset "/Users/tyoc213/c/q/taurititive-dioxus/target/dx/taurititive-dioxus-ui/debug/web/public/wasm-bindgen/taurititive-dioxus-ui.js" to "/Users/tyoc213/c/q/taurititive-dioxus/target/dx/taurititive-dioxus-ui/debug/web/public/assets/taurititive-dioxus-ui-9629269d26c92642.js"
15:17:18 [dev] Copying legacy asset "/Users/tyoc213/c/q/taurititive-dioxus/assets/styles.css" to "/Users/tyoc213/c/q/taurititive-dioxus/target/dx/taurititive-dioxus-ui/debug/web/public/assets/styles.css"
15:17:18 [dev] Copying legacy asset "/Users/tyoc213/c/q/taurititive-dioxus/assets/tauri.svg" to "/Users/tyoc213/c/q/taurititive-dioxus/target/dx/taurititive-dioxus-ui/debug/web/public/assets/tauri.svg"
15:17:18 [dev] Copying legacy asset "/Users/tyoc213/c/q/taurititive-dioxus/assets/dioxus.png" to "/Users/tyoc213/c/q/taurititive-dioxus/target/dx/taurititive-dioxus-ui/debug/web/public/assets/dioxus.png"
15:17:18 [dev] Bundle created at /Users/tyoc213/c/q/taurititive-dioxus/target/dx/taurititive-dioxus-ui/debug/web/public
15:17:18 [dev] Build completed successfully in 2692ms, launching app! 💫
15:17:29 [dev] New devtool websocket connection
15:17:33 [web] wasm-bindgen: imported JS function that was not marked as `catch` threw an error:
╭────────────────────────────────────────────────────────────────────────────────────────── /:more ╮
│ App: ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🎉 2.7s Platform: Web │
│ Bundle: ━━━━━━━━━━━━━━━━━━━━━━━━━━ 🎉 1.2s App features: ["dioxus/web"] │
│ Status: Serving taurititive-dioxus-ui 🚀 3.9s Serving at: http://127.0.0.1:1420 │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
and got this
I have also changed from localhost and tried same results....
Using dx kind of works (but no backend action I think) as I can open the URL at the port and al OK
Beta Was this translation helpful? Give feedback.
All reactions