peps_download icon indicating copy to clipboard operation
peps_download copied to clipboard

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

Open Daniel-Trung-Nguyen opened this issue 4 years ago • 0 comments

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) '''

Daniel-Trung-Nguyen avatar Nov 19 '20 09:11 Daniel-Trung-Nguyen