mapbox / tilesets-cli

CLI for interacting with the Mapbox Tilesets API and Mapbox Tiling Service
https://docs.mapbox.com/mapbox-tiling-service
BSD 2-Clause "Simplified" License
125 stars 27 forks source link

Erorr message if access tokens does not have permissions #15

Closed lukasmartinelli closed 5 years ago

lukasmartinelli commented 5 years ago

Right now you simply get a "Not found" error instead of "Permission denied" for any command that could inform you that your access token does not have sufficient permissions.

mapsam commented 5 years ago

@lukasmartinelli are you certain this is a bug? If you are using an access token from one account, and attempt to interact with a tileset/tileset-source from another account, the Mapbox APIs will return a 404 Not Found as to not reveal if a private resource exists or not.

lukasmartinelli commented 5 years ago

@lukasmartinelli are you certain this is a bug? If you are using an access token from one account, and attempt to interact with a tileset/tileset-source from another account, the Mapbox APIs will return a 404 Not Found as to not reveal if a private resource exists or not.

Fair. Down to close.