Closed mattrubin closed 11 years ago
Are those requests happening from the same app with the same migrations? The pagination_ids
migration should make the min/max_ids in both of those cases strings: http://developers.app.net/docs/basics/migrations/#current-migrations. Looking briefly at the code, nothing is jumping out at me as a bug. Can you confirm whether this is happening with or without the migration?
Ah, a silly error on my part had those two requests being sent with different access tokens, one of which was stored from an older app without the pagination_ids
migration enabled. With that migration enabled, everything works as expected.
Sorry for the false alarm!
The values for
min_id
andmax_id
are sometimes strings and sometimes numbers. I've designed my models to always expect strings, as specified in the spec (http://developers.app.net/docs/basics/pagination/#response-metadata). After this and issue #277, I'll be adding code to check the type and convert as needed. Is it generally a safe assumption to expectid
s as strings, or should developers always be prepared to handle both strings and numbers?