Skip to content

Epic Games refresh failing with error #5642

Description

@d-lindahl

Describe the bug

When refreshing the library and only logged in in Epic the refresh fails with an error and only about half of my games get added.

I've tried using the shipped legendary binary as well as the latest from https://github.com/legendary-gl/legendary

I've also manually run legendary list --third-party without issues both with the bundled binary and the alternate.

Output from the manual command lists 567 games:
Image

Error in the UI (this part is not in either the legendary or the heroic log):

* Unknown (App name: 9d943a160fa841859ac5c1f233789fcb | Version: 2.035387)[cli] INFO: Logging in...[Core] INFO: Trying to re-use existing login session...[cli] INFO: Getting game list... (this may take a while)Traceback (most recent call last):
File "legendary\cli.py", line 3149, in <module>File "legendary\cli.py", line 3060, in mainFile "legendary\cli.py", line 262, in list_gamesFile "legendary\models\game.py", line 98, in catalog_item_id
KeyError: 'id'
[32944] Failed to execute script 'cli' due to unhandled exception!

9d943a160fa841859ac5c1f233789fcb corresponds to Deliver Us Mars which is correctly listed when running the command manually
Image

However in the error and in the legendary log it is listed as "Unknown"

* Universe for Sale (App name: 5bdaa943f48a41598f0614391975242f | Version: 1.3.0Windows)
* Unknown (App name: 9d943a160fa841859ac5c1f233789fcb | Version: 2.035387)

After this, 282 games are available in the Heroic client. Deliver Us Mars is not one of them but a lot of games after U are still in the list even though it looks like the command just stops there.

Legendary log
legendary.log

Tried:
Logging out and logging in again, multiple times. Clearing the cache. Resetting Heroic. Re-installing Heroic.

Add logs

(02:50:27) [INFO]:    [Connection]:      Pinging external endpoints
(02:50:27) [INFO]:    [Connection]:      Connectivity: check-online
(02:50:27) [INFO]:    [Gog]:             Checking for existing gog manifests
(02:50:27) [INFO]:    [Backend]:         System Information: CPU: 16x Intel(R) Core(TM) i7-10700K CPU @ 3.80GHz
Memory: 68.6 GB (used: 26.84 GB)
GPUs:

OS: Microsoft Windows 10 Pro 10.0.19045 (win32)

The current system is not a Steam Deck

Software Versions:
  Heroic: 2.22.0 Hajrudin
  Legendary: 0.20.34 Direct Intervention
  gogdl: 1.2.1
  comet: comet 0.2.0
  Nile: 1.1.2 Will A. Zeppeli
(02:50:27) [INFO]:    [Connection]:      Connectivity: online
(02:50:27) [ERROR]:   [Gog]:             Unable to syncQueued playtime, userData not present
(02:50:27) [WARNING]: [Backend]:         Protocol already registered.
(02:50:27) [INFO]:    [Backend]:         User Not Found, removing it from Store
(02:50:27) [INFO]:    [Gog]:             Running command: GOGDL_CONFIG_PATH=C:\Users\Claudia\AppData\Roaming\heroic\gogdlConfig powershell -NoProfile Start-Process "`"C:\Program Files\Heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl.exe`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Claudia\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"auth`""
(02:50:27) [INFO]:    [Backend]:         Starting Plausible Analytics
(02:50:27) [INFO]:    [Backend]:         Shared Data: {"version":"2.22.0","gog":false,"epic":false,"amazon":false,"sideloaded":false,"providers":"","OS":"win32","arch":"x64","distro":"Microsoft Windows 10 Pro","distroVersion":"10.0.19045","isFlatpak":false,"isAppImage":false,"isSnap":false,"isSteamDeckGameMode":false,"isSteamDeck":false}
(02:50:27) [DEBUG]:   [Backend]:         Logging to file(s) C:\Users\Claudia\AppData\Local\Heroic\logs\runners\gog.log
(02:50:28) [INFO]:    [Backend]:         Frontend Ready
(02:50:28) [INFO]:    [Backend]:         Checking for current version changelog
(02:50:28) [INFO]:    [Legendary]:       Running command: LEGENDARY_CONFIG_PATH=C:\Users\Claudia\AppData\Roaming\heroic\legendaryConfig\legendary powershell -NoProfile Start-Process "`"C:\Program Files\Heroic Launcher Alt Legendary\legendary.exe`"" -Wait -NoNewWindow -ArgumentList "`"--version`""
(02:50:28) [INFO]:    [Backend]:         Checking for new Heroic Updates
(02:50:28) [INFO]:    [Gog]:             Running command: GOGDL_CONFIG_PATH=C:\Users\Claudia\AppData\Roaming\heroic\gogdlConfig powershell -NoProfile Start-Process "`"C:\Program Files\Heroic\resources\app.asar.unpacked\build\bin\x64\win32\gogdl.exe`"" -Wait -NoNewWindow -ArgumentList "`"--auth-config-path`"","`"C:\\Users\\Claudia\\AppData\\Roaming\\heroic\\gog_store\\auth.json`"","`"--version`""
(02:50:28) [INFO]:    [Nile]:            Running command: NILE_CONFIG_PATH=C:\Users\Claudia\AppData\Roaming\heroic\nile_config powershell -NoProfile Start-Process "`"C:\Program Files\Heroic\resources\app.asar.unpacked\build\bin\x64\win32\nile.exe`"" -Wait -NoNewWindow -ArgumentList "`"--version`""
(02:50:28) [DEBUG]:   [Backend]:         Logging to file(s) C:\Users\Claudia\AppData\Local\Heroic\logs\runners\nile.log
(02:50:28) [DEBUG]:   [Backend]:         Logging to file(s) C:\Users\Claudia\AppData\Local\Heroic\logs\runners\legendary.log
(02:50:28) [INFO]:    [Backend]:         VCRuntime is installed
(02:50:33) [INFO]:    [Backend]:         Starting the Download Queue
(02:51:20) [INFO]:    [Legendary]:       Logging in: LEGENDARY_CONFIG_PATH=C:\Users\Claudia\AppData\Roaming\heroic\legendaryConfig\legendary powershell -NoProfile Start-Process "`"C:\Program Files\Heroic Launcher Alt Legendary\legendary.exe`"" -Wait -NoNewWindow -ArgumentList "`"auth`"","`"--code`"","`"*****`""
(02:51:22) [INFO]:    [Frontend]:        Refreshing legendary Library
(02:51:22) [INFO]:    [Legendary]:       Refreshing library...
(02:51:22) [INFO]:    [Legendary]:       Refreshing Epic Games...
(02:51:22) [INFO]:    [Legendary]:       Running command: LEGENDARY_CONFIG_PATH=C:\Users\Claudia\AppData\Roaming\heroic\legendaryConfig\legendary powershell -NoProfile Start-Process "`"C:\Program Files\Heroic Launcher Alt Legendary\legendary.exe`"" -Wait -NoNewWindow -ArgumentList "`"list`"","`"--third-party`""
(02:51:27) [ERROR]:   [Legendary]:       TypeError: Cannot read properties of undefined (reading 'find')
    at oo (C:\Program Files\Heroic\resources\app.asar\build\main\main.js:170:5485)
    at C:\Program Files\Heroic\resources\app.asar\build\main\main.js:170:7495
    at Set.forEach (<anonymous>)
    at qm (C:\Program Files\Heroic\resources\app.asar\build\main\main.js:170:7483)
    at Module.Hm (C:\Program Files\Heroic\resources\app.asar\build\main\main.js:170:2153)
    at processTicksAndRejections (node:internal/process/task_queues:104:5)
    at C:\Program Files\Heroic\resources\app.asar\build\main\main.js:187:5278
    at Session.<anonymous> (node:electron/js2c/browser_init:2:116462)
(02:51:27) [INFO]:    [Legendary]:       Game list updated, got 308 games & DLCs
(02:51:27) [INFO]:    [Frontend]:        No cache found, getting data from legendary...
(02:51:27) [INFO]:    [Legendary]:       Refreshing library...
(02:51:27) [INFO]:    [Legendary]:       Refreshing Epic Games...
(02:51:27) [INFO]:    [Legendary]:       Running command: LEGENDARY_CONFIG_PATH=C:\Users\Claudia\AppData\Roaming\heroic\legendaryConfig\legendary powershell -NoProfile Start-Process "`"C:\Program Files\Heroic Launcher Alt Legendary\legendary.exe`"" -Wait -NoNewWindow -ArgumentList "`"list`"","`"--third-party`""
(02:51:31) [ERROR]:   [Legendary]:       TypeError: Cannot read properties of undefined (reading 'find')
    at oo (C:\Program Files\Heroic\resources\app.asar\build\main\main.js:170:5485)
    at C:\Program Files\Heroic\resources\app.asar\build\main\main.js:170:7495
    at Set.forEach (<anonymous>)
    at qm (C:\Program Files\Heroic\resources\app.asar\build\main\main.js:170:7483)
    at Module.Hm (C:\Program Files\Heroic\resources\app.asar\build\main\main.js:170:2153)
    at processTicksAndRejections (node:internal/process/task_queues:104:5)
    at C:\Program Files\Heroic\resources\app.asar\build\main\main.js:187:4372
    at Session.<anonymous> (node:electron/js2c/browser_init:2:116462)
(02:51:31) [INFO]:    [Legendary]:       Game list updated, got 308 games & DLCs
(02:51:32) [INFO]:    [Frontend]:        Force Update

Steps to reproduce

  1. Log in to Epic Games
  2. Go to the library (or later any time you try to refresh the library)
  3. Error is shown
Image Image

Full UI error
Heroic Error UI.txt

Expected behavior

Library refreshes without errors

Screenshots

No response

Heroic Version

Latest Stable

System Information

  • OS: Windows 10

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:unconfirmedSomeone works on identifying the issue

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions