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.25k stars 433 forks source link

No GOG titles found on version 2.2.1 #1016

Closed sehHeiden closed 2 years ago

sehHeiden commented 2 years ago

Describe the bug

No games of my gog library found. While in the new version there is a GOG sub tab , it does not show any games (even after the update).

Add logs

[no log files]

Steps to reproduce

  1. Register GOG account (already done so in Version 2.2.0)
  2. Open Library
  3. Open new GOG tab
  4. Update library
  5. no titles found, neither already installed GOG titles, nor titles of the

Expected behavior

After updating the games from the GOG store should be listed.

Screenshots

No response

System Information

Additional information

No response

imLinguin commented 2 years ago

try running heroic in terminal to look for errors. Without logs we can't really know what causes the problem. Also try going to account manager and press continue.

Nocccer commented 2 years ago

No need to run from terminal. Logs are in Settings -> Logs and can be copied by a button below the textbox

gururise commented 2 years ago

Same problem, these are the logs:

(23:55:24) INFO: [Frontend]: Refreshing Library

(23:55:24) INFO: [Gog]: Getting GOG library

(23:55:24) INFO: [Gog]: Number of library pages: 2

(23:55:24) INFO: [Gog]: Getting data for page 2

(23:55:25) WARNING: [Gog]: Unable to get covers from gamesdb for Cyberpunk 2077 Goodies Collection. Trying to get it from api.gog.com

(23:55:25) WARNING: [Gog]: Couldn't get info from api.gog.com, Using fallback vertical image

(23:55:41) WARNING: [Gog]: Unable to get covers from gamesdb for Spring Sale Goodies Collection #2. Trying to get it from api.gog.com

(23:55:41) WARNING: [Gog]: Couldn't get info from api.gog.com, Using fallback vertical image

(23:57:43) ERROR: [Frontend]: Error: Error invoking remote method 'refreshLibrary': TypeError: Cannot read properties of undefined (reading 'status')

(23:57:44) INFO: [Legendary]: Checking for game updates

(23:57:44) INFO: [Legendary]: Found 0 game(s) to update

(23:57:44) INFO: [Gog]: Found 0 game(s) to update
Nocifer commented 2 years ago

Had the same issue but at first I got the following error:

(14:56:31) INFO:    [Gog]:             Getting data about the user
(14:56:31) INFO:    [Gog]:             Refreshing access_token
(14:56:31) WARNING: [Backend]:         Protocol already registered.
(14:56:32) INFO:    [Gog]:             Token refreshed successfully
(14:56:32) INFO:    [Frontend]:        Refreshing Library
(14:56:32) INFO:    [Gog]:             Getting GOG library
(14:56:32) ERROR:   [Gog]:             Error getting user Data Error: Request failed with status code 401
(14:56:32) INFO:    [Gog]:             Number of library pages: 4
(14:56:32) INFO:    [Gog]:             Getting data for page 2
(14:56:33) INFO:    [Gog]:             Getting data for page 3
(14:56:34) INFO:    [Gog]:             Getting data for page 4

The second time I tried to refresh the GOG library I got the API error reported above.

On a hunch I logged out of GOG and logged in again and the problem went away; but now I get a new error when trying to install a game from GOG.

sehHeiden commented 2 years ago

Hi,

was not home a lot recently.

So here is the logging from the start-up on the console:

(11:35:15) INFO:    [Gog]:             Location: /opt/Heroic/resources/app.asar.unpacked/build/bin/linux/gogdl
(11:35:16) ERROR:   [Backend]:         Error: EMFILE: too many open files, watch '/home/sebastian/.config/legendary/installed.json
[22274:0227/113516.911835:ERROR:proxy_config_service_linux.cc(614)] inotify_init failed: Too many open files (24)
[22274:0227/113516.913422:ERROR:file_path_watcher_linux.cc(321)] inotify_init() failed: Too many open files (24)
[22353:0227/113517.131399:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
(11:35:17) INFO:    [Backend]:         
  Heroic Version: 2.2.1 Oden
  Legendary Version:  0.20.25 Our Benefactors
  OS: Ubuntu KERNEL: 5.13.0-10027-tuxedo ARCH: x64
  CPU: AMD Ryzen 7 4800H with Radeon Graphics @2.9 GOVERNOR: ondemand
  RAM: Total: 16.2 GB Available: 9.48 GB
  GRAPHICS: GPU0: Renoir VRAM: 512MB DRIVER:  
  PROTOCOL: x11

(11:35:18) INFO:    [Gog]:             Getting data about the user
(11:35:18) INFO:    [Gog]:             Refreshing access_token
[22274:0227/113518.127962:ERROR:proxy_config_service_linux.cc(614)] inotify_init failed: Too many open files (24)
(11:35:18) WARNING: [Backend]:         Protocol already registered.
[22274:0227/113518.453214:ERROR:browser_main_loop.cc(267)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[22274:0227/113518.453338:ERROR:browser_main_loop.cc(267)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
[22274:0227/113518.453456:ERROR:browser_main_loop.cc(267)] Gtk: gtk_widget_add_accelerator: assertion 'GTK_IS_ACCEL_GROUP (accel_group)' failed
(11:35:18) INFO:    [Gog]:             Token refreshed successfully
(11:35:18) ERROR:   [Gog]:             Error getting user Data Error: Request failed with status code 401
(node:22274) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of null (reading 'data')
    at Function.getUserDetails (/opt/Heroic/resources/app.asar/build/gog/user.js:54:31)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
(Use `heroic --trace-warnings ...` to show where the warning was created)
(node:22274) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
Error occurred in handler for 'refreshLibrary': No handler registered for 'refreshLibrary'
(11:35:22) INFO:    [Legendary]:       Checking for game updates
(11:35:22) INFO:    [Legendary]:       Found 0 game(s) to update
(11:35:22) INFO:    [Gog]:             Found 0 game(s) to update
(11:35:24) INFO:    [Backend]:         checking for heroic updates

When I click on the update button for GOG or Epic I get:


(11:35:48) INFO:    [Legendary]:       Checking for game updates
(11:35:48) INFO:    [Legendary]:       Found 0 game(s) to update
(11:35:48) INFO:    [Gog]:             Found 0 game(s) to update```
arrowgent commented 2 years ago

(14:56:32) ERROR: [Gog]: Error getting user Data Error: Request failed with status code 401

401 error codes are often denied access because of spamming the api 401 can also be intermittently routing failure by the dns, website inaccessible. 401 lastly refers to invalid authentication, straight up denied access.

imLinguin commented 2 years ago

This build should fix those 401 errors, try it: https://github.com/imLinguin/HeroicGamesLauncher/actions/runs/1938511251

imLinguin commented 2 years ago

Is that issue still happening on 2.2.6 for you?

sehHeiden commented 2 years ago

After the new update 2.2.4 -> 2.2.6 everythings seams fine.