Installer icon indicating copy to clipboard operation
Installer copied to clipboard

[Bug] BD Installer hangs after "Downloading asar file"

Open CorneliusCornbread opened this issue 1 year ago • 8 comments

Before Reporting

  • [X] I found no existing issues matching my bug
  • [X] My issue is not caused by a plugin or theme

Describe the Bug

Using the BetterDiscord app image on Fedora 39 it seems that every attempt at installing BetterDiscord leads to an installer hang. Running the app image through the terminal does not give any notable output, it just simply hangs. Sometimes it complains that it failed to download the package from the official website giving a 502 error, sometimes it just hangs while downloading the asar file.

Usual output before hanging

Downloading asar file
❌ Failed to download package from the official website
❌ Status code did not indicate success: 502
Falling back to GitHub...

Expected Behavior

Better discord installer works

Steps To Reproduce

  1. Download app image
  2. Run app image
  3. Go through install process
  4. See hang on install

Operating System

Linux

Discord Version

Stable

BetterDiscord Version

v1.3.0

Anything else?

Installer window is still responsive, it just stops doing anything.

CorneliusCornbread avatar Nov 23 '23 02:11 CorneliusCornbread

I will open up a fedora VM momentarily to see if I can replicate the issue. Where did you get your Discord package from?

Riddim-GLiTCH avatar Nov 23 '23 07:11 Riddim-GLiTCH

I will open up a fedora VM momentarily to see if I can replicate the issue. Where did you get your Discord package from?

I get it from the RPM fusion repos.

CorneliusCornbread avatar Nov 23 '23 20:11 CorneliusCornbread

I don't know nothing about nothing, but adding any kind of delay before the fallback request seemed to fix it for me. Was only able to reproduce on Fedora though so maybe that's just bunk?

Huderon avatar Nov 24 '23 06:11 Huderon

Same thing happens here but Downloading asar file ❌ Failed to download package from the official website ❌ Status code did not indicate success: 403 Falling back to GitHub...

Vulpovile avatar Nov 28 '23 22:11 Vulpovile

Did the fallback to github not work in your case?

zerebos avatar Nov 28 '23 22:11 zerebos

same issue for me on windows and the fallback to github doesnt work

999smokes avatar Apr 03 '24 16:04 999smokes

same issue for me on windows and the fallback to github doesnt work

#368 is unrelated

Inve1951 avatar Apr 03 '24 18:04 Inve1951

I will open up a fedora VM momentarily to see if I can replicate the issue. Where did you get your Discord package from?

I get it from the RPM fusion repos.

I completely forgot to update the status on my testing for this issue. My Sincerest apologies. With the package mentioned installed, I was not able to replicate this issue. Perhaps I did not install the correct version of Fedora. My knowledge of what they produce is rather limited. However, From my knowledge of the installation process, it shouldn't be too hard to manually install BD either way.

You can try manually compiling the Asar or downloading it from the BetterDiscord repo. then you want to modify your discord installation and simply require the downloaded Asar file in the desktop_discord_core index.js

This wont fix your installer issue, but it will get BD running on your system.

Riddim-GLiTCH avatar Apr 05 '24 14:04 Riddim-GLiTCH