Open V-Karch opened 2 weeks ago
This is happening because the information is associated with linked hubs rather than data in the game table.
@wescopeland oh interesting, I wonder how that could've happened
Right now hubs are a bit magical. I believe this API issue will occur for any of the game data that appears to be hyperlinked in the game page. For example, if the genre is a clickable link, I bet it doesn't surface correctly in the API.
Right now hubs are in a bizarre place in the DB. We're going to fix this imminently, but until it's fixed this issue will unfortunately continue to surface.
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.mjs
const username = "username"; const webApiKey = "api_key";
const authorization = buildAuthorization({ username, webApiKey });
const game = await getGame(authorization, { gameId: 16211 });
console.log(game);
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):
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: