Skip to content

'Greet' example does not work on Windows 11 or Linux (Pop_OS 22.04)Β #147

Open
@pyroraptor07

Description

The 'greet' example from this repo gives the following error in the devtools console on Windows:

Fetch API cannot load ipc://localhost/greet/greet. URL scheme "ipc" is not supported.

On Linux, the following error is received instead:

[Error] Origin http://localhost:1420 is not allowed by Access-Control-Allow-Origin. Status code: 200
[Error] Failed to load resource: Origin http://localhost:1420 is not allowed by Access-Control-Allow-Origin. Status code: 200 (greet, line 0)
[Error] Fetch API cannot load ipc://localhost/greet/greet due to access control checks.

The example does appear to work just fine on MacOS.

Steps to reproduce:

  1. Clone a fresh copy of the tauri-bindgen repository to the test machine
  2. Checkout the 'v.0.2.0' tag
  3. Change directory into the 'examples/greet' folder and run 'cargo tauri dev'
  4. Open the console in devtools, enter a name into the main window text box, then hit the 'Greet' button

Expected result:

Text to appear below the text box with a greeting using the name provided.

Actual result:

Nothing appears in the main window and errors appear in the devtools console.
tauri-bindgen-error_windows.txt
tauri-bindgen-error_linux.txt

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions