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

Parameter not recognized... and json.decoder.JSONDecodeError: #43

Open
Daniel-Trung-Nguyen opened this issue Nov 19, 2020 · 0 comments
Open

Comments

@Daniel-Trung-Nguyen
Copy link

I got the error below when trying to run the program on python 3.9.0 on a windows 10 machine.
'''
curl -k -o search.json https://peps.cnes.fr/resto/api/collections/S2ST/search.json?q='Toulouse'\&startDate=2017-01-01\&completionDate=2017-02-01\&maxRecords=500
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 2353 0 2353 0 0 2353 0 --:--:-- 0:00:01 --:--:-- 1750
'startDate' is not recognized as an internal or external command,
operable program or batch file.
'completionDate' is not recognized as an internal or external command,
operable program or batch file.
'maxRecords' is not recognized as an internal or external command,
operable program or batch file.
Traceback (most recent call last):
File "C:\Users\nguyet78\Google Drive\DB\peps_download-python3\peps_download-python3\peps_download.py", line 245, in
prod, download_dict, storage_dict = parse_catalog(options.search_json_file)
File "C:\Users\nguyet78\Google Drive\DB\peps_download-python3\peps_download-python3\peps_download.py", line 45, in parse_catalog
data = json.load(data_file)
File "C:\python39\lib\json_init_.py", line 293, in load
return loads(fp.read(),
File "C:\python39\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\python39\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\python39\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 2 column 2 (char 2)
'''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant