-
Notifications
You must be signed in to change notification settings - Fork 313
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
AttributeError: 'module' object has no attribute 'JSONDecodeError' #564
Comments
Thanks for your report @cjx-great. You can see the original problem here:
Unfortunately, this is not very easy to see because apparently there is a bug with Rally in Python 3.4 (which you are using). If you'd use Python 3.5 or Python 3.6 you'll see this on the command line:
When we look in line 9 of the file
After this has been processed by the template engine, this is still not valid JSON. You can fix this either by converting the result to JSON explicitly:
or just have the template engine render it as a string instead of a Python boolean:
We'll fix the problem w.r.t. |
Previously we caught `JSONDecodeError` in the error handler when loading JSON. However, this class has been introduced in Python 3.5 and thus we fail with a confusing error message: ``` AttributeError: 'module' object has no attribute 'JSONDecodeError' ``` To avoid this situation, we broaden the `except` clause and also introduce a new test case to ensure error handling works correctly on all supported Python versions. Closes elastic#564
Previously we caught `JSONDecodeError` in the error handler when loading JSON. However, this class has been introduced in Python 3.5 and thus we fail on Python 3.4 with a confusing error message: ``` AttributeError: 'module' object has no attribute 'JSONDecodeError' ``` To avoid this situation, we broaden the `except` clause and also introduce a new test case to ensure error handling works correctly on all supported Python versions. Closes #564 Relates #565
The fix is now on master and will be released with Rally 1.0.1. |
when I try to list tracks, some errors occur when paesing
indices.body
, please help me figure out what went wrong.Rally version (get with
esrally --version
):Invoked command:
Configuration file (located in
~/track.json
)):Configuration file (located in
~/settings/mapping.json
)):logs:
The text was updated successfully, but these errors were encountered: