GDLauncher icon indicating copy to clipboard operation
GDLauncher copied to clipboard

Instance installation hangs at "Downloading Mods 0%"

Open faizjamil opened this issue 3 years ago • 34 comments

Describe the bug When testing to see if I'm getting that bug where installing Forge hangs, I instead now see that when I am creating an instance of ATM6, it hangs at "Downloading Mods 0%"

To Reproduce Steps to reproduce the behavior:

  1. Get a fresh copy of GDLauncher v 1.1.5
  2. Set it up however you want
  3. Create an instance of ATM6.
  4. Watch it hang at "Downloading Mods 0%"

Expected behavior I expect the mods to be downloaded and the instance to be created.

Possible solutions I can't think of a solution right now, haven't looked through the codebase. However I suggest error handling should be worked on so if some step fails, the instance creation is aborted or at the least, a slightly more descriptive error message than two status codes that are vague (400 or 504, one indicates an error with the request, the other indicates an error from the server).

Actually, now that I'm looking at the error message again, it's making a request to api.gdlauncher.com, which is I assume a Custom API you guys are working on and should be disabled per the changelog, hmm. Screenshots If applicable, add screenshots to help explain your problem.

Operating System:

  • OS: Windows 10
  • Version: 21H1
  • Java Version: N/A
  • Minecraft Version: 1.16.5
  • Mod Loader: Forge

Additional context

Here's a copy/paste of the last little bit of output on the console

  Patching net/minecraft/util/math/shapes/EntitySelectionContext$1 1/1
