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] Mobile http request sending error #1370

Open
gato25 opened this issue May 24, 2024 · 0 comments
Open

[bug] Mobile http request sending error #1370

gato25 opened this issue May 24, 2024 · 0 comments
Labels
bug Something isn't working platform: android Android specific issues plugin: http

Comments

@gato25
Copy link

gato25 commented May 24, 2024

Describe the bug

when i send this from desktop its working fine

const response = await fetch(
    "https://blablabla.fly.dev/sql",
    {
        method: "POST",
        headers: {
            Accept: "application/json",
            "Content-Type": "text/plain",
        },
        body: sqlQuery,
    },
)

But when i call it on android it gives me "error sending request for url".

default capability json

{
  "$schema": "../gen/schemas/desktop-schema.json",
  "identifier": "default",
  "description": "Capability for the main window",
  "windows": ["main"],
  "permissions": [
    "path:default",
    "event:default",
    "window:default",
    "app:default",
    "image:default",
    "resources:default",
    "menu:default",
    "tray:default",
    "shell:allow-open",
    {
      "identifier": "http:default",
      "allow": [{ "url": "https://*" }],
      "deny": [{ "url": "https://private.tauri.app" }]
    }
  ]
}

Reproduction

No response

Expected behavior

No response

Full tauri info output

[✔] Environment
    - OS: Windows 10.0.22621 X64
    ✔ WebView2: 124.0.2478.97
    ✔ MSVC: Visual Studio Build Tools 2022
    ✔ rustc: 1.78.0 (9b00956e5 2024-04-29)
    ✔ cargo: 1.78.0 (54d8815d0 2024-03-26)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-x86_64-pc-windows-msvc (default)
    - node: 18.16.1
    - pnpm: 9.0.4
    - npm: 9.5.1
    - bun: 1.1.7

[-] Packages
    - tauri [RUST]: 2.0.0-beta.20
    - tauri-build [RUST]: 2.0.0-beta.16
    - wry [RUST]: 0.40.0
    - tao [RUST]: 0.28.0
    - @tauri-apps/api [NPM]: 2.0.0-beta.12
    - @tauri-apps/cli [NPM]: 2.0.0-beta.18

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

Stack trace

No response

Additional context

No response

@FabianLars FabianLars added the platform: android Android specific issues label May 25, 2024
@FabianLars FabianLars transferred this issue from tauri-apps/tauri May 25, 2024
@FabianLars FabianLars added bug Something isn't working plugin: http labels May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working platform: android Android specific issues plugin: http
Projects
None yet
Development

No branches or pull requests

2 participants