API:2/colors returns wrong item id

API:2/colors returns wrong item id

in API Development

Posted by: Elfo Bianco.3786

Elfo Bianco.3786

Hello, I’m working with API:2/colors and when I want to get the item that unlocks a color the system returns an error about item not found.
I have tested the https://api.guildwars2.com/v2/colors/10 that is on wiki as example and the item id is different: on wiki is 20370 (the right one) while from api is 65149 (absolutly wrong).
Seems that almost all the colors now have a wrong item id!

API:2/colors returns wrong item id

in API Development

Posted by: fro.8967

fro.8967

Seconding this. Almost all colors are returning item ids that are invalid when passed to the items api.

API:2/colors returns wrong item id

in API Development

Posted by: Lawton Campbell

Lawton Campbell

Web Programmer

Next

I don’t think I made the fix in time for tomorrow’s release, but it should be in the one after that. Here’s the tracking issue.

Sorry about the mess

API:2/colors returns wrong item id

in API Development

Posted by: inflames.3824

inflames.3824

I’ve noticed that in /v2/colors there are also some entries that they don’t define at all the “item” value of the actual dye’s item id. For example Tea Jeans. It’s not a serious bug but it kinda makes it hard to get the assigned icon file.

The current (as of now) color id list that has no “item” value is: [1, 14, 17, 19, 45, 101, 109, 117, 131, 362, 376, 377, 435, 442, 454, 457, 604, 615, 632, 680, 700]

I was wondering if there is any workaround for these exceptions, other than parsing each color’s wiki page.

Thank you in advance.

API:2/colors returns wrong item id

in API Development

Posted by: Lawton Campbell

Previous

Lawton Campbell

Web Programmer

Oof, here’s a new tracking issue, since this seems to be something different than the original.

API:2/colors returns wrong item id

in API Development

Posted by: inflames.3824

inflames.3824

Thanks for taking care of opening that issue, Lawton. Guess we’ll have to wait for its turn.

API:2/colors returns wrong item id

in API Development

Posted by: Immortius.4537

Immortius.4537

I know offhand that color 1 is for Dye Remover, which naturally has no associated item. All the dyes in the standard set (those dropped by Unidentified Dyes) definitely have an item.

API:2/colors returns wrong item id

in API Development

Posted by: Immortius.4537

Immortius.4537

I had a quick look, and Tea Jean is a starter color – so it makes sense that it has no item since everyone starts with it. I suspect this could be the case for the rest of the colors you have listed.

API:2/colors returns wrong item id

in API Development

Posted by: inflames.3824

inflames.3824

I had a quick look, and Tea Jean is a starter color – so it makes sense that it has no item since everyone starts with it. I suspect this could be the case for the rest of the colors you have listed.

Yup, you’re 100% correct. I checked each and every id, 1 is dye remover and the rest that have no item values are the starting dyes. Double-checked them with TP and (obviously) they’re nowhere to be found as in-game items.