mapbox-cli-py icon indicating copy to clipboard operation
mapbox-cli-py copied to clipboard

Usage of `datasets create-tileset`

Open yterletskyi opened this issue 6 years ago • 1 comments

What you've tried already

I've installed mapbox cli and exported an access token with appropriate rights using: $ export MAPBOX_ACCESS_TOKEN=MY_TOKEN

I've successfully created a dataset using: mapbox datasets create -n zoom5

I'm having troubles with the mapbox datasets create-tileset command syntax. mapbox datasets create-tileset {dataset id} tileset -n {user id}.zoom5

An error says Error: {"message":"Account provided in the body and account provided in the url must match"}

Expected outcome

Could you please explain how to use the command more clearly? What is the proper order of arguments?

Thanks

yterletskyi avatar Sep 16 '19 15:09 yterletskyi

Ok figured it out. There are two ways to run the command.

  1. mapbox datasets create-tileset {dataset id} -n zoom5 {user id} or
  2. mapbox datasets create-tileset {dataset id} {user id}.zoom5

However, it results in error with no error description:

{"id":"ck0nzjzjq0f3l2opef2zk4evj","name":"zoom5","complete":false,"error":null,"created":"2019-09-17T15:22:03.077Z","modified":"2019-09-17T15:22:03.077Z","tileset":"{user id}.zoom5","owner":"{user id}","progress":0}

So, technically this is resolved because syntax is clear now. But there is another issue with error description. Is there a way I can obtain an error message?

yterletskyi avatar Sep 17 '19 15:09 yterletskyi