Nincraft/ModPackDownloader

The latest version fails with HTTP response code: 504

juraj-hrivnak opened this issue · 2 comments

Versions 0.6.1 - 0.7.1 fails to download mods from time to time.
It could be related to some CurseForge latest update, maybe.

modPackDownloader.log
manifest.zip

This is from the latest ModPackDownloader log

01-08-2022 21:36:09.939 [main] INFO  com.nincraft.modpackdownloader.cli.ModpackDownloaderCLI - Starting ModpackDownloaderManager with arguments: [-manifest, modpack/manifest.json, -folder, ../mods]
01-08-2022 21:36:22.796 [main] ERROR com.nincraft.modpackdownloader.container.CurseFile - java.io.IOException: Server returned HTTP response code: 504 for URL: https://addons-ecs.forgesvc.net/api/v2/addon/385654
01-08-2022 21:38:20.022 [main] ERROR com.nincraft.modpackdownloader.container.CurseFile - java.io.IOException: Server returned HTTP response code: 504 for URL: https://addons-ecs.forgesvc.net/api/v2/addon/268250
01-08-2022 21:39:00.522 [main] ERROR com.nincraft.modpackdownloader.container.CurseFile - java.io.IOException: Server returned HTTP response code: 504 for URL: https://addons-ecs.forgesvc.net/api/v2/addon/250398
01-08-2022 21:39:33.573 [main] ERROR com.nincraft.modpackdownloader.container.CurseFile - java.io.IOException: Server returned HTTP response code: 504 for URL: https://addons-ecs.forgesvc.net/api/v2/addon/255257

I got a similar error:

$ java -jar /srv/tools/ModpackDownloader-cli.jar -manifest /srv/modpack/manifest.json -folder /srv/minecraft/mods
WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance.
19:00:43.045 [main] INFO  com.nincraft.modpackdownloader.cli.ModpackDownloaderCLI:15 - Starting ModpackDownloaderManager with arguments: [-manifest, /srv/modpack/manifest.json, -folder, /srv/minecraft/mods]
19:00:43.652 [main] ERROR com.nincraft.modpackdownloader.container.CurseFile:90 - java.io.IOException: Server returned HTTP response code: 503 for URL: https://addons-ecs.forgesvc.net/api/v2/addon/361579
19:00:43.856 [main] ERROR com.nincraft.modpackdownloader.container.CurseFile:90 - java.io.IOException: Server returned HTTP response code: 503 for URL: https://addons-ecs.forgesvc.net/api/v2/addon/399309
19:00:44.031 [main] ERROR com.nincraft.modpackdownloader.container.CurseFile:90 - java.io.IOException: Server returned HTTP response code: 503 for URL: https://addons-ecs.forgesvc.net/api/v2/addon/394468
19:00:44.191 [main] ERROR com.nincraft.modpackdownloader.container.CurseFile:90 - java.io.IOException: Server returned HTTP response code: 503 for URL: https://addons-ecs.forgesvc.net/api/v2/addon/360438
19:00:44.357 [main] ERROR com.nincraft.modpackdownloader.container.CurseFile:90 - java.io.IOException: Server returned HTTP response code: 503 for URL: https://addons-ecs.forgesvc.net/api/v2/addon/627566

Version: ModpackDownloader-cli-0.7.2.jar

this is because curseforge updated its API.

see here

this project will have to be updated a bit