Closed mmachir closed 10 months ago
This is not a bug. This is an issue with client authorization. There is something in there that we don't fully understand. Adjusting the title and labels accordingly.
set_auth_token(auth_code())
#> Enter code: .... redacted
#> Token set to environment variable `ARCGIS_TOKEN`
fsurl <- "https://services1.arcgis.com/hLJbHVT9ZrDIzK0I/arcgis/rest/services/Madagascar_points/FeatureServer"
ft_srv <- arc_open(fsurl)
ft_srv
#> <FeatureServer <1 layer, 0 tables>>
#> CRS: 3857
#> Capabilities: Create,Delete,Query,Update,Editing
#> 0: Madagascar_points (esriGeometryPoint)
set_auth_token(auth_client())
#> Token set to environment variable `ARCGIS_TOKEN`
ft_srv <- arc_open(fsurl)
#> Error: Status code: 403
#> Error GWM_0003: You do not have permissions to access this resource or perform this
operation.
Question about this: for min ship for a first release, should the package be able to read/write public data services in AGOL/Enterprise? or should it also work with Private/Org-shared/Group-shared services?
Confirmed that client auth is not expected to be able to publish.
get_layer()
andget_all_layers()
are failing on a non-public feature service - maybe the token isn't being passed to these functions?Repro:
get_all_layers()
andget_layer()
both fail and raise this error: