Showing Posts For Ravenhearte.5913:
For those curious, ids affected are:
31113 31120 31124 31127 31130 31131 31132 31133 31135 31136 31137 31139 31140 31144 31167 31168 31169 31175 31178 29952 29960 29964 29974 29978
I dealt with them by searching for the first objects id in the master idList, grabbing a range of 200, and then taking that sublist and removing all ids that successfully returned objects, I then deleted the ids that remained from the master idList.
I’m actually getting 200 codes on all pages, but I can compare X-RESULT-COUNT against what I am expecting to find pages with discrepancies. The trick would seem to be to figure out which ids are missing on a per page basis, as I’m running the loading in coroutines and can’t be guaranteed the order the pages are finishing. If I could do that I could delete them from the master idList and then be back to being able to compare that count to total objects loaded so I know when all coroutines have finished. As a hack, I guess I could create an independent count variable that starts with the count from idList, then I could simply subtract the calculated discrepancy amounts, but that’s so hack-ish. Would rather find a more elegant solution.
That kind of sucks. I was using the count of the ids returned to determine when I had finished paging in the objects, which works fine for the item and recipe endpoints. Back to the drawing board I guess.
It was my understanding that only items that have been found in the game are added to the endpoints. Specifically, I was under the impression that only items that have been listed for sale enter the commerce endpoints. So that solution seems improbable. I’m about to head to bed, but if no one has an answer tomorrow, I’ll write up an algorithm to find the specific ids that are missing.
Hey people,
So, when querying the price endpoint for ids, I get back a list of 22581 ids. When I page in the endpoint, I end up with 22557 objects. I checked page 112, and it had 181 objects, which seemed odd, I then consoled out the total objects in each page as it was read in, page 76 returns 195 objects, page 78 : 181. Is there a reason for these missing 24 objects? Shouldn’t all valid ids be represented in the returned objects? Basically, is this a bug, or a “feature”?