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

[bug] error sending request for url (http://192.168.0.x:1420/) on iOS #9509

Open
kalepail opened this issue Apr 19, 2024 · 3 comments
Open
Labels
platform: iOS status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@kalepail
Copy link

Describe the bug

Whenever I build an app for iOS and run it on a physical device I cannot get the view to load. Using dev works alright but build never loads. I always get error sending request for url (http://192.168.0.x:1420/)

Reproduction

I'm just using all the vanilla templates from https://beta.tauri.app/guides/create/#using-create-tauri-app. I've specifically tried bun and pnpm for svelte and basic JS.

Expected behavior

The built app should load on device.

Full tauri info output

[✔] Environment
    - OS: Mac OS 14.4.1 X64
    ✔ Xcode Command Line Tools: installed
    ✔ rustc: 1.77.2 (25ef9e3d8 2024-04-09)
    ✔ cargo: 1.77.2 (e52e36006 2024-03-26)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-aarch64-apple-darwin (default)
    - node: 20.12.2
    - pnpm: 9.0.2
    - yarn: 1.22.22
    - npm: 10.5.0
    - bun: 1.1.2

[-] Packages
    - tauri [RUST]: 2.0.0-beta.15
    - tauri-build [RUST]: 2.0.0-beta.12
    - wry [RUST]: 0.39.1
    - tao [RUST]: 0.27.0
    - tauri-cli [RUST]: 2.0.0-alpha.14
    - @tauri-apps/api [NPM]: 2.0.0-beta.8
    - @tauri-apps/cli [NPM]: 2.0.0-beta.13

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - bundler: Vite

[-] iOS
    - Developer Teams: <REDACTED>

Stack trace

No response

Additional context

There's some Discord conversation about this here:
https://discord.com/channels/616186924390023171/1227758916872441856
And here:
https://discord.com/channels/616186924390023171/1230704798488072282/1230718571080974336

@kalepail kalepail added status: needs triage This issue needs to triage, applied to new issues type: bug labels Apr 19, 2024
@heliam1
Copy link

heliam1 commented Apr 20, 2024

I thought I was getting a similar issue for android dev from windows machine
But it was caused by being connected to a VPN 🤦

@santiagomed
Copy link

santiagomed commented Apr 20, 2024

Getting this same issue. Specifically, this is my output

Apr 19 22:26:32 tauri-moondream[39298] <Notice>: [hyper_util::client::legacy::pool] checkout waiting for idle connection: ("http", 192.0.0.2:1420)
Apr 19 22:26:32 tauri-moondream[39298] <Notice>: [reqwest::connect] starting new connection: http://192.0.0.2:1420/
Apr 19 22:26:32 tauri-moondream[39298] <Notice>: [hyper_util::client::legacy::connect::http] Http::connect; scheme=Some("http"), host=Some("192.0.0.2"), port=Some(Port(1420))
Apr 19 22:26:32 tauri-moondream[39298] <Notice>: [hyper_util::client::legacy::connect::http] connecting to 192.0.0.2:1420
Apr 19 22:26:32 tauri-moondream[39298] <Notice>: [hyper_util::client::legacy::connect::http] connect error for 192.0.0.2:1420: ConnectError("tcp connect error", Os { code: 4, kind: Interrupted, message: "Interrupted system call" })
Apr 19 22:26:32 tauri-moondream[39298] <Notice>: [hyper_util::client::legacy::pool] checkout dropped for ("http", 192.0.0.2:1420)

Edit: My issue is with tauri ios dev

@heliam1
Copy link

heliam1 commented Apr 25, 2024

I ended up seeing similar issues on iOS, and in my case the issue was not having ios device and development machine on the same correctly configured network

https://discord.com/channels/616186924390023171/1227758916872441856/1233199411681689621

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: iOS status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

4 participants