Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Empty games list (Object.releases undefined) #684

Open
bfalala opened this issue Jan 3, 2025 · 0 comments
Open

Empty games list (Object.releases undefined) #684

bfalala opened this issue Jan 3, 2025 · 0 comments
Assignees

Comments

@bfalala
Copy link

bfalala commented Jan 3, 2025

Hi,

I started from scratch, did a full sync from playnite and my games list was successfully displayed on the web UI.
A few days later, after a partial sync, nothing was displayed anymore because of the following error:

2025/01/03 16:12:05	stderr	}
2025/01/03 16:12:05	stderr	  extensions: [Object: null prototype] {}
2025/01/03 16:12:05	stderr	  locations: [ { line: 10, column: 5 } ],
2025/01/03 16:12:05	stderr	  path: [ 'games', 1416, 'releases' ],
2025/01/03 16:12:05	stderr	    at completeValue (file:///opt/playnite-web-app/node_modules/@graphql-tools/executor/esm/execution/execute.js:439:16) {
2025/01/03 16:12:05	stderr	    at completeListValue (file:///opt/playnite-web-app/node_modules/@graphql-tools/executor/esm/execution/execute.js:554:13)
2025/01/03 16:12:05	stderr	    at completeListItemValue (file:///opt/playnite-web-app/node_modules/@graphql-tools/executor/esm/execution/execute.js:573:29)
2025/01/03 16:12:05	stderr	    at completeValue (file:///opt/playnite-web-app/node_modules/@graphql-tools/executor/esm/execution/execute.js:427:27)
2025/01/03 16:12:05	stderr	    at completeValue (file:///opt/playnite-web-app/node_modules/@graphql-tools/executor/esm/execution/execute.js:453:16)
2025/01/03 16:12:05	stderr	    at completeObjectValue (file:///opt/playnite-web-app/node_modules/@graphql-tools/executor/esm/execution/execute.js:685:12)
2025/01/03 16:12:05	stderr	    at collectAndExecuteSubfields (file:///opt/playnite-web-app/node_modules/@graphql-tools/executor/esm/execution/execute.js:695:23)
2025/01/03 16:12:05	stderr	    at executeFields (file:///opt/playnite-web-app/node_modules/@graphql-tools/executor/esm/execution/execute.js:266:28)
2025/01/03 16:12:05	stderr	    at executeField (file:///opt/playnite-web-app/node_modules/@graphql-tools/executor/esm/execution/execute.js:318:24)
2025/01/03 16:12:05	stderr	    at Object.releases (file:///opt/playnite-web-app/src/server/graphql/modules/game/resolvers/Game.js:14:26)
2025/01/03 16:12:05	stderr	�[31mERR�[0m TypeError: Cannot read properties of undefined (reading 'map')

In MongoDB, 3 new entries were added in the "game" collection, but they look more like "Releases" rather than "Games":

{
  "_id": {
    "$oid": "6776e040e544d12738b21a6f"
  },
  "id": "5293ba62-3f1d-479f-93b5-c9eff0219b62",
  "added": "2025-01-02T19:51:44.5984418+01:00",
  "addedSegment": 0,
  "ageRatingIds": null,
  "ageRatings": null,
  "backgroundImage": null,
  "categories": null,
  "categoryIds": null,
  "communityScore": null,
  "communityScoreGroup": 10,
  "communityScoreRating": 0,
  "completionStatus": {
    "name": "Not Played",
    "id": "37999e0f-0cc3-4f4a-bf44-d4da7dddfd25"
  },
  "completionStatusId": "37999e0f-0cc3-4f4a-bf44-d4da7dddfd25",
  "coverImage": null,
  "criticScore": null,
  "criticScoreGroup": 10,
  "criticScoreRating": 0,
  "description": null,
  "developerIds": null,
  "developers": null,
  "enableSystemHdr": false,
  "favorite": false,
  "featureIds": null,
  "features": null,
  "gameActions": null,
  "gameId": "15b19b0c4791459f8e60942b328ee460",
  "gameStartedScript": null,
  "genreIds": null,
  "genres": null,
  "hidden": false,
  "icon": null,
  "includeLibraryPluginAction": true,
  "installDirectory": null,
  "installSize": null,
  "installSizeGroup": 0,
  "installationStatus": 1,
  "isCustomGame": false,
  "isInstalled": false,
  "isInstalling": false,
  "isLaunching": false,
  "isRunning": false,
  "isUninstalling": false,
  "lastActivity": null,
  "lastActivitySegment": 6,
  "lastSizeScanDate": null,
  "links": null,
  "manual": null,
  "modified": "2025-01-02T19:51:44.5984418+01:00",
  "modifiedSegment": 0,
  "name": "Eastern Exorcist",
  "notes": null,
  "overrideInstallState": false,
  "platformIds": [
    "128d279e-6115-4757-9d65-29a8fae3bc68"
  ],
  "platforms": [
    {
      "specificationId": "pc_windows",
      "icon": "128d279e-6115-4757-9d65-29a8fae3bc68\\e7fe6f98-f3f6-4cc4-b4df-500843946eab.png",
      "cover": null,
      "background": null,
      "name": "PC (Windows)",
      "id": "128d279e-6115-4757-9d65-29a8fae3bc68"
    }
  ],
  "playCount": 0,
  "playtime": 0,
  "playtimeCategory": 0,
  "pluginId": "00000002-dbd1-46c6-b5d0-b1ba559d10e4",
  "postScript": null,
  "preScript": null,
  "publisherIds": null,
  "publishers": null,
  "recentActivity": "2025-01-02T19:51:44.5984418+01:00",
  "recentActivitySegment": 0,
  "regionIds": null,
  "regions": null,
  "releaseDate": null,
  "releaseYear": null,
  "roms": null,
  "series": null,
  "seriesIds": null,
  "sortingName": null,
  "source": {
    "name": "Epic",
    "id": "661293bf-9de8-4307-8db2-f5532255373c"
  },
  "sourceId": "661293bf-9de8-4307-8db2-f5532255373c",
  "tagIds": null,
  "tags": null,
  "useGlobalGameStartedScript": true,
  "useGlobalPostScript": true,
  "useGlobalPreScript": true,
  "userScore": null,
  "userScoreGroup": 10,
  "userScoreRating": 0,
  "version": null
}

If I remove these entries, my games are displayed properly.

@github-project-automation github-project-automation bot moved this to Needs Triage 🗃️ in Playnite-Web Jan 3, 2025
@andrew-codes andrew-codes self-assigned this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Needs Triage 🗃️
Development

No branches or pull requests

2 participants