python-fitparse icon indicating copy to clipboard operation
python-fitparse copied to clipboard

How to mitigate the FitParseError throwing for a bad index?

Open woodmicha opened this issue 4 years ago • 2 comments

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.

woodmicha avatar Aug 17 '19 15:08 woodmicha

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

polyvertex avatar Aug 18 '19 08:08 polyvertex

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?

woodmicha avatar Aug 22 '19 15:08 woodmicha