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

Error information when use `tileset update-recipe` command for existing tileset #35

Closed nuistzhou closed 4 years ago

nuistzhou commented 4 years ago

See error msg followed:

  File "/Users/username/anaconda3/lib/python3.7/site-packages/tilesets/scripts/cli.py", line 286, in update_recipe
    raise errors.TilesetsError(r.text)
tilesets.errors.TilesetsError: {"message":"Unable to perform action. {tileset_id} was not created with the /tilesets/v1 endpoint."}
dianeschulze commented 4 years ago

Thanks for this ticket @nuistzhou. Certain commands (update-recipe, publish, job, and jobs) only support tilesets that were created with the Mapbox Tiling Service, either via the Tilesets API or the mapbox-tilesets CLI. You will see an error message if you use these commands with a tileset that was created another way, e.g. in Mapbox Studio.

71 updated the README and command helptext to identify the commands that only support tilesets created with MTS.

I hope this helps. Please re-open this if you have any more questions or requests.