R-ArcGIS / arcgislayers

Access ArcGIS Data and Location Services
http://r.esri.com/arcgislayers/
Apache License 2.0
47 stars 10 forks source link

Error when `supportsPagination` advanced query option is `FALSE` #191

Closed elipousson closed 5 months ago

elipousson commented 5 months ago

Describe the bug

I stumbled across a URL that errors when the supportsPagination advanced query option is FALSE. Unsure why the server is set up this way or if this worked with earlier versions of arcgislayers or arcgisutils.

To Reproduce

library(arcgislayers)

url <- "https://geodata.baltimorecity.gov/egis/rest/services/Planning/Bike_Master_Plan/MapServer/3"

layer <- arc_open(url)

arc_select(layer)
#> Warning in arc_select(layer): Status code: 400
#> Error: Pagination is not supported.
#> Error in `rlang::set_names()`:
#> ! `x` must be a vector

Created on 2024-06-21 with reprex v2.1.0

Expected behavior

Expect selecting the data to be allowed even if pagination is not permitted. If not, a more informative error message would be helpful.