Confusing results if email address (instead of username) given for --token
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- authentication, backend, cli
Research direction
Start at the --token argument handling and trace how the supplied value reaches tile source upload, the recipe file, and geojson validation. Compare the behavior for a username and an email address; done means the mismatch is handled consistently with a pointed result, as decided by the project maintainers.
Written by the indexing model from the issue text.
Description
When I first ran --token I gave it my email address instead of my username.
This works enough to be confusing! Specifically, the tile source upload works (presumably the API is willing to accept an email instead of a username?), but then the geojson validation fails because "layers.my_layer_name.source does not belong to account 'myusername'.", because it had interpolated the given username into the name of the tile source in the recipe file.
Suggestion: Resolve the situation gracefully, either by somehow ascertaining the username from email, or simply by refusing to accept a username that contains a "@", or perhaps just detecting the mismatch and giving a more pointed error message?
- Dominant language
- JavaScript
- Stars
- 71
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/mts-data-sync
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
mapbox/mts-data-sync#23 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
mapbox/mts-data-sync#22 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
mapbox/mts-data-sync#20 ·
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
mapbox/mts-data-sync#16 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
mapbox/mts-data-sync#15 ·
All issues in mapbox/mts-data-sync
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·