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

Display relevant error message when <time> is missing in GPX file #338

Closed
ptrcnull opened this issue Mar 31, 2023 · 7 comments
Closed

Display relevant error message when <time> is missing in GPX file #338

ptrcnull opened this issue Mar 31, 2023 · 7 comments
Labels
api client enhancement v0.7.x Issues planned in versions 0.7.x

Comments

@ptrcnull
Copy link

as in the title, ERROR - 'NoneType' object has no attribute 'tzinfo' appears in the logs when trying to import a .gpx file; not quite sure how to print the whole stacktrace

@SamR1
Copy link
Owner

SamR1 commented Apr 5, 2023

Hi,

is it possible to have an example of a GPX point (with the date, no need for coordinates)?
Thank you in advance.

@ptrcnull
Copy link
Author

ptrcnull commented Apr 8, 2023

ah, my gpx file doesn't include a date - just a list of <trkpt> elements inside <trkseg>

@SamR1
Copy link
Owner

SamR1 commented Apr 11, 2023

Hi,

FitTrackee only supports GPX files with <time>, in order to caculate speeds.
There are some tools allowing to add time infos like gpx.studio.

@ptrcnull
Copy link
Author

ptrcnull commented Apr 11, 2023

would it be possible to add some meaningful error message about it? or, i don't know, at least a note in the readme?

@SamR1
Copy link
Owner

SamR1 commented Apr 11, 2023

Yes I'll add it at least in the documentation.

@ptrcnull
Copy link
Author

thanks, then i guess this issue can be closed ( though seriously, the error message is really cryptic; there should at least be an option to show stacktraces for exceptions )

@SamR1 SamR1 changed the title ERROR - 'NoneType' object has no attribute 'tzinfo' when importing Display relevant error message when <time> is missing in GPX file Apr 11, 2023
@SamR1 SamR1 added enhancement api client v0.7.x Issues planned in versions 0.7.x labels Apr 11, 2023
@SamR1 SamR1 added this to the v0.7 - OAuth 2.0 milestone Apr 11, 2023
@SamR1
Copy link
Owner

SamR1 commented Apr 12, 2023

released in v0.7.15

@SamR1 SamR1 closed this as completed Apr 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api client enhancement v0.7.x Issues planned in versions 0.7.x
Projects
None yet
Development

No branches or pull requests

2 participants