New pagination bug?

Avatar image for comictagger
comictagger

39

Forum Posts

8

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#1  Edited By comictagger

@frobie

This morning something weird starting happening:

There is a weird discrepancy with the "number_of_total_results" in a reply from the API. For example

http://www.comicvine.com/api/search/?api_key={KEY}&format=json&resources=volume&query=amazing+spider+man&field_list=name,id

has number_of_total_results = 108

but if I get the second page via this:

http://www.comicvine.com/api/search/?api_key={KEY}&format=json&resources=volume&query=amazing+spider+man&field_list=name,id&page=2

now number_of_total_results = 107

As it is, my app is broken by this, since it trusts the value the first time, and get stuck re-querying looking for that 108th phantom volume.

Avatar image for comictagger
comictagger

39

Forum Posts

8

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

Looks like this bug is there still there when searching on "amazing spider man", although the counts are now 107 and 106

I found that if you specify page=1 on the first query, you get consistent results. So, while I found a workaround, seems like there is still an issue there.

Avatar image for cbanack
cbanack

124

Forum Posts

199

Wiki Points

0

Followers

Reviews: 0

User Lists: 0

#3  Edited By cbanack
Avatar image for chewt0y
chewt0y

13

Forum Posts

1578

Wiki Points

0

Followers

Reviews: 0

User Lists: 1

#4  Edited By chewt0y