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
- Set up retroachievements-js
- Make a file titled
main.mjs
- 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);
- Run the code with nodejs,
node main.mjs
- 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'
}
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
main.mjsnode main.mjsExpected 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):
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: