Open aparshin opened 3 years ago
Pagination doesn't work correctly if we add any options to the request, e.g. type or visibility. Here is an example of code (I'm not sure how to create an executable example without exposing my access token):
type
visibility
const service = tilesetsService({accessToken: '<access-token>'}) const response = await service.listTilesets({ ownerId: '<username>', type: 'vector', visibility: 'private', limit: 5 }).send() await response.nextPage().send()
The first request works fine, but the second one returns code 400 and message
400
The requested url's querystring "type" property must equal "raster" or "vector".
Without type, visibility, and limit options, everything works great!
limit
Pagination doesn't work correctly if we add any options to the request, e.g.
type
orvisibility
. Here is an example of code (I'm not sure how to create an executable example without exposing my access token):The first request works fine, but the second one returns code
400
and messageWithout
type
,visibility
, andlimit
options, everything works great!