HGL
flat-fuchsia

Amazon Games corrupted installed.json

I logged in to Amazon Games, but the games don't even load, and I can't log in again. Log's say it's corrupted installed.json. The content of the file is just "null%". I deleted it so that the program can recreate it, but it's the same again.
49 Replies
flat-fuchsia
flat-fuchsiaOP•2y ago
afraid-scarlet
afraid-scarlet•2y ago
looks like you successfully logged in in terms of installed.json that shouldn't be a problem, however try changing it's contents to []
but the games don't even load
are you sure you are not in Epic or GOG tab?
flat-fuchsia
flat-fuchsiaOP•2y ago
I don't even have an Amazon Tab
flat-fuchsia
flat-fuchsiaOP•2y ago
No description
afraid-scarlet
afraid-scarlet•2y ago
what does the Manage accounts say
flat-fuchsia
flat-fuchsiaOP•2y ago
That it's not logged in. I can click on "Amazon Login", but when i Do, it's stuck on "Preparing Login"
afraid-scarlet
afraid-scarlet•2y ago
[7/25/2023, 12:00:21 PM] XDG_CONFIG_HOME=/home/tomek/.config/heroic/nile_config /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/nile auth --login --non-interactive
ERROR [CLI]: You are already logged in
[7/25/2023, 12:00:21 PM] XDG_CONFIG_HOME=/home/tomek/.config/heroic/nile_config /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/nile auth --login --non-interactive
ERROR [CLI]: You are already logged in
makes sense because it says you are logged in already
flat-fuchsia
flat-fuchsiaOP•2y ago
after i changed the contents to []
flat-fuchsia
flat-fuchsiaOP•2y ago
and it appended the percentage sign after I restarted the app
No description
flat-fuchsia
flat-fuchsiaOP•2y ago
but it's not really a percentage sign, some kind of invisible character because it's not appearing in text editors
afraid-scarlet
afraid-scarlet•2y ago
did you use nile previously? I guess you can workaround it by running XDG_CONFIG_HOME=/home/tomek/.config/heroic/nile_config /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/nile auth --logout and logging in Heroic again
flat-fuchsia
flat-fuchsiaOP•2y ago
I didn't but I used amazon on lutris
afraid-scarlet
afraid-scarlet•2y ago
lutris doesn't use nile directly so this shouldn't be an issue
flat-fuchsia
flat-fuchsiaOP•2y ago
Managed to log out, logged back in, but same problem
afraid-scarlet
afraid-scarlet•2y ago
send the log of that last login
flat-fuchsia
flat-fuchsiaOP•2y ago
But it might contain sensitive information? Cookies or something, looks like it.
afraid-scarlet
afraid-scarlet•2y ago
cut out that parts then the long url and hashes although it shouldn't allow anyone to use them since you are logged in already
flat-fuchsia
flat-fuchsiaOP•2y ago
flat-fuchsia
flat-fuchsiaOP•2y ago
I'll reboot my PC, i forgot I updated the kernel and didn't reboot.
afraid-scarlet
afraid-scarlet•2y ago
(12:32:15) INFO: [Nile]: Game list updated, got 90 games
hmm, seems it can read that part
flat-fuchsia
flat-fuchsiaOP•2y ago
rebooted, reinstalled heroic re-logged in, but still same issue
afraid-scarlet
afraid-scarlet•2y ago
GitHub
[FIX]: show install size for amazon games by imLinguin · Pull Reque...
Updated nile to store install size in installed.json Additionally I reproduced how nile creates folder names to avoid miss matches Use the following Checklist if you have changed something on the B...
afraid-scarlet
afraid-scarlet•2y ago
also check user.json file in ~/.config/heroic/nile_config/nile/ see if it has given_name field
flat-fuchsia
flat-fuchsiaOP•2y ago
it's empty the given_name field
afraid-scarlet
afraid-scarlet•2y ago
and name isn't?
flat-fuchsia
flat-fuchsiaOP•2y ago
also empty
afraid-scarlet
afraid-scarlet•2y ago
hmm
flat-fuchsia
flat-fuchsiaOP•2y ago
everything else has a value "home_region": "NA" I'm from EU, but I don't think it matters. Tested the appimage, also doesn't work
flat-fuchsia
flat-fuchsiaOP•2y ago
That's the installed.json it created.
flat-fuchsia
flat-fuchsiaOP•2y ago
There's this percentage sign at the end when I use cat to view it. That's why it throws "Error: Error invoking remote method 'checkGameUpdates': SyntaxError: Unexpected end of JSON input", I guess.
afraid-scarlet
afraid-scarlet•2y ago
it's unrelated, because nile prints message like [ERROR]: No games installed so it's not valid JSON
flat-fuchsia
flat-fuchsiaOP•2y ago
I mean whatever is creating the installed.json file is adding the unexpected chracter to the end and Heroic can't read the file I deleted the installed.json file and created a new one with [] inside and now it's working with the AppImage version
afraid-scarlet
afraid-scarlet•2y ago
can you see your games?
flat-fuchsia
flat-fuchsiaOP•2y ago
It didn't work If i just edited the installed.json that was created. Yes
afraid-scarlet
afraid-scarlet•2y ago
what is your username in Account manager
flat-fuchsia
flat-fuchsiaOP•2y ago
"B" because i edited the user.json, I forgot
afraid-scarlet
afraid-scarlet•2y ago
remove that B it will not know you are logged in
flat-fuchsia
flat-fuchsiaOP•2y ago
I logged out, logged back in, and it's not working again, even if I create the installed.json file myself...
afraid-scarlet
afraid-scarlet•2y ago
exactly working on a fix right now thanks for the report
flat-fuchsia
flat-fuchsiaOP•2y ago
Sure thing, let me know when you want me to test it.
afraid-scarlet
afraid-scarlet•2y ago
try latest AppImage @Shake
flat-fuchsia
flat-fuchsiaOP•2y ago
It works! Didn't even need to re-login Installing a game right now.
afraid-scarlet
afraid-scarlet•2y ago
try to break it and report back 🙂 appreciate the help
flat-fuchsia
flat-fuchsiaOP•2y ago
I'm not logged in in the browser on Stores page, but I think it's expected.
afraid-scarlet
afraid-scarlet•2y ago
yes, session is separate
flat-fuchsia
flat-fuchsiaOP•2y ago
I installed the games, but can't run them 0024:err:esync:esync_init Server is running with WINEESYNC but this process is not, please enable WINEESYNC or restart wineserver. Is the error I tried with ESYNC enabled and disabled in the settings with wine-ge-latest
afraid-scarlet
afraid-scarlet•2y ago
kill all wine processes
flat-fuchsia
flat-fuchsiaOP•2y ago
I reinstalled wine, it's working now.

Did you find this page helpful?