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

WARN: stack trace in bright yellow, never finds yer file #5

Open
whiptastic opened this issue Jul 10, 2019 · 0 comments
Open

WARN: stack trace in bright yellow, never finds yer file #5

whiptastic opened this issue Jul 10, 2019 · 0 comments

Comments

@whiptastic
Copy link

GithubUpdater.autoUpdate(this, "ZombieStriker", "LobbyAPI", "LobbyAPI");

The problem is shown in this part of the stack trace:

java.io.FileNotFoundException: https://github.com/ZombieStriker/LobbyAPI/releases/download/v3.7.92/LobbyAPI

at me.zombie_striker.lobbyapi.utils.GithubUpdater$1.run(GithubUpdater.java:57) <<==

Where you call it in the above ref in Main.java, the JAR name doesn't match what's at the location you want. I think this would work:

GithubUpdater.autoUpdate(this, "ZombieStriker", "LobbyAPI", "LobbyAPI.jar");

That way, when you construct the URI here:

final URL download = new URL("https://github.com/" + author + "/" + githubProject + "/releases/download/"+ tagname + "/" + jarname);

The passed in jarname will actually be the name of your jar file in your Assets here:

https://github.com/ZombieStriker/LobbyAPI/releases/download/v3.7.92/LobbyAPI.jar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant