Missing 'X-Result-Total' response header
Killer Rhino.6794:
Hey guys,
The API wiki says that ‘X-Result-Total’ (and ‘Count’) should be returned when querying the service using pagination.
However, they don’t seem be to be showing up. Here is the response header I get when testing with ?page=0&page_size=0
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
Server: Microsoft-IIS/7.5
X-Content-Type-Options: nosniff
Link: </v2/commerce/listings?page=1>; rel=next, </v2/commerce/listings?page=0>; rel=self, </v2/commerce/listings?page=0>; rel=first, </v2/commerce/listings?page=441>; rel=last
X-Page-Total: 442
X-Page-Size: 50
Access-Control-Allow-Origin: *
Date: Wed, 10 Sep 2014 00:13:48 GMT
Connection: close
Content-Length: 206944
smiley.1438:
https://forum-en.guildwars2.com/forum/community/api/API-errors-bugs/4376522
Killer Rhino.6794:
thanks, smiley
Stephane Lo Presti.7258:
This should now be fixed!
StevenL.3761:
Still broken for me. :/ Does it take some time for API changes to roll out for everyone?
Pat Cavit.9234:
Still broken for me. :/ Does it take some time for API changes to roll out for everyone?
Looks good to me, can you provide some details?
StevenL.3761:
I just checked again, and I still don’t receive the X-Result-Count or X-Result-Total headers.
Request
/v2/commerce/listings?page=1
Response headers
Content-Type: application/json; charset=utf-8
Content-Encoding: gzip
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
X-Content-Type-Options: nosniff
Link: </v2/commerce/listings?page=0>; rel=previous, </v2/commerce/listings?page=2>; rel=next, </v2/commerce/listings?page=1>; rel=self, </v2/commerce/listings?page=0>; rel=first, </v2/commerce/listings?page=442>; rel=last
X-Page-Total: 443
X-Page-Size: 50
Access-Control-Allow-Origin: *
Date: Fri, 12 Sep 2014 23:52:07 GMT
Content-Length: 22090
Pat Cavit.9234:
Oh, hah. I totally misread that as X-Page-Total and X-Page-Size.
It’s because the commerce APIs take a different code path from the rest of the /v2 APIs. We’ll take a look at it.
darthmaim.6017:
Can confirm, X-Result-Count and X-Result-Total are still missing. Just in case you missed it, we are talkin about the X-Result headers, not X-Page, those are working fine now.
Edit: guess i was too slow.
Pat Cavit.9234:
Fixed on dev. Don’t have an ETA on when it’ll go out to Live just yet.