Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker search SSL error #260

Open
palewire opened this issue Jun 1, 2019 · 4 comments
Open

Docker search SSL error #260

palewire opened this issue Jun 1, 2019 · 4 comments

Comments

@palewire
Copy link

palewire commented Jun 1, 2019

$ sudo docker run -it -v ~/landsat:/root/landsat developmentseed/landsat-util:latest landsat search --lat 33.9436973 --lon -118.4073388       
/usr/local/lib/python2.7/dist-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
  InsecurePlatformWarning
Traceback (most recent call last):
  File "/usr/local/bin/landsat", line 9, in <module>
    load_entry_point('landsat-util==0.13.1', 'console_scripts', 'landsat')()
  File "/landsat/landsat/landsat.py", line 488, in __main__
    print(main(args))
  File "/landsat/landsat/landsat.py", line 357, in main
    geojson=args.geojson)
  File "/landsat/landsat/search.py", line 96, in search
    r = requests.get('%s?search=%s&limit=%s' % (self.api_url, search_string, limit))
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 69, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/api.py", line 50, in request
    response = session.request(method=method, url=url, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 465, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/requests/adapters.py", line 431, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: [Errno 1] _ssl.c:510: error:14077438:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert internal error
@ninexy
Copy link

ninexy commented Mar 10, 2020

i had the same error. can you fit it? please help!

@pravent
Copy link

pravent commented Nov 16, 2023

same for me

@pravent
Copy link

pravent commented Nov 17, 2023

that seems unmaintained, it uses python 2.7. Many modern TLS/SSL features are not available in older versions of Python, so it's recommended to upgrade to at least Python 3.6 or higher

@pravent
Copy link

pravent commented Nov 17, 2023

ah! it turns out this will work with the docker image with tag dev. see:

$  docker run -it -v ~/landsat:/root/landsat developmentseed/landsat-util:dev landsat search --cloud 4 --start "january 1 2014" --end "january 10 2014" -p 009,045
===> 1 items were found
{
    "limit": 10,
    "results": [
        {
            "cloud": 3.27,
            "date": "2014-01-08",
            "path": "009",
            "row": "045",
            "sat_type": "L8",
            "sceneID": "LC80090452014008LGN02",
            "thumbnail": "https://earthexplorer.usgs.gov/browse/landsat_8/2014/009/045/LC08_L1TP_009045_20140108_20180130_01_T1.jpg"
        }
    ],
    "status": "SUCCESS",
    "total": 1,
    "total_returned": 1
}
['Search completed!']

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants