API errors & bugs

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

What the title says. (may someone sticky it, thanks)

I just stumbled across a minor error:

several item names contain double spaces like: https://api.guildwars2.com/v1/item_details.json?item_id=1794&lang=fr
It’s nothing that hurts, but still an error.

Some other items have HTML-like markup in their descriptions like https://api.guildwars2.com/v1/item_details.json?item_id=29175
Any strip_tags function should remove it, but it doesn’t look good or may break code if it’s not removed.

API errors & bugs

in API Development

Posted by: Cliff Spradlin.3512

Cliff Spradlin.3512

Lead Programmer

Next

several item names contain double spaces like: https://api.guildwars2.com/v1/item_details.json?item_id=1794&lang=fr

I don’t see any double spaces in this example. If any exist, it’s likely an issue in the original item data too.

Some other items have HTML-like markup in their descriptions like https://api.guildwars2.com/v1/item_details.json?item_id=29175
Any strip_tags function should remove it, but it doesn’t look good or may break code if it’s not removed.

That’s intentional, though it should probably be better documented in the future since it’s a completely custom markup. If your goal is to re-create an item’s information box to look like it does in the game, you’ll need those tags to show the right color or style for the text.

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

several item names contain double spaces like: https://api.guildwars2.com/v1/item_details.json?item_id=1794&lang=fr

I don’t see any double spaces in this example. If any exist, it’s likely an issue in the original item data too.

I’ve seen a lot of double spaces especially in spanish and french translations – the original response to the above request looks like this, take a look on Manteau de voleur solide de l’aigle:

{"item_id":"1794","name":"Manteau de voleur solide  de l'aigle","description":"","type":"Armor","level":"60","rarity":"Rare","vendor_value":"234","game_types":["Activity",
"Dungeon",
"Pve",
"Wvw"],"flags":[],"restrictions":[],"armor":{"type":"Coat","weight_class":"Medium","defense":"202","infusion_slots":[],"infix_upgrade":{"buff":"","attributes":[{"attribute":"Power","modifier":"58"},
{"attribute":"Precision","modifier":"41"}]},"suffix_item_id":"24722"}}

€: it seems that most of the items with a suffix are affected (~4.5k) – there is a double space before the suffix. Oh, and there is one german item with a double space: https://api.guildwars2.com/v1/item_details.json?item_id=20286&lang=de

Some other items have HTML-like markup in their descriptions like https://api.guildwars2.com/v1/item_details.json?item_id=29175
Any strip_tags function should remove it, but it doesn’t look good or may break code if it’s not removed.

That’s intentional, though it should probably be better documented in the future since it’s a completely custom markup. If your goal is to re-create an item’s information box to look like it does in the game, you’ll need those tags to show the right color or style for the text.

I thought that this is intentional, a documentation of that would be nice

(edited by smiley.1438)

API errors & bugs

in API Development

Posted by: Xenoker.1297

Xenoker.1297

Id like to point out there seems to be an as-of-yet undocumented 6th state for events: “Invalid”
Example:

{"world_id":1017,"map_id":51,"event_id":"4F125457-A110-4860-8D76-E4AE678C3023","state":"Invalid"}
Which is: “Escort the supplies to Siegemaster Denbi.” in Straits of Devastation.
Which seems to be the status most of the time unless the event is actually active.

(edited by Xenoker.1297)

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

…and there we’ve killed the API

Page not found

Host
pubstats-live.ncplatform.net
URL
/v1/item_details.json?item_id=23250
Remote Address
84.162.253.193:15725
SpawnSrv/301.3051201 Instance/0.391033534

API errors & bugs

in API Development

Posted by: LadyRhonwyn.2501

LadyRhonwyn.2501

…and there we’ve killed the API

Page not found

Host
pubstats-live.ncplatform.net
URL
/v1/item_details.json?item_id=23250
Remote Address
84.162.253.193:15725
SpawnSrv/301.3051201 Instance/0.391033534

Not only that one, I was working on events and suddenly got 404 errors on my console

API errors & bugs

in API Development

Posted by: Cliff Spradlin.3512

Previous

Cliff Spradlin.3512

Lead Programmer

Next

Sorry – server deployment went bad. Should be fixed now.

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

Thanks for the quick response!

API errors & bugs

in API Development

Posted by: Terrasque.8735

Terrasque.8735

thumbs up

anything interesting deployed? Also, can you give some info about the API’s request load? Q/s and server load?

API errors & bugs

in API Development

Posted by: poke.3712

poke.3712

Hmm, ever since the Claw of Jormag event finished on Elona Reach, the API is stuck on the event being “active” although it should be “success” instead. Is there some problem with the event?

@poke // GW2W //

API errors & bugs

in API Development

Posted by: poke.3712

poke.3712

Same problem today with the Shatterer on Elona Reach.

@poke // GW2W //

API errors & bugs

in API Development

Posted by: BruderTack.8429

BruderTack.8429

I may be wrong, but there are inconsistencies in boss event states, right? When a boss is killed, some events got the state ‘Success’, others ‘Warmup’.
It would be great, if all events would have the same state ‘chain’ like ‘Warmup’ → (‘Preperation’) → ‘Active’ → ‘Success’ (or ‘Fail’). And then ‘Warmup’ → … again.

API errors & bugs

in API Development

Posted by: Ruhrpottpatriot.7293

Ruhrpottpatriot.7293

There is a reason why some events don’t have a success state (e.g. dragons). If you search in this forum section you’ll find a reasonable explanation from the developers about it.

Administrator of GW2.NET: GitHub , Forum , NuGet

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

While updating my local items database i’ve found 5 IDs (43245-43249) which were added today and return a “reply not message” error. What does that mean?

https://api.guildwars2.com/v1/item_details.json?item_id=43249

API errors & bugs

in API Development

Posted by: Cliff Spradlin.3512

Previous

Cliff Spradlin.3512

Lead Programmer

Next

While updating my local items database i’ve found 5 IDs (43245-43249) which were added today and return a “reply not message” error. What does that mean?

https://api.guildwars2.com/v1/item_details.json?item_id=43249

It means that a backend server wasn’t properly deployed as part of the update this morning. The issue has been resolved and the example item link now works for me.

Thanks for the report!

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

Thanks for the quick fix!

API errors & bugs

in API Development

Posted by: kaspi.7164

kaspi.7164

Do you by any chance have a list of errors + their codes? Would be nice to be able to write error handlers around errors that we haven’t seen so far. To get ready for when something new goes wrong.

[SWD] Tal Emenar
EU-Piken Square

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

I just found this one:

https://api.guildwars2.com/v1/recipe_details.json?recipe_id=2968 (Beetletun Omelette)

Disciplines: armorsmith and chef. Is this intended or a bug?

API errors & bugs

in API Development

Posted by: Yamagawa.5941

Yamagawa.5941

I think I’ve run across that omlette more than once, even the wiki acknowledges this bug. If its intended, I’d love to see the storyline that explains it…

API errors & bugs

in API Development

Posted by: ElGreenGo.6734

ElGreenGo.6734

wvw/matches.json is currently broken.

It is returning an empty array:

{
  "wvw_matches": []
}

API errors & bugs

in API Development

Posted by: ElGreenGo.6734

ElGreenGo.6734

Apparently WvW is down for some reason, which I am assuming is the reason the API is returning no matches.

API errors & bugs

in API Development

Posted by: Kodthr.7103

Kodthr.7103

I just began few cool things whith the new API (map) and I noticed something. In map_floor.json, some sectors are repeated more than once. For example :


{"sector_id":143,"name":"Nemeton Grove","level":17,"coord":[9030.92,
15731.8]}]}

is repeated twice, with these coords and one more time with almost the same coords :


