nasa-api icon indicating copy to clipboard operation
nasa-api copied to clipboard

get_asset_image() function throwing 503 server error

Open mayurpande opened this issue 4 years ago • 1 comments

I try to get the earth assets images between two dates like so;

    begin = '2015-01-01'
    end = datetime.now().strftime('%Y-%m-%d')
    assets = earth.assets(lat=1.5, lon=100.75, begin=begin, end=end)

then when I loop through the results like so;

for asset in assets:
        try:
            print(asset.get_asset_image())
        except Exception as e:
            print(str(e))

for every image I get a 503 server error for url.

mayurpande avatar Apr 13 '20 19:04 mayurpande

I actually noticed the Earth api is down on Nasa's site, due to another api being deprecated that it relied on: https://api.nasa.gov/

mayurpande avatar Apr 13 '20 20:04 mayurpande