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

Trouble in downloading (JSONDecodeError) #33

Open
Tossawon opened this issue Dec 5, 2019 · 8 comments
Open

Trouble in downloading (JSONDecodeError) #33

Tossawon opened this issue Dec 5, 2019 · 8 comments

Comments

@Tossawon
Copy link

Tossawon commented Dec 5, 2019

Last 3 days there is no problem about downloading using this command. For today, i have the issue as the error below. How can i solve this problem?.

Error:

File "./peps_download.py", line 308, in
prod, download_dict, storage_dict, size_dict = parse_catalog(options.search_json_file)
File "./peps_download.py", line 48, in parse_catalog
data = json.load(data_file)
File "C:\Users\palm\AppData\Local\Programs\Python\Python37\lib\json_init_.py", line 296, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "C:\Users\palm\AppData\Local\Programs\Python\Python37\lib\json_init_.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\palm\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\palm\AppData\Local\Programs\Python\Python37\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@olivierhagolle
Copy link
Owner

Hi,
That's a python 3.x issue, that I already have corrected on another software following a recipy that I did not take time to understand. I do not have time for now, so if you are in a hurry, use python 2.7

Best regards,
Olivier

@Tossawon
Copy link
Author

Tossawon commented Dec 5, 2019

Thank for your response,
I have changed the python version to be python 2.7.5 It causes the error below.

File "./peps_download.py", line 308, in
prod, download_dict, storage_dict, size_dict = parse_catalog(options.search_json_file)
File "./peps_download.py", line 48, in parse_catalog
data = json.load(data_file)
File "C:\Python27\lib\json_init_.py", line 290, in load
**kw)
File "C:\Python27\lib\json_init_.py", line 338, in loads
return _default_decoder.decode(s)
File "C:\Python27\lib\json\decoder.py", line 365, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python27\lib\json\decoder.py", line 383, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

@lefebvre-antoine
Copy link

Hi guys,

We have exactly the same problem since the last 2 days.
It does not work anymore...

Thank you very much,
Best regards

@olivierhagolle
Copy link
Owner

olivierhagolle commented Dec 6, 2019

Just tried it, you are both right ! Well then, something must have changed in PEPS, i have not changed anything on my side.
I'll ask them
Olivier

@olivierhagolle
Copy link
Owner

olivierhagolle commented Dec 6, 2019

Here are the first lines of the search.json file.
"Site unavailable"
I guess it should work again soon...

<html lang="fr" dir="ltr">
<head>
       <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
       <title>PEPS | Site indisponible</title>
       <meta content="IE=edge,chrome=1" http-equiv="X-UA-Compatible">
       <meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">
       <meta name="description" content="PEPS | Site indisponible">

@olivierhagolle
Copy link
Owner

There is a hardware issue on PEPS storatge facility
https://peps-mission.cnes.fr/fr/peps-info-site-indisponible
Failed part should be repaired today, hopefully

@lefebvre-antoine
Copy link

Dear Olivier,
Thank you very much for the information.
I was also suspected a problem from peps.
Good to know that it should be fix during the day.
Thanks again for the quick replies.

@bergsmaE
Copy link
Collaborator

bergsmaE commented Jan 14, 2020

I am wondering if this still the case?
Or perhaps again the case?

Edit; This is another issue, i will make another tread

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

4 participants