{"sector_id":143,"name":"Nemeton Grove","level":17,"coord":[9030.01,
15733.7]}]}

P.S. : Thank you so much for the tiles

API errors & bugs

in API Development

Posted by: Dr Ishmael.9685

Dr Ishmael.9685

The repeated sectors are for personal story maps. Nemeton Grove, specifically, is also within “A Different Dream” and “Shadow of the Tree”, besides where it normally appears within Brisban Wildlands.

API errors & bugs

in API Development

Posted by: zeeZ.5713

zeeZ.5713

World Map Tile Service: Server sends Content-Type: image/png header, but serves JPEG images (not that it matters)

API errors & bugs

in API Development

Posted by: Cliff Spradlin.3512

Previous

Cliff Spradlin.3512

Lead Programmer

Next

The repeated sectors are for personal story maps. Nemeton Grove, specifically, is also within “A Different Dream” and “Shadow of the Tree”, besides where it normally appears within Brisban Wildlands.

Right. The technical relationship between continents, floors, regions, maps, and sectors is a little bit complex. Each child object could technically be referenced by multiple parent objects. This gives map designers a lot of flexibility, especially when designing unusual maps.

We enforce some practical rules in our map content. For example, floors are only allowed to exist on one continent.

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

Did we already kill the maps API? O.o

{
	error: 42,
	product: 0,
	module: 9001,
	line: 4119,
	text: "Srv2Route, transaction timeout {#17108}, {P+/Content/GetMapFloor+STS/1.0}"
}

API errors & bugs

in API Development

Posted by: Cliff Spradlin.3512

Previous

Cliff Spradlin.3512

Lead Programmer

Next

Did we already kill the maps API? O.o

{
	error: 42,
	product: 0,
	module: 9001,
	line: 4119,
	text: "Srv2Route, transaction timeout {#17108}, {P+/Content/GetMapFloor+STS/1.0}"
}

No, sorry, there was a configuration error on our server. It should be fixed now.

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

Yep, thanks!

Another thing:

the map floor API returns just 1 sector element per map for some maps eg: id 26: Dredgehaunt Cliffs – i believe this is not intended or is this an instace map (apparently not)?

https://api.guildwars2.com/v1/map_floor.json?continent_id=1&floor=1

(edited by smiley.1438)

API errors & bugs

in API Development

Posted by: Falgar Usher of Woe.5194

Falgar Usher of Woe.5194

