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

How to mitigate the FitParseError throwing for a bad index? #96

Open
woodmicha opened this issue Aug 17, 2019 · 2 comments
Open

How to mitigate the FitParseError throwing for a bad index? #96

woodmicha opened this issue Aug 17, 2019 · 2 comments

Comments

@woodmicha
Copy link

I'm getting this exception for a few users in their Fit files:

FitParseError("No such dev_data_index=%s found" % (dev_data_index))

Looks like it's related to Battery Level and the dev_data_index is 0.

<DataMessage: field_description (#206) -- local mesg: #3, fields: [field_name: Battery level, units: %, fit_base_unit_id: None, native_mesg_num: record, developer_data_index: 0, field_definition_number: 0, fit_base_type_id: float32, scale: None, offset: None, native_field_num: None]>

Thanks in advance for any suggestions.

@polyvertex
Copy link
Contributor

It would be interesting to analyze these files but I guess you cannot share them?

@woodmicha
Copy link
Author

Unable to share files due to PII. Perhaps someone could share if this is a fatal error or if it's something that allows the files to be parsed in spite of the error?

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

2 participants