index.js:711   Patching net/minecraft/util/math/shapes/EntitySelectionContext 1/1
index.js:711   Patching net/minecraft/tags/TagRegistry$OptionalNamedTag 1/1
index.js:711   Patching net/minecraft/tags/ITagCollectionSupplier$2 1/1
index.js:711   Patching net/minecraft/world/biome/BiomeAmbience$GrassColorModifier$ColorModifier 1/1
api.gdlauncher.com/cf/mods:1 Failed to load resource: the server responded with a status of 400 ()
Error: Request failed with status code 400
    at t.exports (file:///E:/Downloads/GDLauncher-win-portable%20(1)/resources/app.asar/build/static/js/10.4c67e557.chunk.js:2:332249)
    at t.exports (file:///E:/Downloads/GDLauncher-win-portable%20(1)/resources/app.asar/build/static/js/10.4c67e557.chunk.js:2:534552)
    at XMLHttpRequest.d.onreadystatechange (file:///E:/Downloads/GDLauncher-win-portable%20(1)/resources/app.asar/build/static/js/10.4c67e557.chunk.js:2:1179899)
addons-ecs.forgesvc.…6140/file/3358883:1 Failed to load resource: the server responded with a status of 504 ()
createError.js:16 Uncaught (in promise) Error: Request failed with status code 504
    at t.exports (file:///E:/Downloads/GDLauncher-win-portable%20(1)/resources/app.asar/build/static/js/10.4c67e557.chunk.js:2:332249)
    at t.exports (file:///E:/Downloads/GDLauncher-win-portable%20(1)/resources/app.asar/build/static/js/10.4c67e557.chunk.js:2:534552)
    at XMLHttpRequest.d.onreadystatechange (file:///E:/Downloads/GDLauncher-win-portable%20(1)/resources/app.asar/build/static/js/10.4c67e557.chunk.js:2:1179899)
addons-ecs.forgesvc.…1034/file/3390770:1 Failed to load resource: the server responded with a status of 504 ()
addons-ecs.forgesvc.…1430/file/3169106:1 Failed to load resource: the server responded with a status of 504 ()

faizjamil avatar Nov 06 '21 20:11 faizjamil

Cloned the repo, started a dev environment, still the same problem.

faizjamil avatar Nov 06 '21 20:11 faizjamil

I meet this problem, too on GD Launcher v1.1.15. Console Error image

ZYLHL avatar Nov 07 '21 18:11 ZYLHL

The original problem is fixed. Code 400 stands for „Bad Request“. Maybe your internet connection or forges server is the problem? (Can you try again, maybe it had an outage)

Eskaan avatar Nov 07 '21 18:11 Eskaan

Seems to be fixed now, thanks.

faizjamil avatar Nov 07 '21 19:11 faizjamil

I've getting this same error on at least two modpacks today (Benchmark II and AoF5). The application needs some sort of recovery path when it gets 400 from api.gdlaucher.com/cf/mods

stephen-smith avatar Jan 08 '22 01:01 stephen-smith

Sadly, there is no recovery path to CurseForges API - There is only one and we are doing our best on keeping it working by proxying and caching it on the way to you. Also CurseForge has deprecated their old API so we will have to proxy it whit our API key in the near future anyways because the old API will be taken off.

Eskaan avatar Jan 08 '22 22:01 Eskaan

As this issue still persists (And people keep opening new ones) I will see this issue as the first one complaining about the problem. In the mentioned duplicate above you can actually see the Launcher trying to contact our API, failing, and then trying to directly contact the deprecated API. Sadly we can't do really much about this.

Eskaan avatar Jan 08 '22 22:01 Eskaan

Another reason for failing API contacts can be an outdated Launcher version and/or a mod that has been taken off the API by the mod Author.

Eskaan avatar Jan 08 '22 22:01 Eskaan

The current behavior is unacceptable. I'm not saying you side step using the CF API, I'm saying "Downloading... 0%" needs to change to "Download Failed. Click to retry." or something to (a) prevent the user from trying to run an incomplete pack and (b) let the user know what is available to do next, even if that is "wait 30 minutes before hammering the CF API again" or "complain to CurseForce on twitter" or something else that isn't an immediate resolution.

I was on 1.1.20, which was the latest one on Flathub, FYI.

stephen-smith avatar Jan 08 '22 22:01 stephen-smith

I've been having the exact same issue (400 and 504 error code).

Repairing the instance, deleting and starting over, closing GD Launcher and re-opening... I've tried to download two modpacks several times now and nothing fixes it. The only way around it is to download the modpacks as a zip and install them manually, which also means you have repeat the process every time there's an update.

IvoryOwl92 avatar Jan 09 '22 10:01 IvoryOwl92

It could also be a problem of Mods being taken down form the API. If that is the case here, wie can‘t do anything about it. (EDIT: German spell correction)

Eskaan avatar Jan 10 '22 10:01 Eskaan

Note that this issue is just an older type of an issue whit the same orgin - the CurseForge API Failing to answer both our proxy as also directly.

Eskaan avatar Jan 10 '22 21:01 Eskaan

It could also be a problem of Mods bring tanken down form the API. In that is the case therme, wie can‘t do anything about it.

Would it maybe be possible to notify the user, which mods has failed?

TheButterbrotMan avatar Jan 11 '22 15:01 TheButterbrotMan

I think this is an issue on CF's side, I just tried downloading ATM 6 and it worked fine. Don't worry about api.gdlauncher.com failing, that's alright. I agree that we need to change the behavior and it's not the best but I don't have time to refactor or improve it at the moment, I will do it as soon as I can.

blarfoon avatar Jan 11 '22 18:01 blarfoon

I am having this issue right now.

pixartist avatar Jan 12 '22 09:01 pixartist

Same here right now

Afrocntrik avatar Jan 13 '22 21:01 Afrocntrik

Same here, and other launchers and non-launchers (Tested ATLauncher, MultiMC, CMPDL) can download successfully, so it does seem to be a GDLauncher issue

NathanDreamweaver avatar Jan 14 '22 13:01 NathanDreamweaver

Same here right now

whitewillow avatar Jan 14 '22 18:01 whitewillow

i somehow got it to download even with the same error as mentioned in my issue but now i cant start the pack or rather it crashes on me image

so is there a workaround for the gdlauncher or do i have to use another launcher untill its fixed?

Darudas avatar Jan 15 '22 15:01 Darudas

Contributing, very sporadic on when it'll resolve itself, consistently errors out and doesn't proceed, but on occasion will "fix" itself and download properly. Went ahead and tried on MultiMC and ran into no issues, as well as that CurseForge app and everything functioned just fine.

That GD Error

LenoraKestrel avatar Jan 15 '22 16:01 LenoraKestrel

The problem is the old API we are using. The 400 error is our proxy that has issues. (I don’t have access to it and also know very little Go, which is running on it.) Davide is currently very busy.

Eskaan avatar Jan 15 '22 16:01 Eskaan

Success (maybe luck?) I experienced this today while trying to install Create: Above and Beyond. On the fourth attempt, once GDLauncher hung on "Downloading 0%", I hit the ">_" in the top left title bar. A few seconds later mods started downloading, and the install successfully finished. FYI, the Developer Tools window says, "". (I use NoScript in FireFox...). It was also the only time I didn't rename the instance.

Windows 10 x64 Pro GDLauncher v1.1.21 (beta channel)

toruPuchuu avatar Jan 18 '22 23:01 toruPuchuu

Can confirm successful installation 2/3 times. Mods successfully started downloading once i repaired the failed instance of Roguelike Adventures and Dungeons. Had to wait about 2 minutes for it to start, though. The network menu still showed failed (400) request for the proxy, but all the other requests for separate mod info went through. The instance was renamed, btw. Tried installing The Pixelmon Modpack. The process went without hiccups and it started downloading mods immediately. Finished without issues. Installation of ATM6 failed three times in a row, constantly failing with 504 gateway timeout at random mod requests.

Manjaro Linux, v1.1.21

Shoshak avatar Jan 19 '22 13:01 Shoshak

The current behavior is unacceptable. I'm not saying you side step using the CF API, I'm saying "Downloading... 0%" needs to change to "Download Failed. Click to retry." or something to (a) prevent the user from trying to run an incomplete pack and (b) let the user know what is available to do next, even if that is "wait 30 minutes before hammering the CF API again" or "complain to CurseForce on twitter" or something else that isn't an immediate resolution.

I was on 1.1.20, which was the latest one on Flathub, FYI.

100% this. The API failure should fail much more gracefully. If it's occuring because a couple mods in a pack are no longer available through the API, skip to the next mod in the list. When the pack finishes downloading, show a modal popup with mods that failed to download, and their CurseForge URL if possible.

EnigmaticaGH avatar Jan 23 '22 03:01 EnigmaticaGH

Here's something that worked for me:

  1. Kill and launch again gdlauncher
  2. Open up the java script dev console before updating the pack ( >_ button top left)
  3. Update the pack
  4. Wait until it gets stuck at 0%
  5. Go to javascript dev console, network tab, sort by status descending, go to top, locate "mods" (should be red, status 504 or 400)
  6. Right click on it in left side list and "Replay XHR". Repeat until it works (you'll see the percentage start to go up in gd launcher window)

psperneac avatar Jan 26 '22 21:01 psperneac

Another workaround for this is:

Download the Overwolf Curseforge launcher (or any other launcher that supports curse/ftb) Download the pack you want Copy files to Instance Folder in GDLauncher

wcomartin avatar Jan 27 '22 13:01 wcomartin

For everyone searching for a temporary fix, please see https://github.com/gorilla-devs/GDLauncher/issues/1266#issuecomment-1026151091

Eskaan avatar Feb 02 '22 07:02 Eskaan

Download the Overwolf Curseforge launcher

Oddly enough, not an option for me. I'm on Debian Linux.

stephen-smith avatar Feb 02 '22 21:02 stephen-smith

For everyone searching for a temporary fix, please see #1266 (comment)

the problem still persist i'm changing to multimc now because is impossible to download or update any pack :(

kristu avatar Feb 06 '22 08:02 kristu

The issue of not being able to download mods from Curseforge from a non-curseforge launcher isn't unique to GDLauncher. I downloaded ATLaumcher yesterday and encountered a similar issue.

On Sun, Feb 6, 2022, 3:46 AM kristu @.***> wrote:

For everyone searching for a temporary fix, please see #1266 (comment) https://github.com/gorilla-devs/GDLauncher/issues/1266#issuecomment-1026151091

the problem still persist i'm changing to multimc now because is impossible to download any or update any pack :(

— Reply to this email directly, view it on GitHub https://github.com/gorilla-devs/GDLauncher/issues/1154#issuecomment-1030778650, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABUCMSUEZRSF3QJWPDZTCLDUZYYPXANCNFSM5HP6LV7Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you modified the open/close state.Message ID: @.***>

faizjamil avatar Feb 06 '22 13:02 faizjamil