Investigate how to handle malformed log files #170
Labels
package:unified_analytics
type-bug
Incorrect behavior (everything from a crash to more subtle misbehavior)
I only noticed this when I accidentally typed invalid characters and saved it into the log file, but if the parser is not able to parse each row of the json file, the entire process will fail. As a result, anything that requires calling for
analytics.logFileStats()
will fail, which includes fetching available surveys.Sample of what caused the error in my case below
In the example above, the third line item is not a valid record, if we encounter something like this, the package should ignore the malformed line and have the malformed line get phased out on its own since we cap the number of records to store locally
The text was updated successfully, but these errors were encountered: