Heroic-Games-Launcher / HeroicGamesLauncher

A games launcher for GOG, Amazon and Epic Games for Linux, Windows and macOS.
https://heroicgameslauncher.com
GNU General Public License v3.0
8.02k stars 422 forks source link

Cannot get game info: Unexpected token 'N', "N 3: Seven"... is not valid JSON #3333

Open grgar opened 9 months ago

grgar commented 9 months ago

Describe the bug

On clicking Epic's HITMAN 3 I get ‘Cannot get game info’. Tried clearing cache and logging out & in.

I'm guessing it's not liking the colon in the DLC titles (‘HITMAN 3: Seven Deadly Sins…’.).

{"game": {"app_name": "Eider", "title": "HITMAN 3", "version": "7255037", "platform_versions": {"Windows": "7255037"}, "cloud_saves_supported": true, "cloud_save_folder": "{AppData}/../Roaming/IO Interactive/Epic/{EpicId}/HITMAN3/", "cloud_save_folder_mac": null, "is_dlc": false, "external_activation": null, "launch_options": [], "owned_dlc": [{"app_name": "364a7ba167174e90b70d198a413700ff", "title": "HITMAN 3: Seven Deadly Sins Act 4: Lust", "installable": [{"id": "d6af9d8ff8904187977c8268ff052313", "appId": "364a7ba167174e90b70d198a413700ff", "platform": ["Windows"], "dateAdded": "2019-09-10T00:00:00.000Z"}], "id": "137c4799978d459fa43b9b60ac38523a"}, {"app_name": "EiderBonusSuitPack", "title": "HITMAN 3 - Trinity Pack", "installable": [{"id": "0a489296be3d473ca7cc7adf941ace61", "appId": "EiderBonusSuitPack", "platform": ["Windows"]}], "id": "c68c315ea79c4954b18003b23e96f0d9"}, {"app_name": "79d72c1d8de84e0b97d378bbc4074340", "title": "HITMAN 3: Seven Deadly Sins Act 5: Gluttony", "installable": [{"id": "d6af9d8ff8904187977c8268ff052313", "appId": "79d72c1d8de84e0b97d378bbc4074340", "platform": ["Windows"], "dateAdded": "2019-09-10T00:00:00.000Z"}], "id": "c9320aa54b8c4ea3a0aa906475c844d5"}, {"app_name": "94bb539b7f6648189f38bb3de9937e6c", "title": "HITMAN 2 Standard", "installable": [{"id": "1f8b3fd0116044bcbdc294c9db10a586", "appId": "94bb539b7f6648189f38bb3de9937e6c", "platform": ["Windows"], "dateAdded": "2020-06-30T00:00:00.000Z"}], "id": "8b2c0293d4dd4589a632e095e151437b"}, {"app_name": "addd421d0f1d4573914f915a697054de", "title": "HITMAN 1 GOTY Upgrade", "installable": [{"id": "1f8b3fd0116044bcbdc294c9db10a586", "appId": "addd421d0f1d4573914f915a697054de", "platform": ["Windows"], "dateAdded": "2020-06-30T00:00:00.000Z"}], "id": "931c36e78d0848e59bafb10e2f693213"}, {"app_name": "44d7e02592894e7ea13c048a5a3a47fb", "title": "HITMAN 3: Seven Deadly Sins Act 6: Envy", "installable": [{"id": "d6af9d8ff8904187977c8268ff052313", "appId": "44d7e02592894e7ea13c048a5a3a47fb", "platform": ["Windows"], "dateAdded": "2019-09-10T00:00:00.000Z"}], "id": "90a7d47498e84501900f1f8f845ebde0"}, {"app_name": "EiderGoldPack", "title": "HITMAN 3 Deluxe Pack", "installable": [{"id": "1f946414c3414d40a0db3bab0dfd79c0", "appId": "EiderGoldPack", "platform": ["Windows"]}], "id": "230d9a0aba544fb6a3ef49f7876ceeee"}, {"app_name": "fc97ef705954490ab4bf3d6773bce766", "title": "Dartmoor", "installable": [{"id": "1f8b3fd0116044bcbdc294c9db10a586", "appId": "fc97ef705954490ab4bf3d6773bce766", "platform": ["Windows"], "dateAdded": "2020-06-30T00:00:00.000Z"}], "id": "8b0bec59a06d491c8023729d72e492db"}, {"app_name": "62af9e3ead7a49d59f12ae6196af8117", "title": "Carpathian Mountains", "installable": [{"id": "1f8b3fd0116044bcbdc294c9db10a586", "appId": "62af9e3ead7a49d59f12ae6196af8117", "platform": ["Windows"], "dateAdded": "2020-06-30T00:00:00.000Z"}], "id": "cd7cf37e82c44fb489d799b16cbb5ee4"}, {"app_name": "cfcad5e03dd543da9922c6a6751710f5", "title": "HITMAN 2 Expansion", "installable": [{"id": "1f8b3fd0116044bcbdc294c9db10a586", "appId": "cfcad5e03dd543da9922c6a6751710f5", "platform": ["Windows"], "dateAdded": "2020-06-30T00:00:00.000Z"}], "id": "abe98f70607642e0a586c6ae55012afe"}, {"app_name": "1d60c1fc8e484f74bf26b862b848b7bf", "title": "HITMAN 3: Seven Deadly Sins Act 3: Sloth", "installable": [{"id": "d6af9d8ff8904187977c8268ff052313", "appId": "1d60c1fc8e484f74bf26b862b848b7bf", "platform": ["Windows"], "dateAdded": "2019-09-10T00:00:00.000Z"}], "id": "ddcc46be2ea243dcb017373ba54803e0"}, {"app_name": "4145c668a0c94f1db16de2cbfbc60309", "title": "HITMAN 1 Complete First Season", "installable": [{"id": "1f8b3fd0116044bcbdc294c9db10a586", "appId": "4145c668a0c94f1db16de2cbfbc60309", "platform": ["Windows"], "dateAdded": "2020-06-30T00:00:00.000Z"}], "id": "20fc193bb7524a67b6c7712facac50e6"}, {"app_name": "62b25eaf934c4e9da7b5ff59631a1310", "title": "HITMAN 3: Seven Deadly Sins Act 1: Greed", "installable": [{"id": "d6af9d8ff8904187977c8268ff052313", "appId": "62b25eaf934c4e9da7b5ff59631a1310", "platform": ["Windows"], "dateAdded": "2019-09-10T00:00:00.000Z"}], "id": "4b6ad90a7be9494b980d1677696b5c02"}, {"app_name": "6a7355607ef441e4934674329f2b0be8", "title": "HITMAN 3: Seven Deadly Sins Act 7: Wrath", "installable": [{"id": "d6af9d8ff8904187977c8268ff052313", "appId": "6a7355607ef441e4934674329f2b0be8", "platform": ["Windows"], "dateAdded": "2019-09-10T00:00:00.000Z"}], "id": "28c5f36067364b5484be6655eaae31fe"}, {"app_name": "f73a0557f7fc4ca08e3cb2c0e5dfb22b", "title": "Dubai", "installable": [{"id": "1f8b3fd0116044bcbdc294c9db10a586", "appId": "f73a0557f7fc4ca08e3cb2c0e5dfb22b", "platform": ["Windows"], "dateAdded": "2020-06-30T00:00:00.000Z"}], "id": "36c3ce49d17f4a5b9ae9ab4bbdcd49d8"}, {"app_name": "445902ab2a7841a1a2ec9d536dc4d297", "title": "Chongquing", "installable": [{"id": "1f8b3fd0116044bcbdc294c9db10a586", "appId": "445902ab2a7841a1a2ec9d536dc4d297", "platform": ["Windows"], "dateAdded": "2020-06-30T00:00:00.000Z"}], "id": "275ba6d62ad84639aaa79f8f7a010482"}, {"app_name": "1ed82fbb0d7f42db93646185e267677f", "title": "Mendoza", "installable": [{"id": "1f8b3fd0116044bcbdc294c9db10a586", "appId": "1ed82fbb0d7f42db93646185e267677f", "platform": ["Windows"], "dateAdded": "2020-06-30T00:00:00.000Z"}], "id": "d229bf9d6cb1445cb4128594e31893c8"}, {"app_name": "45d506212d0441f983fa7d68c5275aac", "title": "HITMAN 3: Seven Deadly Sins Act 2: Pride", "installable": [{"id": "d6af9d8ff8904187977c8268ff052313", "appId": "45d506212d0441f983fa7d68c5275aac", "platform": ["Windows"], "dateAdded": "2019-09-10T00:00:00.000Z"}], "id": "506de60bfc0246809ebf350c99c9ba75"}, {"app_name": "a94eddb97c72495f95350ce8840642b9", "title": "Berlin", "installable": [{"id": "1f8b3fd0116044bcbdc294c9db10a586", "appId": "a94eddb97c72495f95350ce8840642b9", "platform": ["Windows"], "dateAdded": "2020-06-30T00:00:00.000Z"}], "id": "b2a50bfc403848038d1282d97fbabd3d"}, {"app_name": "180924252272434f8a1d620916f5083a", "title": "Hitman 3 - Sarajevo Six", "installable": [{"id": "c74255a5b8b8475384db665ea55027ad", "appId": "180924252272434f8a1d620916f5083a", "platform": ["Windows"]}], "id": "919726a04ae94a19a73b5a020ae34ec5"}]}, "install": {"platform": "Windows", "version": "6984506", "disk_size": 80453938346, "install_path": "/Users/grgarside/Applications/Heroic/HITMAN3", "save_path": null, "synced_egl_guid": "", "install_tags": [], "requires_ovt": false, "installed_dlc": [{"app_name": "364a7ba167174e90b70d198a413700ff", "title": "HITMAN 3: Seven Deadly Sins Act 4: Lust", "install_size": 2}, {"app_name": "79d72c1d8de84e0b97d378bbc4074340", "title": "HITMAN 3: Seven Deadly Sins Act 5: Gluttony", "install_size": 2}, {"app_name": "94bb539b7f6648189f38bb3de9937e6c", "title": "HITMAN 2 Standard", "install_size": 2}, {"app_name": "addd421d0f1d4573914f915a697054de", "title": "HITMAN 1 GOTY Upgrade", "install_size": 2}, {"app_name": "44d7e02592894e7ea13c048a5a3a47fb", "title": "HITMAN 3: Seven Deadly Sins Act 6: Envy", "install_size": 2}, {"app_name": "EiderGoldPack", "title": "HITMAN 3 Deluxe Pack", "install_size": 1}, {"app_name": "fc97ef705954490ab4bf3d6773bce766", "title": "Dartmoor", "install_size": 1}, {"app_name": "62af9e3ead7a49d59f12ae6196af8117", "title": "Carpathian Mountains", "install_size": 1}, {"app_name": "cfcad5e03dd543da9922c6a6751710f5", "title": "HITMAN 2 Expansion", "install_size": 2}, {"app_name": "1d60c1fc8e484f74bf26b862b848b7bf", "title": "HITMAN 3: Seven Deadly Sins Act 3: Sloth", "install_size": 2}, {"app_name": "4145c668a0c94f1db16de2cbfbc60309", "title": "HITMAN 1 Complete First Season", "install_size": 2}, {"app_name": "62b25eaf934c4e9da7b5ff59631a1310", "title": "HITMAN 3: Seven Deadly Sins Act 1: Greed", "install_size": 2}, {"app_name": "6a7355607ef441e4934674329f2b0be8", "title": "HITMAN 3: Seven Deadly Sins Act 7: Wrath", "install_size": 2}, {"app_name": "f73a0557f7fc4ca08e3cb2c0e5dfb22b", "title": "Dubai", "install_size": 1}, {"app_name": "445902ab2a7841a1a2ec9d536dc4d297", "title": "Chongquing", "install_size": 1}, {"app_name": "1ed82fbb0d7f42db93646185e267677f", "title": "Mendoza", "install_size": 1}, {"app_name": "45d506212d0441f983fa7d68c5275aac", "title": "HITMAN 3: Seven Deadly Sins Act 2: Pride", "install_size": 2}, {"app_name": "a94eddb97c72495f95350ce8840642b9", "title": "Berlin", "install_size": 1}, {"app_name": "180924252272434f8a1d620916f5083a", "title": "Hitman 3 - Sarajevo Six", "install_size": 2}]}, "manifest": {"size": 4916181, "type": "binary", "version": 17, "feature_level": 17, "app_name": "EiderStaging", "launch_exe": "Launcher.exe", "launch_command": "", "build_version": "7255037", "build_id": "ncXV4t3LVAa8spDh9ta07kzFzRI", "prerequisites": null, "uninstaller": null, "install_tags": ["", "Retail"], "num_files": 225, "num_chunks": 73218, "disk_size": 80652819493, "download_size": 71835343389, "tag_disk_size": [{"tag": "", "size": 80609949749, "count": 223}, {"tag": "Retail", "size": 42869744, "count": 2}], "tag_download_size": [{"tag": "", "size": 71818482067, "count": 73179}, {"tag": "Retail", "size": 18026653, "count": 42}]}}

Add logs

(23:19:39) INFO:    [Legendary]:        Legendary location: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary
(23:19:39) INFO:    [Gog]:              GOGDL location: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/gogdl
(23:19:39) INFO:    [Connection]:       Connectivity: check-online
(23:19:39) INFO:    [Connection]:       Pinging external endpoints
(23:19:39) INFO:    [Backend]:          DRM module staus {
  "oimompecagnajdejgnnjijobebaeigek": {
    "name": "Widevine Content Decryption Module",
    "status": "new",
    "version": "4.10.2710.0"
  }
}
(23:19:39) WARNING: [Backend]:          Protocol already registered.
(23:19:39) INFO:    [Connection]:       Connectivity: online
(23:19:39) ERROR:   [Gog]:              Unable to syncQueued playtime, userData not present
(23:19:39) INFO:    [Backend]:          AreWeAntiCheatYet data downloaded
(23:19:39) INFO:    [Backend]:          Loading Screen Ready
(23:19:39) INFO:    [Frontend]:         Refreshing undefined Library
(23:19:39) WARNING: [Backend]:          refresh not implemented on Sideload Library Manager
(23:19:39) INFO:    [Legendary]:        Refreshing library...
(23:19:39) INFO:    [Legendary]:        Refreshing Epic Games...
(23:19:39) INFO:    [Legendary]:        Game list updated, got 404 games & DLCs
(23:19:39) INFO:    [Backend]:          Frontend Ready
(23:19:39) WARNING: [Backend]:          listUpdateableGames not implemented on Sideload Library Manager
(23:19:39) INFO:    [Gog]:              Found 0 game(s) to update
(23:19:39) INFO:    [Backend]:          Checking for new Heroic Updates
(23:19:39) INFO:    [Backend]:          Checking for current version changelog
(23:19:40) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH="/Users/grgarside/Library/Application Support/heroic/legendaryConfig/legendary" /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary --version
(23:19:40) INFO:    [Gog]:              Running command: /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/gogdl --auth-config-path "/Users/grgarside/Library/Application Support/heroic/gog_store/auth.json" --version
(23:19:40) INFO:    [Nile]:             Running command: NILE_CONFIG_PATH="/Users/grgarside/Library/Application Support/heroic/nile_config" /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/nile --version
(23:19:40) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH="/Users/grgarside/Library/Application Support/heroic/legendaryConfig/legendary" /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary list --third-party
(23:19:40) INFO:    [Legendary]:        Checking for game updates: LEGENDARY_CONFIG_PATH="/Users/grgarside/Library/Application Support/heroic/legendaryConfig/legendary" /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary list --third-party
(23:19:41) INFO:    [Legendary]:        Checking if EOS Overlay is enabled: LEGENDARY_CONFIG_PATH="/Users/grgarside/Library/Application Support/heroic/legendaryConfig/legendary" /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary eos-overlay info
(23:19:41) INFO:    [ExtraGameInfo]:    Getting ExtraGameInfo data for HITMAN 3
(23:19:41) INFO:    [ExtraGameInfo]:    Getting PCGamingWiki data for HITMAN 3
(23:19:41) INFO:    [ExtraGameInfo]:    Getting HowLongToBeat data for HITMAN 3
(23:19:41) INFO:    [ExtraGameInfo]:    Getting GamesDB data for HITMAN 3
(23:19:41) INFO:    [ExtraGameInfo]:    Getting AppleGamingWiki data for HITMAN 3
(23:19:41) INFO:    [ExtraGameInfo]:    Getting ExtraGameInfo data for HITMAN 3
(23:19:41) INFO:    [ExtraGameInfo]:    Getting PCGamingWiki data for HITMAN 3
(23:19:41) INFO:    [ExtraGameInfo]:    Getting HowLongToBeat data for HITMAN 3
(23:19:41) INFO:    [ExtraGameInfo]:    Getting GamesDB data for HITMAN 3
(23:19:41) INFO:    [ExtraGameInfo]:    Getting AppleGamingWiki data for HITMAN 3
(23:19:41) INFO:    [Legendary]:        Getting more details with 'legendary info'
(23:19:41) INFO:    [Legendary]:        Getting more details with 'legendary info'
(23:19:41) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH="/Users/grgarside/Library/Application Support/heroic/legendaryConfig/legendary" /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary info Eider --json --platform Windows
(23:19:41) INFO:    [GlobalConfig]:     Searching for Gaming Porting Toolkit Wine
(23:19:41) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH="/Users/grgarside/Library/Application Support/heroic/legendaryConfig/legendary" /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary info Eider --json --platform Windows
(23:19:41) INFO:    [GlobalConfig]:     Found Gaming Porting Toolkit Wine at /usr/local/Cellar/game-porting-toolkit/1.1/bin
(23:19:41) INFO:    [Winetricks]:       Downloading Winetricks
(23:19:42) INFO:    [Legendary]:        Getting Info from Epic API
(23:19:44) INFO:    [WineDownloader]:   Updating wine versions info
(23:19:44) INFO:    [WineDownloader]:   Fetching upstream information...
(23:19:44) INFO:    [Legendary]:        Getting more details with 'legendary info'
(23:19:44) INFO:    [Backend]:          Preventing machine to sleep
(23:19:44) INFO:    [Legendary]:        Getting more details with 'legendary info'
(23:19:44) INFO:    [Legendary]:        Getting more details with 'legendary info'
(23:19:44) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH="/Users/grgarside/Library/Application Support/heroic/legendaryConfig/legendary" /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary info Eider --json --platform Windows
(23:19:44) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH="/Users/grgarside/Library/Application Support/heroic/legendaryConfig/legendary" /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary info Eider --json --platform Windows
(23:19:44) INFO:    [Legendary]:        Running command: LEGENDARY_CONFIG_PATH="/Users/grgarside/Library/Application Support/heroic/legendaryConfig/legendary" /Applications/Heroic.app/Contents/Resources/app.asar.unpacked/build/bin/darwin/legendary info Eider --json --platform Windows
(23:19:44) INFO:    [Backend]:          Starting the Download Queue
(23:19:45) INFO:    [WineDownloader]:   wine versions updated
(23:19:47) INFO:    [Backend]:          
System Information:
CPU: 12x Apple M2 Max
Memory: 34.36 GB (used: 14.56 GB)
GPUs:

OS:  14.2.0 (darwin)

The current system is not a Steam Deck
We are not running inside a Flatpak container

Software Versions:
  Heroic: 2.11.0 Kumachi
  Legendary: 0.20.33 Undue Alarm
  gogdl: 0.7.3
  Nile: 1.0.0 Jonathan Joestar

(23:19:50) DEBUG:   [Legendary]:        Update is available for Eider: 6984506 != 7255037
(23:19:50) INFO:    [Legendary]:        Found 1 game to update
(23:19:52) ERROR:   [Legendary]:        Error: Failed to parse install info for Eider with: SyntaxError: Unexpected token 'N', "
N 3: Seven"... is not valid JSON
    at Module.getInstallInfo (/Applications/Heroic.app/Contents/Resources/app.asar/build/electron/main.52896897.js:98:3996)
    at async /Applications/Heroic.app/Contents/Resources/app.asar/build/electron/main.52896897.js:195:5856
    at async WebContents.<anonymous> (node:electron/js2c/browser_init:2:88992)
(23:19:52) ERROR:   [Legendary]:        Error: Failed to parse install info for Eider with: SyntaxError: Unexpected token 'N', "
N 3: Seven"... is not valid JSON
    at Module.getInstallInfo (/Applications/Heroic.app/Contents/Resources/app.asar/build/electron/main.52896897.js:98:3996)
    at async /Applications/Heroic.app/Contents/Resources/app.asar/build/electron/main.52896897.js:195:5856
    at async WebContents.<anonymous> (node:electron/js2c/browser_init:2:88992)
