item_details.json returns "Unknown"
Fror.2163:
Hey, some items in item_details.json return “Unknown” as their “consumable_type” or “unlock_type”.
Specifically, I mean the following two:
36518 (“Limited-Use Gift Finisher”, returns “Unknown” as “unlock_type”)
8472 (“Transmutation Splitter”, returns “Unknown” as “consumable”.“type”)
I don’t have time to extract all the other items right now, but could you see that they return an appropriate value?
Fror.2163:
Ok, I made a complete list:
- For “consumable”.“type”, only 8472 is affected.
- For “unlock_type”, a lot more are affected: 36517, 36408, 36409, 36518, 19988, 39490, 39487, 39488, 44877, 44881, 44723, 44068, 44882, 44878, 44601, 44724, 47880, 48953, 48952 (all these are finishers)
Dr Ishmael.9685:
I would guess this is because the actual values in the core datastore are numeric, and the API uses a lookup table to translate them into strings. The lookup table simply hasn’t been updated with entries for these new sub-types, so the lookup fails through to the default of “Unknown”.
Yamagawa.5941:
Probably correct, but that doesn’t mean that these cannot or should not be fixed.
LadyRhonwyn.2501:
I picked one of those unlocks, and I have an item type of “Consumable” and a type of “unlock” in my database…
Item 8472 (the splitter) does give a type of “unknown” with me. (my data is from the start of september, at least that’s when I started keeping track of when I updated an item in my local database)
Dr Ishmael.9685:
I picked one of those unlocks, and I have an item type of “Consumable” and a type of “unlock” in my database…
He’s talking about the unlock_type value for those, not the consumable.type.
https://api.guildwars2.com/v1/item_details.json?item_id=36517
{"item_id":“36517”,“name”:“Limited-Use Snowman Finisher”,
…,
“consumable”:{"type":“Unlock”,“unlock_type”:“Unknown”}}
Stefan Larimore.6872:
There are some new types of various things that have not yet been provided API display names. I will be fixing this shortly.
Thanks for the report.