You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After contacting the API for information about a version of a plugin, the downloadUrl is incorrect and results in a 404 error. This also seems to be an issue on the Hangar site as well when downloading plugin jar files.
Expected behavior
The plugin jar file would be downloaded.
Steps to reproduce
Way one:
Ask the API for information regarding a plugin version using a request like this: https://hangar.papermc.io/api/v1/projects/viaversion/versions/4.8.1
In the returned JSON, get the download link from: downloads > PAPER > downloadUrl
Try to download the plugin jar file with the downloadUrl.
The 404 arises when trying to download from the downloadUrl link given.
Way Two:
Find plugin on Hangar site
Attempt to download plugin jar file
404 error
Other
The issue arises from the capitalization not being exact on the plugin name portion of the link.
Incorrectly Formatted Download Link Given by API: https://hangarcdn.papermc.io/plugins/ViaVersion/viaversion/versions/4.8.1/PAPER/ViaVersion-4.8.1.jar
This issue seems to happen randomly as sometimes the API responds with the correct download link but other times will give a wrongly formatted one. The only thing I can think of is the API passing the lowercase plugin slug directly into the link rather than the properly capitalized plugin name? Or maybe the plugin name is incorrectly being lowercased at some point?
The text was updated successfully, but these errors were encountered:
DaBlaze
changed the title
API/Hangar site gives download link that resolves in a 404 error
API/Hangar site gives download link that results in a 404 error
Oct 31, 2023
Observed/problematic behavior
After contacting the API for information about a version of a plugin, the downloadUrl is incorrect and results in a 404 error. This also seems to be an issue on the Hangar site as well when downloading plugin jar files.
Expected behavior
The plugin jar file would be downloaded.
Steps to reproduce
Way one:
https://hangar.papermc.io/api/v1/projects/viaversion/versions/4.8.1
Way Two:
Other
The issue arises from the capitalization not being exact on the plugin name portion of the link.
Correctly Formatted Download Link:
https://hangarcdn.papermc.io/plugins/ViaVersion/ViaVersion/versions/4.8.1/PAPER/ViaVersion-4.8.1.jar
Incorrectly Formatted Download Link Given by API:
https://hangarcdn.papermc.io/plugins/ViaVersion/viaversion/versions/4.8.1/PAPER/ViaVersion-4.8.1.jar
This issue seems to happen randomly as sometimes the API responds with the correct download link but other times will give a wrongly formatted one. The only thing I can think of is the API passing the lowercase plugin slug directly into the link rather than the properly capitalized plugin name? Or maybe the plugin name is incorrectly being lowercased at some point?
The text was updated successfully, but these errors were encountered: