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

Confusing results if email address (instead of username) given for --token #17

Open
egnor opened this issue May 28, 2021 · 0 comments
Open

Comments

@egnor
Copy link

egnor commented May 28, 2021

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?

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