trembon / switch-library-manager

Complete solution to manage, organize and keep your local switch backup game library up to date . Cross platform, supports all game formats.
MIT License
46 stars 2 forks source link

If They Do Not Exist, SLM Errors on Trying to Download Versions.Json and Titles.Json #35

Open harvestry-of-ghosts opened 2 months ago

harvestry-of-ghosts commented 2 months ago

When starting SLM prom a pre-existing setup of the app and there are no pre-existing versions.json or titles.json, downloading of both fails with error and produces 0kb files. This only happens with a pre-existing folder. If a fresh empty folder is used and only Switch-Library-Manager.exe and prod.keys are placed in the new folder, the json files download properly as expected. Something going on if the files are deleted from a pre-existing SLM setup folder and you start the app. Edit: Using commit 2217b39 but also tried "Latest" version 1.6.0 with same results.

Clipboard_07-05-2024_01

larg000 commented 2 months ago

these error may come from settings.json

for some reason the definition of variables "versions_json_url" and "titles_json_url" seem to become empty in file.

harvestry-of-ghosts commented 2 months ago

these error may come from settings.json

for some reason the definition of variables "versions_json_url" and "titles_json_url" seem to become empty in file.

I deleted the two json files to trigger the error message and then looked at my settings file. The urls are still there for me. Tried several times but the urls don't ever become empty on my end. Also, the error can still be replicated 100% of the time after a fresh settings file is generated by deleting the other two json files and opening the app again.

trembon commented 3 weeks ago

i did some updates when reading the settings file regarding verifying that urls and files exists correctly and try to correct them if the settings are in a bad state, hopefully this will resolve some of these errors