Skip to content

Game information on some games is missing from the api #2761

@V-Karch

Description

@V-Karch

Describe the bug
Data is missing when requesting it from the api using retroachievements-js
I figured I could post this here instead of on the retroachievements-js github since this is about data being stored and not about functionality being broken as far as I'm aware

To Reproduce

  1. Set up retroachievements-js
  2. Make a file titled main.mjs
  3. Fill the file with the following, replacing placeholders with your api information
import { buildAuthorization, getGame } from "@retroachievements/api";

const username = "username";
const webApiKey = "api_key";

const authorization = buildAuthorization({ username, webApiKey });

const game = await getGame(authorization, { gameId: 16211 });

console.log(game);
  1. Run the code with nodejs, node main.mjs
  2. Output:
{
  title: 'Pokemon White Version',
  gameTitle: 'Pokemon White Version',
  consoleId: 18,
  consoleName: 'Nintendo DS',
  console: 'Nintendo DS',
  forumTopicId: 10492,
  flags: 0,
  gameIcon: '/Images/046275.png',
  imageIcon: '/Images/046275.png',
  imageTitle: '/Images/033230.png',
  imageIngame: '/Images/033229.png',
  imageBoxArt: '/Images/032988.png',
  publisher: '',
  developer: '',
  genre: '',
  released: '2010-09-18',
  releasedAtGranularity: 'day'
}

Expected behavior
Publisher should be "Nintendo, The Pokemon Company"
Developer should be "Game Freak"
Genre should be "Turn-based RPG"

This information shows up on the website, but not in the api

Screenshots
No need for a screenshot as the issue is shown in code

Desktop (please complete the following information):

  • OS: Arch Linux x86_64
  • Version of retroachievements-js: 2.1.0

Additional context
Other games that I've seen that are similarly affected are Pokemon Diamond, and Pokemon White 2. However, Pokemon Black's data does display correctly, as shown below:

{
  title: 'Pokemon Black Version',
  gameTitle: 'Pokemon Black Version',
  consoleId: 18,
  consoleName: 'Nintendo DS',
  console: 'Nintendo DS',
  forumTopicId: 10333,
  flags: 0,
  gameIcon: '/Images/046274.png',
  imageIcon: '/Images/046274.png',
  imageTitle: '/Images/032689.png',
  imageIngame: '/Images/032690.png',
  imageBoxArt: '/Images/032691.png',
  publisher: 'Nintendo',
  developer: 'Game Freak',
  genre: 'Turn-based RPG',
  released: '2011-03-04',
  releasedAtGranularity: 'day'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    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