Closed snmac13 closed 4 years ago
The JSON result coming from Nike is causing this problem. I will need to take a look at the output you are receiving from Nike to fix this. Let me know if you know Python and can run a customized Python script with more debugging output if I share it with you. If you can't do that, we can find a different way to debug this.
yasoob,
Thanks for the response. I can run the script if you would like.Thanks
@yasoob it seems that some synchronized data has no label of tag ?
Can we use:
activity.get("tag", {}).get('com.nike.running.runtype', '')
instead
@yihong0618 that is what I thought so as well but didn't have a way to reproduce it. I was gonna suggest @snmac13 to send me the activity file but if you believe that this is definitely the issue, your suggestion seems like a plausible fix. Would you be willing to open a PR?
@yihong0618 that is what I thought so as well but didn't have a way to reproduce it. I was gonna suggest @snmac13 to send me the activity file but if you believe that this is definitely the issue, your suggestion seems like a plausible fix. Would you be willing to open a PR?
Yes, I think I can open a PR later today.
@snmac13 I will make a new PyPI release soon but in the meantime you can just install nrc-exporter from this repo and hopefully the issue should be resolved :)
Will get to this momentarily. Sorry for the delay.
On Fri, Jul 24, 2020 at 4:15 PM M.Yasoob Ullah Khalid βΊ < notifications@github.com> wrote:
@snmac13 https://github.com/snmac13 I will make a new pip release soon but in the meantime you can just install nrc-exporter from this repo and hopefully the issue should be resolved :)
β You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/yasoob/nrc-exporter/issues/8#issuecomment-663769522, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOCBRGTRYWJKIP72SC55K43R5IIZ7ANCNFSM4PFBOGPQ .
I just want to say thanks for creating this. Having the NRC data will be so helpful. I used the 'arc-exporter -t "token"' command and ran into this issue. Any idea what is going wrong here? All help will be much appreciated. Thanks!
[+] Starting NRC Exporter [+] πββοΈ Getting activities list [+] π opening page 1 of activities [+] π opening page 2 of activities [+] π opening page 3 of activities [+] π opening page 4 of activities [+] π opening page 5 of activities [+] π opening page 6 of activities [+] π opening page 7 of activities [+] π opening page 8 of activities [+] π opening page 9 of activities Traceback (most recent call last): File "/Users/me/.pyenv/versions/3.8.3/bin/nrc-exporter", line 8, in
sys.exit(main())
File "/Users/me/.pyenv/versions/3.8.3/lib/python3.8/site-packages/nrc_exporter.py", line 611, in main
activity_ids = get_activities_list(options)
File "/Users/me/.pyenv/versions/3.8.3/lib/python3.8/site-packages/nrc_exporter.py", line 306, in get_activities_list
debug(f"Entry type: {activity['tags'].get('com.nike.running.runtype', '')}")
KeyError: 'tags'