swl10 / pyslet

Python for Standards in Learning Education & Training
Other
73 stars 34 forks source link

scihub.copernicus.eu sample no longer working? #80

Open bollewolle opened 6 years ago

bollewolle commented 6 years ago

Could it be that the sample code for scihub.copernicus.eu is no longer working? I initially used it to try to access another service (one of which I know I can access via Paw on Mac OS X) but I kept getting errors of this kind: WARNING:root:retrying b'GET /odata/v2/PerPerson/ HTTP/1.1' INFO:root:Sending request to b'apisalesdemo8.successfactors.com' INFO:root:b'GET /odata/v2/PerPerson/ HTTP/1.1' WARNING:root:[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:748) ERROR:root:apisalesdemo8.successfactors.com: closing connection after error failed to build secure connection to apisalesdemo8.successfactors.com

After some searching I thought the issue was openssl seeing the issues there were on a Mac, but even in Windows via VMWare Fusion I get there errors. I then thought trying the sample code itself, but there I also get these kind of errors: WARNING:root:retrying b'GET /apihub/odata/v1/Products HTTP/1.1' INFO:root:Sending request to b'scihub.copernicus.eu' INFO:root:b'GET /apihub/odata/v1/Products HTTP/1.1' WARNING:root:[WinError 10038] An operation was attempted on something that is not a socket ERROR:root:scihub.copernicus.eu: closing connection after error failed to build secure connection to scihub.copernicus.eu ERROR:root:b'GET /apihub/odata/v1/Products HTTP/1.1' retry limit exceeded ERROR:root:Error receiving response, failed to build secure connection to scihub.copernicus.eu

So perhaps it's not specific to me but the code? Any help welcome in any case (I'm still quite new to all this, could very well be something really obvious). Thanks.

zxlvera commented 6 years ago

No solutions but I want to add that I received [WinError 10038] An operation was attempted on something that is not a socket too.