'Connection to urs.earthdata.nasa.gov timed out.

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
Posts: 1
Joined: Mon Dec 13, 2021 12:36 am America/New_York
Answers: 0

'Connection to urs.earthdata.nasa.gov timed out.

by jocker2019 » 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.
SeaDAS version:7.3
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.


Posts: 713
Joined: Fri Jan 29, 2021 5:51 pm America/New_York
Answers: 2
Has thanked: 1 time

Re: 'Connection to urs.earthdata.nasa.gov timed out.

by gnwiii » 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

machine urs.earthdata.nasa.gov
        login <username>
        password <password>
machine oceandata.sci.gsfc.nasa.gov
        login <same_username>
        password <same_password>

Post Reply