yasoob / nrc-exporter

Download your runs data from Nike Run Club and convert it to GPX format that can be imported in other running apps.
https://yasoob.me/posts/reverse-engineering-nike-run-club-using-frida-android/
MIT License
120 stars 14 forks source link

A failure on one of the data files #20

Open jonnyzzz opened 1 year ago

jonnyzzz commented 1 year ago

Traceback (most recent call last): File "/opt/homebrew/bin/nrc-exporter", line 8, in sys.exit(main()) ^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/nrc_exporter.py", line 631, in main parsed_data = parse_activity_data(json_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/opt/homebrew/lib/python3.11/site-packages/nrc_exporter.py", line 449, in parse_activity_data for i, metric in enumerate(activity["metrics"]):


KeyError: 'metrics'

Do we have error handling so it can skip the problematic file and move on to the next one? 
The error does not log which file was the problematic
jonnyzzz commented 1 year ago

In my case it was only able to process 1/3 of the data

image