Page 1 of 1

'Connection to timed out.

Posted: Mon Dec 13, 2021 12:41 am America/New_York
by jocker2019
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='', port=443): Max retries exceeded with url: /oauth/authorize?client_id=Z0u-MdLNypXBjiDREZ3roA& (Caused by ConnectTimeoutError(<urllib3.connection.HTTPSConnection object at 0x7f02e8d50d90>, 'Connection to 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 timed out.

Posted: Tue Dec 14, 2021 1:06 pm America/New_York
by gnwiii
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. ... 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 "" so copied the entry for "urs.earthdata..." and changed the machine to "oceandata.sci.gsfc...":

Code: Select all

        login <username>
        password <password>
        login <same_username>
        password <same_password>