Page 1 of 1
'Connection to urs.earthdata.nasa.gov timed out.
Posted: Mon Dec 13, 2021 12:41 am America/New_York
Thank you for providing this place.
I'm using ocssw on Linux to process ocean color data.
I met this error when using l2gen
requests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='urs.earthdata.nasa.gov', port=443): Max retries exceeded with url: /oauth/authorize?client_id=Z0u-MdLNypXBjiDREZ3roA&redirect_uri=https%3A%2F%2Foceandata.sci.gsfc.nasa.gov%2Fob%2Fgetfile%2Frestrict&response_type=code (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f02e8d50d90>, 'Connection to urs.earthdata.nasa.gov timed out. (connect timeout=10.0)'))
I wonder is this an internet error or some other reason?
I can download data from earth data so I‘m not really sure whether it is an internet problem.
Re: 'Connection to urs.earthdata.nasa.gov timed out.
Posted: Tue Dec 14, 2021 1:06 pm America/New_York
Such glitches are often transient, so you should try a few times over a 24-hour period. Meanwhile, you could check the version of your Python requests package (python -m pip list | grep requests) against the current OCSSW requirements.
https://stackoverflow.com/questions/230 ... n-requests
says that you can get this message if the remote site is actively refusing your
connection attempt. NASA has to employ measures to prevent denial-of-service attacks, so
there can be collateral damage when a site tries to connect too many times in a short period.
Client software combined with enterprise firewalls seems to have some differences in the logic used to handle single sign-on (SSO) redirects. When NASA first moved to the earthdata SSO https URL's I encountered problems with "https://oceandata.sci.gsfc.nasa.gov
" so copied the entry for "urs.earthdata..." and changed the machine to "oceandata.sci.gsfc...":
Code: Select all