(23:19:52) ERROR:   [Legendary]:        Error: Failed to parse install info for Eider with: SyntaxError: Unexpected token 'N', "
N 3: Seven"... is not valid JSON
    at Module.getInstallInfo (/Applications/Heroic.app/Contents/Resources/app.asar/build/electron/main.52896897.js:98:3996)
    at async /Applications/Heroic.app/Contents/Resources/app.asar/build/electron/main.52896897.js:195:5856
    at async WebContents.<anonymous> (node:electron/js2c/browser_init:2:88992)
(23:19:52) ERROR:   [Legendary]:        Error: Failed to parse install info for Eider with: SyntaxError: Unexpected token 'N', "
N 3: Seven"... is not valid JSON
    at Module.getInstallInfo (/Applications/Heroic.app/Contents/Resources/app.asar/build/electron/main.52896897.js:98:3996)
    at async /Applications/Heroic.app/Contents/Resources/app.asar/build/electron/main.52896897.js:195:5856
    at async WebContents.<anonymous> (node:electron/js2c/browser_init:2:88992)
(23:19:52) ERROR:   [Frontend]:         Cannot get game info
(23:19:52) ERROR:   [Frontend]:         Cannot get game info
(23:19:52) ERROR:   [Frontend]:         Cannot get game info
(23:19:52) ERROR:   [Frontend]:         Cannot get game info

Steps to reproduce

  1. Log in to Epic with HITMAN purchased with DLC.
  2. Click HITMAN.
  3. ‘Cannot get game info’ after a few seconds.

Expected behavior

Game info is shown.

Screenshots

Screenshot 2023-12-19 at 10 11 33 am

Heroic Version

Latest Stable

System Information

macOS Sonoma 14.2: Darwin 23.2.0 arm64

Additional information

No response

arielj commented 9 months ago

Can you share the legendary log too after this fails? Settings > logs > legendary/epic

grgar commented 9 months ago

Sure! I should have said that's where I got the JSON I put in my post from, it's the last line of this log.

Epic/Legendary logs
arielj commented 9 months ago

hmmm this is really odd, I copy the output and called the code that's failing for you (JSON.parse(that_text)) and it doesn't fail, it parses the JSON with no issue. Having : in the title is valid JSON, other games have that too. And the parser seems to complain with the N, not with the :.

I don't own those games/dlcs to debug it more.