Skip to content
This repository has been archived by the owner on Mar 12, 2023. It is now read-only.

Getting this error in any modpack I try to download (Server returned HTTP response code: 403 for URL) #52

Open
KauzDs opened this issue Jun 28, 2018 · 9 comments

Comments

@KauzDs
Copy link

KauzDs commented Jun 28, 2018

`~ Starting magical modpack download sequence ~
Input URL: https://minecraft.curseforge.com/projects/minecraft-billionaire
Input Version: latest
File URL: https://minecraft.curseforge.com/projects/minecraft-billionaire/files/latest
Final URL: https://media.forgecdn.net/files/2548/374/Minecraft+Billionaire-0.7.zip

Modpack filename is Minecraft+Billionaire-0.7.zip
CMPDL Temp Dir is C:\Users\KauzDs.cmpdl_temp
Modpack temporary directory is C:\Users\KauzDs.cmpdl_temp\Minecraft+Billionaire-0.7.zip
Downloading zip file Minecraft+Billionaire-0.7.zip
Unzipping file
Done unzipping
Parsing Manifest
Output Dir is C:\Users\KauzDs\Documents\Curse modpack downloader\Minecraft Billionaire-0.7
Directory doesn't exist, making it now
Downloading modpack from Manifest
Manifest contains 127 files to download

Downloading 231868/2415996
Project URL is http://minecraft.curseforge.com/projects/231868
File download URL is https://minecraft.curseforge.com/projects/endercore/files/2415996/download
Downloading EnderCore-1.10.2-0.4.1.66-beta.jar
Downloaded! 126/127 remaining

Downloading 74924/2380279
Project URL is http://minecraft.curseforge.com/projects/74924
File download URL is https://minecraft.curseforge.com/projects/mantle/files/2380279/download
Downloading Mantle-1.10.2-1.1.5.jar
Downloaded! 125/127 remaining

Downloading 227083/2424565
Project URL is http://minecraft.curseforge.com/projects/227083
File download URL is https://minecraft.curseforge.com/projects/baubles/files/2424565/download
Downloading Baubles-1.10.2-1.3.11.jar
Downloaded! 124/127 remaining

Downloading 225643/2391169
Project URL is http://minecraft.curseforge.com/projects/225643
File download URL is https://minecraft.curseforge.com/projects/botania/files/2391169/download
Downloading Botania r1.9-341.jar
Downloaded! 123/127 remaining

Downloading 224942/2422718
Project URL is http://minecraft.curseforge.com/projects/224942
File download URL is https://minecraft.curseforge.com/projects/dense-ores/files/2422718/download
Downloading denseores-1.11-1.0.2.jar
Downloaded! 122/127 remaining

Downloading 221857/2428363
Project URL is http://minecraft.curseforge.com/projects/221857
File download URL is https://minecraft.curseforge.com/projects/pams-harvestcraft/files/2428363/download
Downloading Pam%27s HarvestCraft 1.10.2j.jar
Error: class java.io.IOException: Server returned HTTP response code: 403 for URL: https://media.forgecdn.net/files/2428/363/Pam%2527s+HarvestCraft+1.10.2j.jar
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
java.net.URL.openStream(Unknown Source)
vazkii.cmpdl.CMPDL.downloadFileFromURL(CMPDL.java:369)
vazkii.cmpdl.CMPDL.downloadFile(CMPDL.java:325)
vazkii.cmpdl.CMPDL.downloadModpackFromManifest(CMPDL.java:218)
vazkii.cmpdl.CMPDL.downloadFromURL(CMPDL.java:107)
vazkii.cmpdl.OperatorThread.run(OperatorThread.java:19)`

@abortu
Copy link

abortu commented Jun 28, 2018

I'm trying to download SevTech Ages and am getting the same type of errors. It looks like the files that are unable to be downloaded have special characters in them like brackets, spaces, "+" sign, etc. It results in a broken download link I believe. Just my 2 cents. Hope that helps.

@frenchiveruti
Copy link

Use multiMC.

@abortu
Copy link

abortu commented Jun 29, 2018

@frenchiveruti, this program is how you download the modpack from curse to import into MultiMC. That's what I was trying to do. The correct workaround is use ATLauncher at least for SevTech, it's in there. It's not in MultiMC as it's not an FTB pack or one that's in their list.

Update Importing the zip from curse into MultiMC did download the mods and import correctly. I was under the impression from their github issues that it didn't work currently. Thanks for the tip! However, the bug is still a bug here. I suspect its from encoding/decoding the mod URL's incorrectly in CMPDL. URL's have to be converted properly or the special characters are incorrect. It looks like the special characters are being escaped twice incorrectly.

This line is the important one: "Downloading Pam%27s HarvestCraft 1.10.2j.jar"
It gets escaped into

https://media.forgecdn.net/files/2428/363/Pam%2527s+HarvestCraft+1.10.2j.jar

%25 is the HTML equivalent of "%"
It's double escaping. %25%27 decodes to %' when it should only be %27.

Hope that helps.

@frenchiveruti
Copy link

frenchiveruti commented Jul 6, 2018

However, the bug is still a bug here

I know, but I haven't seen Vazkii reply anything in this github for the last 4 months.

@matthboers
Copy link

For anyone still looking for a solution, you can download the problematic .jar files yourself from the curse page, and the program will detect the file as already existing. Make sure you download the .jar file corresponding to the Minecraft version. This fixed the solution for me and still saved me the hassle of installing everything manually. Just find the directory where it's installing everything to and drag the .jar in there.

@StoneLegion
Copy link

This is @Vazkii For you. Sadly comes with great ideas but never really finishes them. I'm also looking for a solution command line based.

@draeath
Copy link

draeath commented Sep 10, 2018

You might try one of the various forks that folks are maintaining.

@draeath
Copy link

draeath commented Sep 10, 2018

The fork by MrLavender appears to have a commit addressing this issue, in fact.

It seems to be working, for me. Note that the resulting files on-disk will have some of the offending characters stripped. Be aware of this, I would clean out the C:\Users\draeath\.cmpdl_temp directory (fix your username of course, non-windows it's probably ~/.cmpdl_temp but I'm unsure) to ensure you don't end up with redundant-but-differently-named files in the final instance.

@ujuxx
Copy link

ujuxx commented Jul 4, 2022

i have problems downloading the "Avatar 100 Days [Challenge]" it always says "exitcode -1" if anyone could help me there that would make me rlly happy cus i got that problem on some other games

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

No branches or pull requests

7 participants