Another minor error:
{"item_id":“19633”,“name”:“Vial of Qucksilver”…..
Should be Quicksilver, not Qucksilver.

API errors & bugs

in API Development

Posted by: zeeZ.5713

zeeZ.5713

I did some running: http://i.imgur.com/Opb0pTQ.jpg

The y coordinates for Caledon Forest don’t line up for some reason.

API errors & bugs

in API Development

Posted by: Yamiga.7863

Yamiga.7863

I am currently working with the map API (which is great btw), trying to display a map with the differents points of interest from maps_floor.json . I currently stick to continent=1 & fllor=1, but I noticed what I believe to be some inconsistencies/bugs

  • Mt Maelstrom and Sparkfly Fen are contained in region 8 “Steamspur Mountains” although they should imho be in region 5 “Tarnished Coast” with other maguuma maps
  • Shouldnt the region “Tarnished Coast” be named “Maguuma Jungle” to be consistent with the ingame names?
  • Haratis Hinterland, Bloodtide Coast and Blazeridge Steppes contain no landmarks, except for the ones of instancied areas (nothing if region 8 is skipped)

API errors & bugs

in API Development

Posted by: Dr Ishmael.9685

Dr Ishmael.9685

  • Haratis Hinterland, Bloodtide Coast and Blazeridge Steppes contain no landmarks, except for the ones of instancied areas (nothing if region 8 is skipped)

If you open the API in your browser and search, you’ll see that those zones have 2 entries – the first one has all landmarks, while the second one only has 1 landmark. Both of them have the same key (since that’s the map_id), so when it goes through a JSON parser, the second one overwrites the first one and you only see 1 landmark.

I already noted that bug here:

https://forum-en.gw2archive.eu/forum/community/api/API-Bug-map-floor-multiple-entries-per-map/first#post2265573

API errors & bugs

in API Development

Posted by: Yamagawa.5941

Yamagawa.5941

Sounds like I might want to tweak my parser, just to be sufficiently paranoid.

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

I just found that “map_waypoint_hover” is declarated twice in https://api.guildwars2.com/v1/files.json

API errors & bugs

in API Development

Posted by: poke.3712

poke.3712

I just found that “map_waypoint_hover” is declarated twice in https://api.guildwars2.com/v1/files.json

Odd. That definitely wasn’t the case an hour ago… o.O

@poke // GW2W //

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

Funny, now it’s gone O.o

€: no, it isn’t – the JSONView plugin in chrome just drops it.

view-source:https://api.guildwars2.com/v1/build.json

{"map_complete": {
	"file_id": 528724,
	"signature": "5A4E663071250EC72668C09E3C082E595A380BF7"
}, "map_dungeon": {
	"file_id": 102478,
	"signature": "943538394A94A491C8632FBEF6203C2013443555"
}, "map_heart_empty": {
	"file_id": 102440,
	"signature": "09ACBA53B7412CC3C76E7FEF39929843C20CB0E4"
}, "map_heart_full": {
	"file_id": 102439,
	"signature": "B3DEEC72BBEF0C6FC6FEF835A0E275FCB1151BB7"
}, "map_node_harvesting": {
	"file_id": 157332,
	"signature": "995534EBE5D26804AE605E205E50539821C0CBCB"
}, "map_node_logging": {
	"file_id": 157333,
	"signature": "FC01BB452D5327A0E5B2E4A3F5EFDF03F8264A7B"
}, "map_node_mining": {
	"file_id": 157334,
	"signature": "A89EB66C39C7C006A4A6CBEDA28061F16847E9BC"
}, "map_poi": {
	"file_id": 97461,
	"signature": "25B230711176AB5728E86F5FC5F0BFAE48B32F6E"
}, "map_special_event": {
	"file_id": 502087,
	"signature": "1273C427032320DDDB63062C140E72DCB0D9B411"
}, "map_story": {
	"file_id": 102369,
	"signature": "540BA9BB6662A5154BD13306A1AEAD6219F95361"
}, "map_waypoint": {
	"file_id": 157353,
	"signature": "32633AF8ADEA696A1EF56D3AE32D617B10D3AC57"
}, "map_waypoint_contested": {
	"file_id": 102349,
	"signature": "5EF051273B40CFAC4AEA6C1F1D0DA612C1B0776C"
}, "map_waypoint_hover": {
	"file_id": 157354,
	"signature": "95CE3F6B0502232AD90034E4B7CE6E5B0FD3CC5F"
}, "map_waypoint_hover": {
	"file_id": 157354,
	"signature": "95CE3F6B0502232AD90034E4B7CE6E5B0FD3CC5F"
}}

(edited by smiley.1438)

API errors & bugs

in API Development

Posted by: zeeZ.5713

zeeZ.5713

There’s no vista icon in files.json. Maybe that one rogue map_waypoint_hover assassinated it and took its place.

E: Also no skill challenges.

API errors & bugs

in API Development

Posted by: poke.3712

poke.3712

Okay, I just realized that my JSON prettifier removes duplicate properties, so I’m not too sure anymore if it really wasn’t there before last night xD

@poke // GW2W //

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

There’s no vista icon in files.json. Maybe that one rogue map_waypoint_hover assassinated it and took its place.

E: Also no skill challenges.

Indeed! Should we call Mulder and Scully? (sorry watched too much X-Files yesterday XD)

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

API errors & bugs

in API Development

Posted by: Unindal.9102

Unindal.9102

https://api.guildwars2.com/v1/item_details.json?item_id=37134

This is returning “infusion_upgrade_flags”:[“Defense”,“Utility”] when I am pretty sure it should be only Defense.

API errors & bugs

in API Development

Posted by: Cosmic.6047

Cosmic.6047

Is there any utf-8 encoding done for guild names ?

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

HTTP/1.1 200 OK
Cache-Control: no-cache
Content-Length: 255
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.5
Access-Control-Allow-Origin: *
Date: Fri, 13 Sep 2013 19:14:20 GMT

Apparently yes.

API errors & bugs

in API Development

Posted by: Cosmic.6047

Cosmic.6047

Yes smiley I seen this , it just doesn’t appear if you look as the resulting name if they have some unicode characters in it. But maybe I’m mistaken.

API errors & bugs

in API Development

Posted by: poke.3712

poke.3712

Do you have an example? I don’t know any guild with non-ASCII characters, so I have nothing to test this on

@poke // GW2W //

API errors & bugs

in API Development

Posted by: Dr Ishmael.9685

Dr Ishmael.9685

Yes, the entire API uses UTF-8 encoding. Here’s one:

https://api.guildwars2.com/v1/guild_details.json?guild_id=09AE9272-0B2B-4CCA-938F-EDBB9CF7030F

If I save the page to a text file, then open it with Word, it auto-detects that it’s UTF-8 encoded. If I try to force it into the Windows (Default) encoding, it looks like this:

Les Nounours Enneigés

But in UTF-8, the double-byte e-with-acute displays correctly:

Les Nounours Enneigés

You can also see it on some items, like Mjölnir and Éibhear Finn and Carrot Soufflé. Or just use any non-English language.

(edited by Dr Ishmael.9685)

API errors & bugs

in API Development

Posted by: smiley.1438

smiley.1438

Oh and also things like these: https://api.guildwars2.com/v1/item_details.json?item_id=45525&lang=fr

Do you see the space between “Recette” and the colon? This is actually no space (chr 32) but some multibyte thing (nbsp) where i had to use some nasty code like

str_replace(chr(194).chr(160),'',$data['name_fr'])
to get rid of it to create correct interwiki links for it.

Array
(
    [0] => 82 R
    [1] => 101 e
    [2] => 99 c
    [3] => 101 e
    [4] => 116 t
    [5] => 116 t
    [6] => 101 e
    [7] => 194  (c2)
    [8] => 160  (a0)
    [9] => 58 :
    [10] => 32  

€: took me a while to find out that it’s an UTF-8 encoded nbsp (U+00A0 , hex: c2 a0)

(edited by smiley.1438)

API errors & bugs

in API Development

Posted by: Cosmic.6047

Cosmic.6047

I was expecting something like this \u00ae or & #174; for none ASCII characters.
But if it works like it should then everything is peachy

API errors & bugs

in API Development

Posted by: Dr Ishmael.9685

Dr Ishmael.9685

That’s not how text encoding works – those are only representations of encodings. \u0000 is only used in prose to represent a Unicode codepoint, I believe. &#00 ; is the HTML entity notation for an ASCII character – the number is the decimal representation of the character’s ASCII codepoint, i.e. &#38 ; = &amp ; = &.

API errors & bugs

in API Development

Posted by: poke.3712

poke.3712

Exactly, \u00ae would be an escape sequence that is used within string sequences where either unicode characters are not acceptable (some language have such a restriction) or where you simply cannot type the character. The string will however actually contain a 0x00AE character at that point (depending on the language); and not the escape sequence.

As Ish already explained, &something; are SGML or XML entities—most notably known from HTML—that are used to again escape a character sequence where typing the character itself would be hard or where the document encoding cannot encode the character in question (while the target encoding does support it). In times of utf-8 being the standard encoding, this is usually not necessary though, so the only commonly used entities are &quot; for ", &lt; for < and &gt; for > which all encode special characters that are part of the syntax.

@poke // GW2W //