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

Better warning on bad input #78

Open
tristen opened this issue Jul 8, 2020 · 6 comments
Open

Better warning on bad input #78

tristen opened this issue Jul 8, 2020 · 6 comments
Labels
documentation Improvements or additions to documentation ux

Comments

@tristen
Copy link
Member

tristen commented Jul 8, 2020

If the path to a file is incorrect the response from the CLI prints out a long stack trace:

Screen Shot 2020-07-08 at 4 59 28 PM

And ends with:

Screen Shot 2020-07-08 at 4 59 47 PM

Could the CLI validate the input argument first and display a clearer message to the user

@tristen tristen added documentation Improvements or additions to documentation ux labels Jul 8, 2020
@robertomoreu
Copy link

I am getting the same error message and I am having a hard time finding what is going on, I get the same no matter how I write the file name and path. @tristen how did you manage to solve it?

@tristen
Copy link
Member Author

tristen commented May 10, 2021

@robertomoreu add-source is now deprecated! Perhaps try upload-source?

@robertomoreu
Copy link

@tristen upload-source is the one I am using, but it prints the same message

@tristen
Copy link
Member Author

tristen commented May 10, 2021

@robertomoreu If you're confident the right path is being provided, perhaps confirm the file content is valid line-delimited JSON?

@robertomoreu
Copy link

Hey @tristen , Solved ! I was always trying to use the relative path, using the absolute path solved it. Thanks for your help, it got me to the solution!

@henriktorget
Copy link

henriktorget commented May 31, 2022

I am having this problem even while using absolute path.
tilesets upload-source oceandatafoundation wod-chlorophyll /home/henrik/.../chlorophyll
returns

ValueError: could not convert string to float: '/home/henrik/.../chlorophyll'

Even though
ls /home/henrik/.../chlorophyll
returns
2010.geojson 2012.geojson 2014.geojson 2016.geojson 2018.geojson 2020.geojson 2011.geojson 2013.geojson 2015.geojson 2017.geojson 2019.geojson recipe.json

Relative path has the same problem.

EDIT: This is a problem when specifying a directory of files. It works when I upload one at a time.

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

No branches or pull requests

3 participants