MRepoApp / MRepo

A modules manager for Magisk, KernelSU and APatch
GNU General Public License v3.0
1k stars 44 forks source link

[BUG] Unknown error while attempting to download a module from a repo #176

Closed lucker999 closed 6 months ago

lucker999 commented 6 months ago

[###] Checklist

Bug description

In Non-Root mode I attempt to download modules from tow repo (IzzyOnDroid and Magisk Modules Alt Repo (mirror)) it doesn't work: instantly get a notification with a message "Unknown error". BTW, the same behavior occurs if I change the mode to Root (Magisk).

Expected behavior

Module downloaded once I tap on the button "Download"

Actual behavior

Instantly get a notification with a message "Unknown error", no download happens.

Steps to reproduce

  1. Install the latest version of Mrepo (currently 2.4.4 (713))
  2. Add repos IzzyOnDroid and Magisk Modules Alt Repo (mirror)
  3. Open a module card and choose the tab "Version"
  4. Select the latest version of a module and tap on the button "Download" at the bottom of the screen
  5. Get notification with a message "Unknown error", no download happens

UI / OS

crDroid 10.2 (release from 2024.02.10)

Android Version

14

Additional info

OnePlus 11 Can manually download modules from the same repo in a browser and successfully install them, which is great but hugely inconvenient. Hope you can fix this. Screenshot_20240307-173750_MRepo

SanmerDev commented 6 months ago

Can you provide logs?

lucker999 commented 6 months ago

This is form an app MatLog (crDroid native), but I'm not sure if this is enough. If you provide some guidance on how to accuire a log I would be much obliged since I'm just a user (somewhat advanced), but not an engineer :)

SanmerDev commented 6 months ago

You can try changing the download path, but I'm not sure this will work.

lucker999 commented 6 months ago

Already done hat. Started with defaults (Downloads), then created a directory Magisk and changed to it. No changes.

SanmerDev commented 6 months ago

@lucker999, I added a button to export the logs in top bar of Settings page

The latest ci version: MRepo-2.4.4.dev.6b9a8c2-730-release

lucker999 commented 6 months ago

Thank you very much for the efforts, I appreciate your nice gesture. I installed the release you kindly built by the link and, surprisingly, it works flawlessly. I successfully tested downloads in the default directory (Downloads), but changing it appears to be somewhat tricky: for some reason I cannot choose a directory I created in the root of internal storage. Not that it pose any problem. I created a directory (Magisk) in the Downloads and that works too. Encouraged by that, I freshly installed the generic Mrepo release from F-Droid and it worked too. So, wrapping this up, we just spent some time chasing non-existing bug. I'm sorry about that, though have no idea why this has happened. Mrepo was one of half of dozens the very first apps I installed on the new phone with freshly flashed latest crDroid. Once again, thank you for the efforts and hope you will develop this awesome tool further.