SciQLop / speasy

Space Physics made EASY! A simple Python package to deal with main Space Physics WebServices (CDA,SSC,AMDA,..)
Other
24 stars 7 forks source link

Can't get data from proxy server http://sciqlop.lpp.polytechnique.fr/cache #69

Closed cmoissar closed 1 year ago

cmoissar commented 1 year ago

Description

import speasy

What I Did

Input: import speasy

Output: Can't get data from proxy server http://sciqlop.lpp.polytechnique.fr/cache

This is not a problem I had two weeks ago.

Best wishes, Clement

jeandet commented 1 year ago

@cmoissar, lately we had DNS issues at Polytechnique I'm afraid, this might be related. Did you try to access http://sciqlop.lpp.polytechnique.fr/cache from your browser? If it also fails then this is likely a DNS issue. One temporary fix can be to use http://129.104.27.10/cache instead (this IP is likely to remain the same for years).

jeandet commented 1 year ago

@cmoissar, using server IP, won't work sadly, I just figured out from the logs sorry :/

cmoissar commented 1 year ago

Accessing http://sciqlop.lpp.polytechnique.fr/cache from the browser doesn't work, as you expected.

Here's something I find confusing: On my computer, I can still run my code. It takes a lot longer than it did a couple of weeks ago but still works. One of my students cannot use his code at all. Yet both problems appeared at the same time.

Is there a way to skip the Polytechnique cache and download data directly from the different providers (cdaweb and co) without ditching speasy altogether?

Or is not worth trying because the Polytechnique servers will be back to normal soon?

Thanks for your help @jeandet!

jeandet commented 1 year ago

Ok, that's very unfortunate, we are investigating this DNS issue. The worst is that I can access http://sciqlop.lpp.polytechnique.fr/cache from home it just seems to randomly fail on some DNS servers around the world.. In the mean time, you can disable the proxy server:

import os
os.environ['SPEASY_PROXY_ENABLED'] = 'false'
import speasy as spz

Note that once the proxy is disabled, speasy will take little longer to load and will print a lot of warnings like Non compliant ISTP file: variable V_thermal has LABL_PTR_1 attribute which points to a variable which does not exist. You will get these warnings because you are building CDA inventory locally and speasy has to parse a lot of partly compliant CDF/ISTP files.

jeandet commented 1 year ago

for the record https://dnschecker.org/#A/lpp.polytechnique.fr image

jeandet commented 1 year ago

@cmoissar, the DNS issue seems resolved now 🤞.

jeandet commented 1 year ago

@cmoissar we got a feedback from Polytechnique IT, there was an incident during the Weekend which is resolved now. Feel free to reopen if it is not resolved on your side.

cmoissar commented 1 year ago

Thanks!