Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage of datasets create-tileset #129

Open
yterletskyi opened this issue Sep 16, 2019 · 1 comment
Open

Usage of datasets create-tileset #129

yterletskyi opened this issue Sep 16, 2019 · 1 comment

Comments

@yterletskyi
Copy link

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant