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

Error parsing json file #17

Closed
Mauzki opened this issue Jul 26, 2020 · 3 comments
Closed

Error parsing json file #17

Mauzki opened this issue Jul 26, 2020 · 3 comments
Labels
invalid This doesn't seem right question Further information is requested

Comments

@Mauzki
Copy link

Mauzki commented Jul 26, 2020

The py-file has been working fine until now, I got the error below:

2020-07-26 13:39:19,630 - ERROR - parse - Error parsing JSON file
'recordDay'
Traceback (most recent call last):
File "Huawei-TCX-converter.py", line 995, in parse
activity_date = dts.strptime(str(activity_dict['recordDay']), "%Y%m%d")
KeyError: 'recordDay'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "Huawei-TCX-converter.py", line 1560, in
main()
File "Huawei-TCX-converter.py", line 1545, in main
hi_activity_list = hi_json.parse(args.from_date,args.timezone)
File "Huawei-TCX-converter.py", line 1074, in parse
raise Exception('Error parsing JSON file <%s>', self.json_file.name)
Exception: ('Error parsing JSON file <%s>', 'motion path detail data.json')

Not sure what the error is with the RecordDay, could someone help me with this?

So far everything has been working fine, so I am not sure if this is a problem with Huawei's data or the code... Any help appreciated!

@Mauzki
Copy link
Author

Mauzki commented Jul 26, 2020

Oops, this was in a wrong place, sorry!

@Mauzki Mauzki closed this as completed Jul 26, 2020
@CTHRU
Copy link
Owner

CTHRU commented Jul 26, 2020

No problem. If you download the latest version of this repository, you won't get that error (Huawei changed the data format recently).

@Mauzki
Copy link
Author

Mauzki commented Jul 26, 2020 via email

@CTHRU CTHRU added question Further information is requested invalid This doesn't seem right labels Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants