linkie / linkie-web

The source code of the backend server and frontend webpage of Linkie Web
https://linkie-web.vercel.app
39 stars 10 forks source link

(experimental tauri app) Fetching sources fails with status code 500 #8

Closed meadowsys closed 1 year ago

meadowsys commented 1 year ago

When using (a locally built version of) the tauri app on macOS, everything seems to work fine, until I click the generate sources button on a search result. A popup shows up with the message "Failed to fetch source: Request failed with status code 500", and opening the console (via button on the lower left of the window) shows

108
java.util.concurrent.CompletionException: java.nio.file.ProviderNotFoundException: Provider "jar" not found
109
    at java.base/java.util.concurrent.CompletableFuture.encodeThrowable(Unknown Source)
110
    at java.base/java.util.concurrent.CompletableFuture.completeThrowable(Unknown Source)
111
    at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(Unknown Source)
112
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
113
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
114
    at java.base/java.lang.Thread.run(Unknown Source)
115
Caused by: java.nio.file.ProviderNotFoundException: Provider "jar" not found
116
    at java.base/java.nio.file.FileSystems.getFileSystem(Unknown Source)
117
    at net.fabricmc.tinyremapper.FileSystemReference.open(FileSystemReference.java:71)
118
    at net.fabricmc.tinyremapper.FileSystemReference.openJar(FileSystemReference.java:48)
119
    at net.fabricmc.tinyremapper.FileSystemReference.openJar(FileSystemReference.java:44)
120
    at net.fabricmc.tinyremapper.TinyRemapper.readFile(TinyRemapper.java:515)
121
    at net.fabricmc.tinyremapper.TinyRemapper.access$200(TinyRemapper.java:71)
122
    at net.fabricmc.tinyremapper.TinyRemapper$1$1.get(TinyRemapper.java:490)
123
    at net.fabricmc.tinyremapper.TinyRemapper$1$1.get(TinyRemapper.java:486)
124
    ... 4 more

My (not really knowledgeable) guess: is it because the bundled version of the JRE doesn't include the necessary components? Please let me know if there is anything else I can do to help debug!

shedaniel commented 1 year ago

I have added a gradle command to easily link the jre, now with the fix for the sources as well. See the new readme.

meadowsys commented 1 year ago

works, thank you so much!